HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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>