<!-- start footer -->
<footer>
    <div class="footer_container marginX">
        <div class="top_footer d-flex flex-wrap justify-content-around">
            <div class="col-6 col-md-3 introBrand">
                <div class="logo">
                    <a href="/"><img src="{{url('storage/logo.png?ver=3')}}" alt="logo"></a>
                </div>
                <p class="font_size_footer_p">
                    {{ $options["footer_description"]["footer_description"]?? "" }}
                </p>
            </div>
            <div class="col-6 col-md-3  address pr-3">
                <div class="title_witout_margin">
                    <div class="style_header"></div>
                    <span>
                            {{ $options["footer_two"]["footer_two_title"]?? "" }}
                        </span>
                </div>
                {!!   $options["footer_two"]["footer_two_content"]?? "" !!}
            </div>
            <div class="col-6 col-md-3 access mt-5 mt-md-0">
                <div class="title_witout_margin">
                    <div class="style_header"></div>
                    <span>
                            دسترسی سریع
                        </span>
                </div>
                <div class="topTitleAccess mr-3 margin_top_1">

                    <ul class="font_size_footer_p">
                        @foreach($pages as $page)
                            <a href="{{ $page->url }}">
                                <li>
                                    {{ $page->title }}
                                </li>
                            </a>
                        @endforeach

                    </ul>
                </div>
            </div>
            <div class="col-6 col-md-3 mt-5 mt-md-0  news">
                <div class="title_witout_margin">
                    <div class="style_header"></div>
                    <span>
                            عضویت خبرنامه
                        </span>
                </div>
                <p class="font_size_footer_p margin_top_1">
                    {{ $options["footer_four"]["footer_four_newsletter"]?? "" }}
                </p>
                <form action="{{ route("newsletter.index") }}" method="post">
                    <div class="formNews d-md-flex mx-0 px-0">

                            @csrf
                            <input type="email" name="email"  class="newsInput col-md-9 col-xl-10" placeholder="ایمیل خود را وارد کنید">
                            <button class="buttonInput font_size_footer_p col-md-3 col-xl-2 mt-1 mt-md-0">ثبت</button>

                    </div>
                </form>
               {{-- <div class="d-flex justify-content-around licenses">
                    <div class="licenses_item border p-0 col-4 mx-1">
                        <img src="{{url('storage/enamd.jpg')}}">
                    </div>
                    <div class="licenses_item border p-0 col-4 mx-1">
                        <img src="{{url('storage/enamd.jpg')}}">
                    </div>
                    <div class="licenses_item border p-0 col-4 mx-1">
                        <img src="{{url('storage/enamd.jpg')}}">
                    </div>
                </div>--}}
            </div>
        </div>
        <div class="bot_footer mt-4 d-flex flex-column flex-md-row justify-content-between">
            <div class="right_sec order-3 order-md-2 mt-5 mt-md-0">
                <p class="title_witout_margin mr-0 text-center">تاسیسات اول در شبکه های اجتماعی</p>

                <div class="social_media d-flex justify-content-md-between justify-content-center">
                    @if(!empty($options["footer_main"]["footer_main_instagram"]))
                        <a href="{{ $options["footer_main"]["footer_main_instagram"] }}">
                            <div class="social_item ml-3 border">
                                <i class="fa fa-instagram" aria-hidden="true"></i>
                            </div>
                        </a>
                    @endif
                        @if(!empty($options["footer_main"]["footer_main_whatsapp"]))
                            <a href="{{ $options["footer_main"]["footer_main_whatsapp"] }}">
                                <div class="social_item ml-3 border">
                                    <i class="fa fa-whatsapp" aria-hidden="true"></i>
                                </div>
                            </a>
                        @endif
                        @if(!empty($options["footer_main"]["footer_main_linkedin"]))
                            <a href="{{ $options["footer_main"]["footer_main_linkedin"] }}">
                                <div class="social_item ml-3 border">
                                    <i class="fa fa-linkedin" aria-hidden="true"></i>
                                </div>
                            </a>
                        @endif
                        @if(!empty($options["footer_main"]["footer_main_facebook"]))
                            <a href="{{ $options["footer_main"]["footer_main_facebook"] }}">
                                <div class="social_item ml-3 border">
                                    <i class="fa fa-facebook" aria-hidden="true"></i>
                                </div>
                            </a>
                        @endif
                            <a href="https://t.me/tasisataval">
                                <div class="social_item ml-3 border">
                                    <i class="fa fa-telegram" aria-hidden="true"></i>
                                </div>
                            </a>
                        <a href="https://twitter.com/tasisataval">
                            <div class="social_item ml-3 border">
                                <i class="fa fa-twitter" aria-hidden="true"></i>
                            </div>
                        </a>

                </div>
            </div>
            {{--<div
                class="left_sec d-flex order-2 justify-content-center justify-content-md-end order-md-3 mt-4 mt-md-auto">
                @if(!empty($options["footer_main"]["footer_main_app_store"]))
                    <a href="{{$options["footer_main"]["footer_main_app_store"]}}" class="colma">
                        <img class="img-fluid ml-2" src="{{url('storage/Astor.png')}}"
                             title="" alt="" />
                    </a>
                @endif

                @if(!empty($options["footer_main"]["footer_main_google"]))
                    <a href="{{ $options["footer_main"]["footer_main_google"] }}">
                        <img class="img-fluid" src="{{url('storage/Gplay.png')}}" title="" alt="" />
                    </a>
                @endif

            </div>--}}
        </div>
    </div>

    <div class="copyright">
        <p class="vabilo col-lg-2" style="font-size: 11px;">
            طراحی شده توسط
            <a href="//vabilo.net" style="color: #f12651;">رسانه دیجیتال وابیلو</a>
        </p>
        <p class="font_size_footer_p col-lg-9">
            {{ $options["footer_main"]["footer_main_copyright"] }}
        </p>
    </div>

    @include("Front::Layout.foot")

    @if(session()->get("toast_message"))
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.css" />
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js"></script>

        <script>
            jQuery.toast({
                text : '{{session()->get("toast_message")}}',
                showHideTransition : 'slide',  // It can be plain, fade or slide
                heading: '{{session()->get("toast_heading")}}',
                icon: '{{session()->get("toast_type")}}',
                loader: true,        // Change it to false to disable loader
                loaderBg: "#90e084",
                textAlign: 'right',
                hideAfter : 5000,
            })
        </script>
        @php
            session()->forget("toast_message");
            session()->forget("toast_heading");
            session()->forget("toast_type");
        @endphp
    @endif

    @if($errors->all())
        @foreach ($errors->all() as $error)
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.css" />
            <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js"></script>
            <script>
                jQuery.toast({
                    text : '{{ $error }}',
                    showHideTransition : 'slide',  // It can be plain, fade or slide
                    heading: 'خطایی رخ داده است',
                    icon: 'error',
                    loader: true,        // Change it to false to disable loader
                    loaderBg: "#90e084",
                    textAlign: 'right',
                    hideAfter : 5000,
                })
            </script>
        @endforeach
    @endif

</footer>
<!-- end footer -->
