<!-- Testimonial section start -->
<section class="testimonial-section">
    <div class="bg-img-overlay"></div>
    <div class="testimonial-section-inner">
        <div class="container">
            <div class="row">
                <div class="section-header text-center">
                    <span class="section-subtitle">@lang(@$testimonial['single']['title'])</span>
                    <h2 class="section-title mx-auto">@lang(@$testimonial['single']['heading'])</h2>
                    <p class="cmn-para-text m-auto">@lang(strip_tags(@$testimonial['single']['description']))</p>
                </div>
            </div>
            <div class="row">
                <div class="owl-carousel owl-theme testimonial-carousel">
                    @forelse($testimonial['multiple'] as $item)
                        <div class="item">
                            <div class="testimonial-box">
                                <div class="testimonial-header">
                                    <div class="testimonial-title-area">
                                        <div class="testimonial-thumbs">
                                            <img
                                                src="{{ getFile(@$item['media']->image->driver, @$item['media']->image->path) }}"
                                                alt="Client Image"/>
                                        </div>
                                        <div class="testimonial-title">
                                            <h5 class="mb-0">{{ @$item['name'] }}</h5>
                                            <p>{{ @$item['address'] }}</p>
                                        </div>
                                    </div>
                                    <ul class="ratings">
                                        <li>
                                            @php
                                                $maxRating = 5;
                                            @endphp

                                            @for($i = 1; $i <= $maxRating; $i++)
                                                <i class="fa-solid fa-star @if($i <= $item['rating']) active @endif"></i>
                                            @endfor
                                        </li>
                                    </ul>
                                </div>
                                <div class="quote-area">
                                    <p>@lang(@$item['review'])</p>
                                </div>
                            </div>
                        </div>
                    @empty
                    @endforelse
                </div>
            </div>
        </div>
    </div>

</section>
<!-- Testimonial section end -->
