<!--=================================
newsletter -->
<livewire:footer-newsletter/>
<!--=================================
newsletter -->
<!--=================================
footer-->
<footer class="footer bg-dark space-pt">
    <div class="container">
        <div class="row">
            <div class="col-lg-4 col-md-6">
                <div class="footer-contact-info">
                    <h5 class="text-primary mb-4">Contact {{$settings->name}}</h5>
                     <ul class="list-unstyled mb-0">
                         @if(!empty($settings->address))

                        <li> <b> <i class="fas fa-map-marker-alt"></i></b><span>{!! $settings->address !!}</span> </li>
                         @endif
                             @if(!empty($settings->phone_number))
                         <li> <b><i class="fas fa-microphone-alt"></i></b><span>{{$settings->phone_number}}</span> </li>
                             @endif
                             @if(!empty($settings->email))
                         <li> <b><i class="fas fa-headset"></i></b><span>{{$settings->email}}</span> </li>
                             @endif
                     </ul>
                </div>
            </div>
            {{--<div class="col-lg-5 col-md-6 mt-4 mt-md-0">
                <div class="footer-link">
                    <h5 class="text-primary mb-4">Useful links</h5>
                    <ul class="list-unstyled mb-0">
                        @forelse($propertyCategories->take(5) as $category)
                            {{dd($category->propertyType)}}
                        <li> <a href="{{route('frontend.property-category',[$category->propertyType,$category])}}">{{$category->name}} </a> </li>

                            @empty
                        @endforelse
                    </ul>
                    <ul class="list-unstyled mb-0">
                        @forelse($propertyCategories->skip(5) as $category)
                            <li> <a href="{{route('frontend.property-category',[$category->propertyType,$category])}}">{{$category->name}} </a> </li>

                        @empty
                        @endforelse
                    </ul>
                </div>
            </div>--}}
            <div class="col-lg-5 col-md-6 mt-4 mt-md-0">
                <div class="footer-link">
                    <h5 class="text-primary mb-4">Useful links</h5>
                    <ul class="list-unstyled mb-0">
                        @forelse($propertyTypes as $type)
                            @if($type->property->count()>0)
                            <li> <a href="{{route('frontend.property-type',$type)}}">{{$type->name}} </a> </li>
                            @endif
                        @empty
                        @endforelse
                    </ul>
                    {{--<ul class="list-unstyled mb-0">
                        @forelse($propertyCategories->skip(5) as $category)
                            <li> <a href="{{route('frontend.property-category',[$category->propertyType,$category])}}">{{$category->name}} </a> </li>

                        @empty
                        @endforelse
                    </ul>--}}
                </div>
            </div>
            <div class="col-lg-3 col-md-6">
                <div class="footer-contact-info">
                    <h5 class="text-primary mb-4">Main Links</h5>
                    <ul class="list-unstyled mb-0">

                            <li> <a href="{{route('frontend.index')}}">Home </a> </li>
                            <li> <a href="{{route('frontend.about')}}">About Us </a> </li>
                            <li> <a href="{{route('frontend.contact')}}">Contact Us </a> </li>

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


        </div>
    </div>
    <div class="footer-bottom">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-4 text-center text-md-start">
                    <a href="{{route('frontend.index')}}" wire:navigate><img class="img-fluid footer-logo" src="{{asset('storage/'.$settings->light_logo)}}" alt=""> </a>
                </div>
                <div class="col-md-4 text-center my-3 mt-md-0 mb-md-0">
                    <a id="back-to-top" class="back-to-top" href="#"><i class="fas fa-angle-double-up"></i> </a>
                </div>
                <div class="col-md-4 text-center text-md-end">
                    <p class="mb-0 text-white"> &copy;Copyright <span id="copyright"> <script>document.getElementById('copyright').appendChild(document.createTextNode(new Date().getFullYear()))</script></span> <a href="#">
                        {{$settings->name}} </a> All Rights Reserved </p>
                </div>
            </div>
        </div>
    </div>
</footer>
<!--=================================
footer-->
