@props(['testimonial']) @php $quote = app()->getLocale() === 'ar' ? ($testimonial->quote_ar ?? '') : ($testimonial->quote_en ?? $testimonial->quote_ar ?? ''); $name = $testimonial->client_name ?? ''; $role = $testimonial->client_role ?? ''; $company = $testimonial->client_company ?? ''; $rating = (int) ($testimonial->rating ?? 5); $avatarUrl = $testimonial->client_avatar_path ? asset('storage/' . $testimonial->client_avatar_path) : null; @endphp
@for($i = 0; $i < $rating; $i++) @endfor

"{{ $quote }}"

@if($avatarUrl) {{ $name }} @else {{ mb_substr($name ?: 'م', 0, 1) }} @endif

{{ $name }}

{{ trim($role . ($company ? ' · '.$company : '')) }}