@props([ 'testimonials', // collection of Testimonial 'uid' => 'home', // unique per slider on a page 'eyebrow' => null, 'title' => null, 'description' => null, 'seeAll' => null, // optional URL for a "See all" button ]) {{-- Testimonials slider: intro + dots on the left, cards on the right, image opens a modal with the full text. Used by the homepage and by the Testimonials page so both look the same. Usage: --}} @php use App\Helpers\Helper; use App\Enum\PerspectiveFromEnum; $count = $testimonials->count(); @endphp @if ($count > 0)
{{-- Intro --}}
@if ($seeAll) @endif
{{-- Cards --}}
@foreach ($testimonials as $testimonial) @php $role = $testimonial->perspective_from == PerspectiveFromEnum::ALUMNI->value ? __('pages.batch_of') . ' ' . optional($testimonial->alumni)->batch : PerspectiveFromEnum::map($testimonial->perspective_from); @endphp
{!! Helper::stripInlineStyle($testimonial->testimonial_text) !!}

{{ $testimonial->full_name }}

{{ $role }}
@endforeach
@once @push('styles') @endpush @endonce @push('scripts') @endpush @endif