@include('frontend.partials.head', ['title' => 'Fily | Provider Reviews']) @include('frontend.dashboard.partials.styles') @php $providerName = $provider?->business_name ?: ($provider?->name ?: 'Provider'); $providerInitial = strtoupper(substr($providerName, 0, 1)); $typeLabels = [ 'job' => 'Job', 'rent' => 'Rental', 'hostel' => 'Hostel', 'service' => 'Service', ]; $statusMeta = [ 'active' => ['label' => 'Active', 'class' => 'review-status-active'], 'pending' => ['label' => 'Pending', 'class' => 'review-status-pending'], 'inactive' => ['label' => 'Inactive', 'class' => 'review-status-inactive'], ]; @endphp @include('frontend.partials.header')
@include('frontend.dashboard.provider.partials.hero', [ 'provider' => $provider, 'kicker' => 'Customer reviews', 'title' => 'Reviews for '.$providerName, 'description' => 'See every customer rating and comment submitted on your listings.', 'actionUrl' => route('frontend.provider.lists'), 'actionIcon' => 'format_list_bulleted', 'actionLabel' => 'View listings', ])
@include('frontend.dashboard.provider.partials.sidebar', ['provider' => $provider, 'active' => 'reviews'])
@if (session('status')) @endif
Total reviews {{ number_format((int) $totalReviews) }}
Average rating {{ number_format((float) $averageRating, 1) }}/5
Pending moderation {{ number_format((int) $pendingReviews) }}

Customer comments

{{ $reviews->total() }} {{ Str::plural('review', $reviews->total()) }} found for your listings.

@forelse ($reviews as $review) @php $customerName = $review->customer?->name ?: 'Customer'; $customerInitial = strtoupper(substr($customerName, 0, 1)); $status = $statusMeta[$review->status] ?? ['label' => 'Inactive', 'class' => 'review-status-inactive']; $typeLabel = $typeLabels[$review->listing_type] ?? ucfirst((string) $review->listing_type); @endphp @empty
reviews

No reviews yet

Customer ratings and comments for your listings will appear here.

@endforelse
@if ($reviews->hasPages())
Showing {{ $reviews->firstItem() }}-{{ $reviews->lastItem() }} of {{ $reviews->total() }} reviews
@endif
@include('frontend.partials.footer')