@extends('frontend.layouts.master') @section('page-body')

Feedback

Customer Feedback

@for($i = 5; $i >= 1; $i--)
{{ $i }} ★
@php $percent = $feedbacks->count() ? ($starCounts[$i] / $feedbacks->count()) * 100 : 0; @endphp
{{ $starCounts[$i] }}
@endfor
Overall Rating
@php $fullStars = floor($averageRating); $halfStar = $averageRating - $fullStars >= 0.5; @endphp
@for($i = 1; $i <= 5; $i++) @if($i <= $fullStars) ★ @elseif($halfStar && $i == $fullStars + 1) ☆ @else ★ @endif @endfor

{{ number_format($averageRating,1) }} out of 5

@endsection @push('custom-js') @endpush @section('title', 'Customer Feedback | Uniform Flex') @section('meta-tags') @endsection @push('custom-css') @endpush