{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
Rating Summary
@if($rating->status === 'approved')
Approved
@elseif($rating->status === 'reject')
Rejected
@else
Pending Approval
@endif
@for($i = 1; $i <= 5; $i++)
@if($i <= $rating->rating)
@else
@endif
@endfor
{{ $rating->rating }} / 5 Stars
Submitted on {{ $rating->created_at ? $rating->created_at->format('d M Y, h:i A') : 'N/A' }}{{ $rating->review ?: 'No written feedback provided.' }}
- Booking No: @if($rating->booking) @if($canViewBooking) #{{ $rating->booking->booking_no }} @else #{{ $rating->booking->booking_no }} @endif @else N/A @endif
- Booking Status: {{ ucfirst($rating->booking?->status ?? 'completed') }}
- Customer (Rated By): {{ $rating->fromUser?->name ?? 'N/A' }}
- Partner (Rated To): {{ $rating->toUser?->name ?? 'N/A' }} @php $rewardAmount = round((float) (function_exists('setting') ? setting('booking_media_reward_amount', 0) : 0), 2); $hasVideo = (bool) $rating->video; @endphp @if($hasVideo)
- Video Cashback: @if($rating->status === 'approved') ₹{{ number_format($rewardAmount, 2) }} Credited @elseif($rating->status === 'reject') No Cashback (Rejected) @else ₹{{ number_format($rewardAmount, 2) }} (On Approval) @endif @endif
@if($rating->status === 'pending' && $canEditMedia)
@elseif($rating->status === 'pending')
@elseif($rating->status === 'approved')
@elseif($rating->status === 'reject')
@endif
View-Only Access
You do not have permission to approve or reject ratings.
Action Completed: Approved
This rating has already been approved. Further action cannot be taken.
Action Completed: Rejected
This rating has already been rejected. Further action cannot be taken.
Review Video
@if($rating->video) Playable Video @endif
@if($rating->video)
@php
$videoUrl = route('admin.booking-ratings.video', $rating->id);
$rawVideoUrl = $rating->video['url'] ?? '';
$videoRelUrl = parse_url($rawVideoUrl, PHP_URL_PATH) ?: $rawVideoUrl;
$mimeType = $rating->video['mime_type'] ?? 'video/mp4';
@endphp
@else
{{ $rating->video['file_name'] }}
Size: {{ round(($rating->video['size'] ?? 0) / 1024 / 1024, 2) }} MB
Download Video
No video attached with this rating.
@endif