@extends('layout') @section('h4-page', __('Rating')) @section('contents')
@if (session('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{ __('Rating') }}

5

{{ @$fiveStarCount ?? 0 }}

4

{{ @$fourStarCount ?? 0 }}

3

{{ @$threeStarCount ?? 0 }}

2

{{ @$twoStarCount ?? 0 }}

1

{{ @$oneStarCount ?? 0 }}

{{ __('Average') }}

{{ __('Overall') }}
{{ number_format(@$avgRating, 2) ?? 0 }}
@if(count(@$main) > 0) {{ @$main->firstItem() }}-{{ @$main->lastItem() }} of {{ @$main->total() }} {{ __('Reviews') }} @endif
@forelse (@$main as $key => $item)
{{ @$item->account->fullname() }} {{ @$item->showDate() }}
{{ __('OrderNo') }}. {{ @$item->order?->no }}
{{ @$item->comment }}

@empty

{{ __('No rating found') }}

@endforelse
@if(count(@$main) > 0) {{ @$main->appends(request()->except('page'))->links('pagination::custom-paginate') }} @endif
@endsection