@extends('admin.layout') @section('title', 'Product Reviews Management') @section('heading', 'Customer Product Reviews & Ratings') @section('content')
Customer Product Reviews ({{ $reviews->total() }})

Manage customer star ratings and feedback for catalogue sarees.

@forelse($reviews as $index => $rev) @empty @endforelse
S.No Product Details Customer Name Star Rating Review Comment Date Actions
{{ $reviews->firstItem() + $index }}
@if($rev->product && $rev->product->image) {{ $rev->product->name }} @endif
{{ $rev->product->name ?? 'Saree Product' }} {{ $rev->product->category ?? '' }}
{{ $rev->user->name ?? 'Customer' }} {{ $rev->user->email ?? 'N/A' }}
@for($i = 1; $i <= 5; $i++) {{ $i <= $rev->rating ? '★' : '☆' }} @endfor {{ $rev->rating }}/5
@if($rev->comment)

{{ $rev->comment }}

@else (No comment provided) @endif
{{ $rev->created_at ? $rev->created_at->format('d M Y') : 'N/A' }}
@csrf @method('DELETE')
No product reviews found.
Showing {{ $reviews->firstItem() ?? 0 }} to {{ $reviews->lastItem() ?? 0 }} of {{ $reviews->total() }} entries
{{ $reviews->appends(request()->query())->links('admin.partials.pagination') }}
@endsection