@extends('frontend.master') @section('content')

Feedback

{{--
--}}
@foreach($ratingStats as $stat)
{{ $stat['rating'] }}
{{$stat['count'] }}
@endforeach

Overall Rating

{{$overallRating}}

@php $fullStars = floor($overallRating); $partialPercent = ($overallRating - $fullStars) * 100; @endphp
@for ($i = 1; $i <= 5; $i++) @if ($i <=$fullStars) @elseif ($i == $fullStars + 1 && $partialPercent > 0) @else @endif @endfor
@foreach($ratings as $rating) @php $stars = $rating->rating @endphp
@for ($i = 1; $i <= 5; $i++) @endfor
{{$rating->booking->user->name??''}}
{{$rating->created_at->format('M, d, Y')}}

{{$rating->comment}}


@endforeach
{{$ratings->links()}}
@endsection @push('custom-css') @endpush