@extends('frontend.layouts.app') @section('title', 'Testimonials') @php use App\Helpers\Helper; @endphp @section('content') {{-- Hero Section --}} @include('frontend.partials.hero', [ 'mainHeading' => __('pages.testimonials'), 'subHeading' => __('pages.testimonials_sub_heading'), 'breadcrumb1' => [ 'name' => __('route.home'), 'route' => route('home'), ], 'breadcrumb2' => [ 'name' => __('pages.testimonials'), 'route' => route('testimonials'), 'class' => 'text-gray-400', ], 'breadcrumb3' => null, 'breadcrumb4' => null, ]) {{-- Testimonials Section --}}
@php $testimonialSections = [ [ 'type' => 'alumni', 'data' => $alumniTestimonials, 'title' => __('pages.alumni_testimonial_title'), 'subtitle' => __('pages.alumni_testimonial_subtitle'), 'bg' => 'bg-[#F2F5FA]', 'bg_image' => 'assets/frontend/images/about-us/white-bg.avif', 'gradient' => 'bg-gradient-to-b from-white/60 to-white/40', ], [ 'type' => 'guardian', 'data' => $guardianTestimonials, 'title' => __('pages.guardian_testimonial_title'), 'subtitle' => __('pages.guardian_testimonial_subtitle'), 'bg' => 'bg-primary text-[#F2F5FA]', 'bg_image' => 'assets/frontend/images/about-us/hero-section.jpg', 'gradient' => 'bg-gradient-to-b from-black/60 to-black/40', ], [ 'type' => 'faculty', 'data' => $facultyTestimonials, 'title' => __('pages.faculty_testimonial_title'), 'subtitle' => __('pages.faculty_testimonial_subtitle'), 'bg' => 'bg-[#F2F5FA]', 'bg_image' => 'assets/frontend/images/about-us/white-bg.avif', 'gradient' => 'bg-gradient-to-b from-white/60 to-white/40', ], ]; @endphp @foreach ($testimonialSections as $section) @if ($section['data']->isNotEmpty())
{{-- Section Header --}}
@for ($i = 0; $i < 2; $i++) @endfor {{ ucfirst($section['type']) }} @for ($i = 0; $i < 2; $i++) @endfor

{{ $section['title'] }}

{{ $section['subtitle'] }}

{{-- Swiper Section --}}
@foreach ($section['data'] as $testimonial)
{{ $section['type'] }} Image

{!! Helper::stripInlineStyle($testimonial->testimonial_text) !!}

{{ $testimonial->full_name }}

@if ($section['type'] === 'alumni') {{ __('pages.batch_of') }} {{ optional($testimonial->alumni)->batch }} @elseif($section['type'] === 'guardian') {{ __('pages.guardian') }} @else {{ __('pages.faculty') }} @endif
@endforeach
{{-- Swiper Navigation --}}
@endif @endforeach
@endsection @push('scripts') @endpush