@extends('admin_base') @section('title', 'Product Reviews') @section('content')

Product Reviews

@forelse($ratings as $rating) @empty @endforelse
# Product User Rating Comment Date Action
{{ $rating->id }} {{ $rating->product->title }} @if($rating->user) {{ $rating->user->name }}
{{ $rating->user->email }} @else User @endif
@for($i=1;$i<=5;$i++) @if($i <= $rating->rating) @else @endif @endfor
{{ $rating->comment }} {{ $rating->created_at->format('d M Y, h:i A') }}
@csrf @method('DELETE')
No reviews found
@if($ratings->hasPages()) @endif
@endsection