<?php
$data = \App\Helper\admin\siteInformation::siteInfo();
$contactinfos = \App\Helper\frontend\contactInformation::contactinformation();
$social=\App\Helper\frontend\socialInformation::SocialInfo();
$services = \App\Helper\frontend\ServiceInformation::all();
?>
{{--<footer class="footer">
    <div class="container allArea">
        <div class="row">
            <div class="col-sm-6 col-lg-3 fstArea parts">
                <h4 class="h3">Reach us at</h4>



            </div>
            <div class="col-sm-6 col-lg-3 sndArea parts">
                <h4 class="h3">Useful links</h4>
                <ul>
                    <li><a href="{{route('home')}}">Home</a></li>
                    <li><a href="{{route('abouts')}}">About</a></li>
                    --}}{{--                    <li><a href="{{route('services',['slug'=>)}}">Services</a> </li>--}}{{--
                </ul>
            </div>
                <div class="col-sm-6 col-lg-3 sndArea parts">
                <h4 class="h3">Informative links</h4>
                <ul>
                    <li><a href="{{route('faq')}}">Faq</a></li>
                    <li><a href="{{route('blogs')}}">Blog</a></li>
                    <li><a href="{{route('conatacts')}}">Contact</a></li>
                </ul>
                </div>


            <div class="col-sm-6 col-lg-3 fourArea parts">
                <h4 class="h3">Our Helpline</h4>
                <ul>

                    @if(!empty($contactinfos['contact_no']))
                        <li>
                            <i data-feather="phone"></i>
                            <a href="tel:{{$contactinfos['phone_code']}}{{$contactinfos['contact_no']}}">
                                {{$contactinfos['phone_code']}} &nbsp;
                                {{$contactinfos['contact_no']}}
                            </a>
                        </li>
                    @endif
                    @if(!empty($contactinfos['whatsapp_no']))
                        <li class="whatsapp">
                            <i class="lab la-whatsapp"></i>
                            <a href="https://wa.me/{{$contactinfos['whatsapp_no']}}">{{$contactinfos['phone_code']}} &nbsp;{{$contactinfos['whatsapp_no']}} </a>
                        </li>
                    @endif
                </ul>
                <h4 class="h3 mt-3">Follow us</h4>

            </div>
        </div>
    </div>

    <div class="copyRight">
        <p>{{$data['copy_right'] ?? ''}}</p>
    </div>
</footer>--}}

<footer class="footer">
    <div class="container allArea">
        <div class="row">
            <div class="col-md-6 col-lg-3 fstArea parts">
                <a href="{{route('home')}}" class="footerLogo"><img src="{{$data['site_logo']}}" alt="Logo" loading="lazy"><span>block stripe</span></a>
                <ul>
                    <li>
                        <i data-feather="map-pin"></i>
                        @if(!empty($contactinfos['address']))
                            <div>
                                {{$contactinfos['address']}}
                            </div>
                        @endif
                    </li>
                    <li>

                        <i data-feather="mail"></i>
                        @if(!empty($contactinfos['email']))
                            <a href="mailto:{{$contactinfos['email']}}">
                                {{$contactinfos['email']}}
                            </a>
                        @endif
                    </li>
                    @if(!empty($contactinfos['opening_and_closing_time']))
                        <li>
                            <i data-feather="clock"></i>
                            <div>
                                {{$contactinfos['opening_and_closing_time']}}
                            </div>
                        </li>
                    @endif
                </ul>
            </div>
            <div class="col-md-6 col-lg-3 sndArea parts">
                <h4 class="h3">Useful links</h4>
                <ul>
                    <li><a href="{{route('home')}}">Home</a> </li>
                    <li><a href="{{route('abouts')}}">About</a> </li>
                    <li><a href="{{route('blogs')}}">Blog</a> </li>
                    <li><a href="{{route('conatacts')}}">Contact</a> </li>
                </ul>

            </div>
            <div class="col-md-6 col-lg-3 thiArea parts">
                <h4 class="h3">Our Services</h4>
                <ul>
                    @if(!empty($services))
                        @foreach($services as $service)
                            <li><a href="{{route('services',['slug'=>$service->service_slug])}}"> {{$service->title}}</a> </li>
                        @endforeach
                    @endif

                </ul>
            </div>
            <div class="col-md-6 col-lg-3 fourArea parts">
                <h4 class="h3">Others</h4>
                <ul>
                    <li><a href="{{route('faq')}}">Faq</a> </li>

                </ul>
                <ul>

                    @if(!empty($contactinfos['contact_no']))
                        <li>
                            <i data-feather="phone"></i>
                            <a href="tel:{{$contactinfos['phone_code']}}{{$contactinfos['contact_no']}}">
                                {{$contactinfos['phone_code']}} &nbsp;
                                {{$contactinfos['contact_no']}}
                            </a>
                        </li>
                    @endif
                    @if(!empty($contactinfos['whatsapp_no']))
                        <li class="whatsapp">
                            <i class="lab la-whatsapp"></i>
                            <a href="https://wa.me/{{$contactinfos['whatsapp_no']}}">{{$contactinfos['phone_code']}} &nbsp;{{$contactinfos['whatsapp_no']}} </a>
                        </li>
                    @endif
                </ul>
                <ul class="fourArea2">
{{--                    <li><a href="#"><i data-feather="facebook"></i></a> </li>--}}
{{--                    <li><a href="#"><i data-feather="instagram"></i></a> </li>--}}
                    <li><a href="{{$social['twitter'] ?? ""}}"><i data-feather="twitter"></i></a> </li>
                    <li><a href="{{$social['linkedin'] ?? ""}}"><i data-feather="linkedin"></i></a> </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="copyRight">
        <p>© 2022 All Rights Reserved.</p>
    </div>
</footer>
