@php
    $testimonialContent = getContent('testimonial.content', true);
    $testimonialElement = getContent('testimonial.element', false);
@endphp
<section class="testimonial my-120">
    <div class="container">
        <div class="section-heading style-left">
            <div class="section-heading__tagline" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="100">
                {{ __($testimonialContent?->data_values?->title) }}
            </div>
            <h2 class="section-heading__title" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="200">
                {{ __($testimonialContent?->data_values?->heading) }}
            </h2>
            <div class="d-flex flex-wrap align-items-center justify-content-between gap-3">
                <p class="section-heading__desc" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="300">
                    {{ __($testimonialContent?->data_values?->subheading) }}
                </p>
                <div class="testimonial-slider-ctrl top d-none d-lg-flex" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="400">
                </div>
            </div>
        </div>
        <div class="testimonial-slider" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="300">
            @foreach ($testimonialElement as $element)
                <div class="testimonial-slider__slide">
                    <div class="testimonial-card">
                        <div class="testimonial-card__body">
                            <div class="testimonial-card__body-top">
                                <img class="testimonial-card__quote" src="{{ asset(activeTemplate(true). "images/testimonial/quote.png") }}" alt="">
                                <p class="testimonial-card__desc">
                                    {{ __($element?->data_values?->description ?? '') }}
                                </p>
                            </div>
                        </div>
                        <div class="testimonial-card__footer">
                            <div class="testimonial-card-user">
                                <div class="testimonial-card-user__content">

                                    <p class="testimonial-card-user__name">{{ __($element?->data_values?->name ?? '') }}</p>
                                    <span class="testimonial-card-user__position">{{ __($element?->data_values?->designation ?? '') }}</span>
                                </div>
                                <img class="testimonial-card-user__thumb" src="{{ frontendImage('testimonial', $element?->data_values?->user_image ?? '','90x120') }}" alt="">
                            </div>
                        </div>
                    </div>
                </div>
            @endforeach
        </div>
        <div class="testimonial-slider-ctrl bottom d-lg-none" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="400">
        </div>
    </div>
</section>
