@php
$pages = App\Models\Page::get();
$contact = getContent('contact_us_two.content',true);
$socials = getContent('social_icon.element');
$policyPages = getContent('policy_pages.element',false,null,true);
$importantLinks = getContent('footer_important_links_two.element', false, null, true);

$cookie = getContent('cookie.data',true);
@endphp
<footer class="footer-area section-bg-light bg-img">
    <div class="pb-60 pt-120">
        <div class="container">
            <div class="row justify-content-center gy-5">
                <div class="col-xl-3 col-sm-6">
                    <div class="footer-item">
                        <div class="footer-item__logo">
                            <a href="{{route('home')}}"> <img
                                    src="{{ getImage('assets/images/logoIcon/logo_white.png') }}" alt=""></a>
                        </div>
                        <p class="footer-item__desc">{{ __($contact->data_values->description) }}
                        </p>
                        <ul class="social-list">
                            @foreach($socials as $item)
                            <li class="social-list__item"><a href="{{ $item->data_values->social_icon }}"
                                    class="social-list__link active text-white"> @php echo
                                    $item->data_values->social_icon; @endphp</a></li>
                            @endforeach
                        </ul>
                    </div>
                </div>
                <div class="col-xl-1 d-xl-block d-none"></div>
                <div class="col-xl-2 col-sm-6">
                    <div class="footer-item">
                        <h5 class="footer-item__title">@lang('Userful Link')</h5>
                        <ul class="footer-menu">
                            @foreach ($importantLinks as $item)
                            <li class="footer-menu__item">
                                <a href="{{ $item->data_values->url }}"
                                    class="footer-menu__link">{{ __($item->data_values->title)}}</a></li>

                            @endforeach

                        </ul>
                    </div>
                </div>
                <div class="col-xl-2 col-sm-6">
                    <div class="footer-item">
                        <h5 class="footer-item__title">@lang('Important Link')</h5>
                        <ul class="footer-menu">


                            @foreach($policyPages as $key => $data)
                            <li class="footer-menu__item">
                                <a href="{{ route('policy.pages',[slug($data->data_values->title),$data->id]) }}"
                                    class="footer-menu__link"> {{__($data->data_values->title)}}</a>
                            </li>
                            @endforeach
                            <li class="footer-menu__item">
                                <a href="{{route('cookie.policy')}}" class="footer-menu__link"> @lang('Cookie & Policy')
                                </a>
                            </li>

                        </ul>
                    </div>
                </div>
                <div class="col-xl-1 d-xl-block d-none"></div>
                <div class="col-xl-3 col-sm-6">
                    <div class="footer-item">
                        <h5 class="footer-item__title">@lang('Contact With Us')</h5>
                        <ul class="footer-contact-menu">
                            <li class="footer-contact-menu__item">
                                <div class="footer-contact-menu__item-icon">
                                    <i class="fas fa-map-marker-alt"></i>
                                </div>
                                <div class="footer-contact-menu__item-content">
                                    <p>{{__($contact->data_values->address)}}</p>
                                </div>
                            </li>
                            <li class="footer-contact-menu__item">
                                <div class="footer-contact-menu__item-icon">
                                    <i class="fas fa-envelope"></i>
                                </div>
                                <div class="footer-contact-menu__item-content">
                                    <p>{{__($contact->data_values->email_address)}}</p>
                                </div>
                            </li>
                            <li class="footer-contact-menu__item">
                                <div class="footer-contact-menu__item-icon">
                                    <i class="fas fa-phone"></i>
                                </div>
                                <div class="footer-contact-menu__item-content">
                                    <p>{{__($contact->data_values->contact_number)}}</p>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Footer Top End-->

    <!-- bottom Footer -->
    <div class="bottom-footer section-bg py-3">
        <div class="container">
            <div class="row gy-3">
                <div class="col-md-12 text-center">
                    <div class="bottom-footer-text text-white"> @php echo $contact->data_values->copyright_text; @endphp
                    </div>
                </div>
            </div>
        </div>
    </div>
</footer>