Testimoni Pengguna

Rating dan Ulasan

{{ $totalReviews > 0 ? number_format($averageRating, 1) : '-' }} / 5.0

{{ $totalReviews }} ulasan terverifikasi dari booking selesai.

@for ($star = 5; $star >= 1; $star--) @php $count = $ratingBreakdown[$star] ?? 0; $maxValue = max($totalReviews, 1); @endphp
@endfor
@forelse ($reviews as $review) @php $customerName = $review->customer?->name ?? 'Customer'; $nameLength = function_exists('mb_strlen') ? mb_strlen($customerName) : strlen($customerName); if ($nameLength <= 2) { $displayName = $customerName; } else { $first = function_exists('mb_substr') ? mb_substr($customerName, 0, 1) : substr($customerName, 0, 1); $last = function_exists('mb_substr') ? mb_substr($customerName, -1) : substr($customerName, -1); $displayName = $first . str_repeat('*', max($nameLength - 2, 1)) . $last; } @endphp

{{ $displayName }}

{{ $review->created_at->format('d M Y') }}

@for ($i = 1; $i <= 5; $i++) {{ $i <= $review->rating ? '★' : '☆' }} @endfor

{{ $review->review ?: 'Customer memberikan rating tanpa komentar tambahan.' }}

@empty

Belum ada ulasan

Jadilah penyewa pertama yang memberikan penilaian untuk kendaraan ini.

Ulasan akan muncul setelah customer menyelesaikan booking dan mengirimkan review.

@endforelse