<!-- Main Footer Section -->
<footer class="main-footer">
    <div class="bg bg-pattern-9"></div>
    <div class="auto-container">
        <div class="subscribe-form">
            <div class="title-column">
                <h5 class="title">
                    <i class="icon flaticon-open-envelope"></i> {!! nl2br($global_setting->footer_subscriber_text) !!}
                </h5>
            </div>
            <div class="form-column">
                <form action="{{ route('subscriber_submit') }}" method="post">
                    @csrf
                    <div class="form-group">
                        <input type="email" name="email" placeholder="{{ __('Email Address') }}" required>
                        <button name="form_subscribe" type="submit" class="theme-btn">
                            <i class="fa fa-paper-plane"></i>
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="widgets-section">
        <div class="auto-container">
            <div class="row">
                
                <div class="footer-column col-xl-3 col-lg-12 col-md-12">
                    <div class="footer-widget about-widget">
                        <div class="logo">
                            <a href="{{ url('/') }}">
                                <img src="{{ asset('uploads/'.$global_setting->logo_reverse) }}" alt="">
                            </a>
                        </div>
                        <div class="text">
                            {!! nl2br($global_setting->footer_text) !!}
                        </div>

                        @if($global_setting->facebook !='' || $global_setting->twitter !='' || $global_setting->linkedin !='' || $global_setting->instagram !='' || $global_setting->youtube !='' || $global_setting->pinterest !='')
                        <ul class="social-icon-two">
                            
                            @if($global_setting->facebook !='')
                            <li><a href="{{ $global_setting->facebook }}" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
                            @endif

                            @if($global_setting->twitter !='')
                            <li><a href="{{ $global_setting->twitter }}" target="_blank"><i class="fab fa-twitter"></i></a></li>
                            @endif

                            @if($global_setting->linkedin !='')
                            <li><a href="{{ $global_setting->linkedin }}" target="_blank"><i class="fab fa-linkedin-in"></i></a></li>
                            @endif

                            @if($global_setting->instagram !='')
                            <li><a href="{{ $global_setting->instagram }}" target="_blank"><i class="fab fa-instagram"></i></a></li>
                            @endif

                            @if($global_setting->youtube !='')
                            <li><a href="{{ $global_setting->youtube }}" target="_blank"><i class="fab fa-youtube"></i></a></li>
                            @endif
                            
                            @if($global_setting->pinterest !='')
                            <li><a href="{{ $global_setting->pinterest }}" target="_blank"><i class="fab fa-pinterest-p"></i></a></li>
                            @endif
                        </ul>
                        @endif
                    </div>
                </div>

                <div class="footer-column col-xl-3 col-lg-4 col-md-4">
                    <div class="footer-widget links-widget">
                        <h6 class="widget-title">
                            {{ $global_setting->footer_links_heading }}
                        </h6>
                        <ul class="user-links">
                            <li><a href="{{ route('blog') }}">{{ __('Blog') }}</a></li>
                            <li><a href="{{ route('services') }}">{{ __('Services') }}</a></li>
                            <li><a href="{{ route('portfolios') }}">{{ __('Portfolios') }}</a></li>
                            <li><a href="{{ route('terms') }}">{{ __('Terms of Use') }}</a></li>
                            <li><a href="{{ route('privacy') }}">{{ __('Privacy Policy') }}</a></li>
                        </ul>
                    </div>
                </div>

                <div class="footer-column col-xl-3 col-lg-4 col-md-4 col-sm-8">
                    <div class="footer-widget gallery-widget">
                        <h6 class="widget-title">
                            {{ $global_setting->footer_portfolio_heading }}
                        </h6>
                        <div class="widget-content">
                            <div class="outer clearfix">
                                @php
                                $portfolios = App\Models\Portfolio::orderBy('id','asc')->limit(6)->get();
                                @endphp
                                @foreach($portfolios as $row)
                                <figure class="image">
                                    <a href="{{ route('portfolio',$row->slug) }}"><img src="{{ asset('uploads/'.$row->photo) }}" alt=""></a>
                                </figure>
                                @endforeach
                            </div>
                        </div>
                    </div>
                </div>

                <div class="footer-column col-xl-3 col-lg-4 col-md-4">
                    <div class="footer-widget contacts-widget">
                        <h6 class="widget-title">
                            {{ $global_setting->footer_contact_heading }}
                        </h6>
                        <div class="text">
                            {{ $global_setting->footer_address }}
                        </div>
                        <ul class="contact-info">
                            <li><i class="fa fa-envelope"></i> <a href="mailto:{{ $global_setting->footer_email }}">{{ $global_setting->footer_email }}</a><br></li>
                            <li><i class="fa fa-phone-square"></i> <a href="tel:{{ $global_setting->footer_phone }}">{{ $global_setting->footer_phone }}</a><br></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="footer-bottom">
        <div class="auto-container">
            <div class="inner-container">
                <div class="copyright-text">
                    {{ $global_setting->footer_copyright }}
                </div>
            </div>
        </div>
    </div>
</footer>
<!-- // Main Footer Section -->