File: D:/HostingSpaces/SBogers10/beat-the-barn.komma.nl/resources/views/organisms/testimonials.blade.php
{{--@php--}}
{{-- $testimonials = isset($testimonials) ? $testimonials : $highlightedTestimonials;--}}
{{--@endphp--}}
<div class="o-testimonials">
<div class="o-testimonials__main">
@foreach($testimonials as $testimonial)
@if(!empty($testimonial->translation))
<section class="o-testimonials__item" data-kal="fade" style="--kal-delay: {{($loop->index % 4)*0.15}}s">
@include('components.testimonial', [
'testimonialRating' => $testimonial->rating,
'testimonialTitle' => $testimonial->translation->title,
'testimonialSubtitle' => $testimonial->translation->subtitle,
'testimonialQuote' => $testimonial->translation->quote,
])
</section>
@endif
@endforeach
</div>
@if(isset($testimonialButtonText) && isset($testimonialButtonLink))
<div class="o-testimonials__footer">
@include('components.button', [
'modifiers' => ['secondary'],
'buttonText' => $testimonialButtonText,
'buttonLink' => $testimonialButtonLink,
])
</div>
@endif
</div>