@foreach($rates as $key=> $row)
{{ $row->user->name }} {{ ($row->type == 'rep') ? ($row->rep->name ?? "") : ($row->product?->descriptions()->name ?? "") }} {{ $row->rate }} {{ __("rates.rating_type_$row->type") }} {{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }} @endforeach @if( count( $rates ) && $rates->hasPages() ) {{ $rates->links() }} @endif