@php
    $landingContent =\App\Models\LandingContent::where('type','whychooseus')->where('locale',app()->getLocale())->get();
@endphp


<section class="why-choose-us section-style-2">
    <div class="container">
        <div class="row">
            <div class="col-xl-6 col-lg-6 col-md-12">
                <div class="why-choose-us-img" data-aos="fade-right" data-aos-duration="2000">
                    <img src="{{ asset($data['left_img']) }}" alt=""/>
                </div>
            </div>
            <div class="col-xl-6 col-lg-6 col-md-12">
                <div class="why-choose-us-content">
                    <div class="section-title">
                        <h4 data-aos="fade-down" data-aos-duration="1500">{{ $data['title_small'] }}</h4>
                        <h2 data-aos="fade-down" data-aos-duration="1000">{{ $data['title_big'] }}</h2>
                    </div>
                    <div class="row">

                        @foreach($landingContent as $content)
                            <div class="col-lg-12 col-md-12">
                                <div class="single" data-aos="fade-down" data-aos-duration="2000">
                                    <div class="icons">
                                        <div class="icon">
                                            @if(content_exists($content->icon))
                                            <img src="{{ asset($content->icon) }}">
                                            @else
                                            <i class="{{ $content->icon }}"></i>
                                            @endif
                                        </div>
                                    </div>
                                    <div class="content">
                                        <h4>{{ $content->title }}</h4>
                                        <p>{{ $content->description }}</p>
                                    </div>
                                </div>
                            </div>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
