@extends('layouts.admin')
@section('title', 'Product Reviews')
@section('content')
@foreach(['' => 'All', 'pending' => 'Pending', 'approved' => 'Approved', 'rejected' => 'Rejected'] as $k => $l)
{{ $l }}
@endforeach
@forelse($reviews as $r)
{{ str_repeat('★', $r->rating) }}
@if($r->is_verified_purchase) Verified @endif
{{ $r->product?->name ?? 'Deleted product' }}
by {{ $r->user?->name ?? 'User' }}
@if($r->title)
{{ $r->title }}
@endif
{{ $r->body }}
@if($r->status !== 'approved')
@endif
@if($r->status !== 'rejected')
@endif
@empty
No reviews in this queue.
@endforelse
{{ $reviews->links() }}
@endsection