@php $testimonialsShow = App\Models\HomepageSetting::get('testimonials_show', true); $testimonialsLabel = App\Models\HomepageSetting::get('testimonials_label', 'TESTIMONIALS'); $testimonialsHeading = App\Models\HomepageSetting::get('testimonials_heading', 'Hear from Our Students'); $testimonialsSubtext = App\Models\HomepageSetting::get('testimonials_subtext', 'See how our certified teachers and structured past worksheets help students globally achieve top exam marks.'); $ratingShow = App\Models\HomepageSetting::get('testimonials_rating_show', true); $ratingScore = App\Models\HomepageSetting::get('testimonials_score', '4.9'); $ratingTotal = App\Models\HomepageSetting::get('testimonials_total', '847'); $breakdown = App\Models\HomepageSetting::get('testimonials_breakdown_json', []); $testimonialsList = App\Models\HomepageSetting::get('testimonials_list_json', []); $testimonialsLimit = App\Models\HomepageSetting::get('testimonials_limit', 6); $displayMode = App\Models\HomepageSetting::get('testimonials_display_mode', 'grid'); $carouselSpeed = App\Models\HomepageSetting::get('testimonials_carousel_speed', 'Medium'); @endphp @if($testimonialsShow)
@if(isset($activeEditingSection) && $activeEditingSection === 'testimonials')
Editing: Testimonials
@endif
{{ $testimonialsLabel }}

{{ $testimonialsHeading }}

{{ $testimonialsSubtext }}

@if($ratingShow)
{{ $ratingScore }}
★★★★★
Based on {{ $ratingTotal }} Reviews
@foreach(['five' => 5, 'four' => 4, 'three' => 3, 'two' => 2, 'one' => 1] as $key => $num) @php $pct = $breakdown[$key] ?? 0; @endphp
{{ $num }} Stars
{{ $pct }}%
@endforeach
@endif @php $visibleTestimonials = collect($testimonialsList)->filter(fn($t) => $t['visible'] ?? true)->take($testimonialsLimit); @endphp
@foreach($visibleTestimonials as $t)
{{ str_repeat('★', $t['stars'] ?? 5) }}{{ str_repeat('☆', 5 - ($t['stars'] ?? 5)) }}

"{{ $t['quote'] ?? '' }}"

{{ $t['name'] ?? '' }}

{{ $t['detail'] ?? '' }}
@if(isset($t['curriculum']) && $t['curriculum']) {{ $t['curriculum'] }} @endif
@endforeach
@endif