@extends('backend.admin-master') @section('style') @endsection @section('site-title') {{__('All Product Reviews')}} @endsection @section('content')
@include('backend/partials/message') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach
@endif

{{__('All Product Reviews')}}

@foreach($all_ratings as $data) @endforeach
{{__('Review ID')}} {{__('Product Name')}} {{__('Reviewer Name')}} {{__('Ratings')}} {{__('Date')}} {{__('Action')}}
{{$data->id}} @if(!empty($data->product)) {{$data->product->title}} @else
{{__('Product deleted or not available')}}
@endif
{{get_user_name_by_id($data->user_id) ? get_user_name_by_id($data->user_id)->name : __('anonymous')}}
{!! render_ratings($data->ratings) !!}
{{date_format($data->created_at,'d M Y')}}
@endsection @section('script') @endsection