@include('layouts.admin.header')
<body id="page-top" class="body_bg">
    @php
        $websiteLang=App\ManageText::all();
        $app_setting=App\Setting::first();
    @endphp

    <!-- Page Wrapper -->
    <div id="wrapper">

        <!-- Sidebar -->
        <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">

            <!-- Sidebar - Brand -->
            <a class="sidebar-brand d-flex align-items-center justify-content-center" href="{{ route('home') }}">
                <div class="sidebar-brand-icon rotate-n-15">
                    <i class="{{ $app_setting->dashbaord_header_icon }}"></i>
                </div>
                <div class="sidebar-brand-text mx-3">{{ $app_setting->dashboard_header }}</div>
            </a>

            <!-- Divider -->
            <hr class="sidebar-divider my-0">


            <!-- Nav Item - Dashboard -->
            <li class="nav-item {{ Route::is('admin.dashboard')?'active':'' }}">
                <a class="nav-link" href="{{ route('admin.dashboard') }}">
                    <i class="fas fa-fw fa-tachometer-alt"></i>
                    <span>{{ $websiteLang->where('lang_key','dashboard')->first()->custom_text }}</span></a>
            </li>


            <!-- Divider -->
            <hr class="sidebar-divider">
            <!-- Nav Item - Pages Collapse Menu -->
             <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#real_estate"
                    aria-expanded="true" aria-controls="real_estate">
                    <i class="fas far fa-building"></i>
                    <span>{{ $websiteLang->where('lang_key','real_estate')->first()->custom_text }}</span>
                </a>
                <div id="real_estate" class="collapse {{ Route::is('admin.property.*') ||
                Route::is('admin.property-purpose.*') || Route::is('admin.property-type.*') || Route::is('admin.nearest-location.*') || Route::is('admin.aminity.*') || Route::is('admin.package.*') || Route::is('admin.listing-review') || Route::is('admin.agents') ||  Route::is('admin.agents.show') || Route::is('admin.order') || Route::is('admin.order-show') || Route::is('admin.agent-property') || Route::is('admin.pending-order')
                 ? 'show':'' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">

                        <a class="collapse-item {{ Route::is('admin.agent-property')?'active':'' }}" href="{{ route('admin.agent-property') }}">{{ $websiteLang->where('lang_key','agent_property')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.property.*')?'active':'' }}" href="{{ route('admin.property.index') }}">{{ $websiteLang->where('lang_key','my_property')->first()->custom_text }}</a>


                        <a class="collapse-item {{ Route::is('admin.property-purpose.*')?'active':'' }}" href="{{ route('admin.property-purpose.index') }}">{{ $websiteLang->where('lang_key','property_purpose')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.property-type.*')?'active':'' }}" href="{{ route('admin.property-type.index') }}">{{ $websiteLang->where('lang_key','property_type')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.nearest-location.*')?'active':'' }}" href="{{ route('admin.nearest-location.index') }}">{{ $websiteLang->where('lang_key','nearest_loc')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.aminity.*')?'active':'' }}" href="{{ route('admin.aminity.index') }}">{{ $websiteLang->where('lang_key','aminities')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.package.*')?'active':'' }}" href="{{ route('admin.package.index') }}">{{ $websiteLang->where('lang_key','package')->first()->custom_text }}</a>


                        <a class="collapse-item {{ Route::is('admin.agents') ||  Route::is('admin.agents.show')?'active':'' }}" href="{{ route('admin.agents') }}">{{ $websiteLang->where('lang_key','agent')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.order') || Route::is('admin.order-show') ?'active':'' }}" href="{{ route('admin.order') }}">{{ $websiteLang->where('lang_key','order')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.pending-order') ?'active':'' }}" href="{{ route('admin.pending-order') }}">{{ $websiteLang->where('lang_key','pending_order')->first()->custom_text }}</a>



                        <a class="collapse-item {{ Route::is('admin.listing-review')?'active':'' }}" href="{{ route('admin.listing-review') }}">{{ $websiteLang->where('lang_key','review')->first()->custom_text }}</a>



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


            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages"
                    aria-expanded="true" aria-controls="collapsePages">
                    <i class="fas fa-columns"></i>
                    <span>{{ $websiteLang->where('lang_key','pages')->first()->custom_text }}</span>
                </a>
                <div id="collapsePages" class="collapse {{
                Route::is('admin.about.index') || Route::is('admin.terms-conditions.index') || Route::is('admin.custom-page.*') || Route::is('admin.faq.*') || Route::is('admin.privacy-policy')
                 ? 'show':'' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.about.index')?'active':'' }}" href="{{ route('admin.about.index') }}">{{ $websiteLang->where('lang_key','about_us')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.terms-conditions.index')?'active':'' }}" href="{{ route('admin.terms-conditions.index') }}">{{ $websiteLang->where('lang_key','terms_cond')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.privacy-policy')?'active':'' }}" href="{{ route('admin.privacy-policy') }}">{{ $websiteLang->where('lang_key','privacy_policy')->first()->custom_text }}</a>



                        <a class="collapse-item {{ Route::is('admin.custom-page.*')?'active':'' }}" href="{{ route('admin.custom-page.index') }}">{{ $websiteLang->where('lang_key','custom_page')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.faq.*')?'active':'' }}" href="{{ route('admin.faq.index') }}">{{ $websiteLang->where('lang_key','faq')->first()->custom_text }}</a>


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

            <!-- Nav Item - Pages Collapse Menu -->
             <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapge_location"
                    aria-expanded="true" aria-controls="collapge_location">
                    <i class="fas fa-map-marker-alt"></i>
                    <span>{{ $websiteLang->where('lang_key','locations')->first()->custom_text }}</span>
                </a>
                <div id="collapge_location" class="collapse {{
                Route::is('admin.country.*') || Route::is('admin.country-state.*') || Route::is('admin.city.*')
                 ? 'show':'' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.country.*')?'active':'' }}" href="{{ route('admin.country.index') }}">{{ $websiteLang->where('lang_key','country')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.country-state.*')?'active':'' }}" href="{{ route('admin.country-state.index') }}">{{ $websiteLang->where('lang_key','state')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.city.*')?'active':'' }}" href="{{ route('admin.city.index') }}">{{ $websiteLang->where('lang_key','city')->first()->custom_text }}</a>


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





            <!-- Nav Item - Pages Collapse Menu -->
             <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#section-control"
                    aria-expanded="true" aria-controls="section-control">
                    <i class="fas fa-th-large"></i>
                    <span>{{ $websiteLang->where('lang_key','section_control')->first()->custom_text }}</span>
                </a>
                <div id="section-control" class="collapse {{Route::is('admin.about-section.*') || Route::is('admin.home-section.*') || Route::is('admin.menu-section')
                 ? 'show':'' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.about-section.*')?'active':'' }}" href="{{ route('admin.about-section.index') }}">{{ $websiteLang->where('lang_key','about_section')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.menu-section')?'active':'' }}" href="{{ route('admin.menu-section') }}">{{ $websiteLang->where('lang_key','menu_section')->first()->custom_text }}</a>


                        <a class="collapse-item {{ Route::is('admin.home-section.*')?'active':'' }}" href="{{ route('admin.home-section.index') }}">{{ $websiteLang->where('lang_key','home_section')->first()->custom_text }}</a>

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


            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#home-section-2-pages"
                    aria-expanded="true" aria-controls="home-section-2-pages">
                    <i class="fas fa-fw fa-folder"></i>
                    <span>{{ $websiteLang->where('lang_key','all_section')->first()->custom_text }}</span>
                </a>
                <div id="home-section-2-pages" class="collapse {{ Route::is('admin.slider.index') || Route::is('admin.partner.index') || Route::is('admin.testimonial.index') || Route::is('admin.overview.index') || Route::is('admin.service.index') ? 'show': '' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.slider.index')?'active':'' }}" href="{{ route('admin.slider.index') }}">{{ $websiteLang->where('lang_key','slider')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.testimonial.index') ?'active':'' }}" href="{{ route('admin.testimonial.index') }}">{{ $websiteLang->where('lang_key','testimonial')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.partner.index')?'active':'' }}" href="{{ route('admin.partner.index') }}">{{ $websiteLang->where('lang_key','partner')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.service.index')?'active':'' }}" href="{{ route('admin.service.index') }}">{{ $websiteLang->where('lang_key','services')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.overview.index')?'active':'' }}" href="{{ route('admin.overview.index') }}">{{ $websiteLang->where('lang_key','overview')->first()->custom_text }}</a>


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

            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#page-setup-pages"
                    aria-expanded="true" aria-controls="page-setup-pages">
                    <i class="fas fa-globe"></i>
                    <span>{{ $websiteLang->where('lang_key','seo_setup')->first()->custom_text }}</span>
                </a>
                <div id="page-setup-pages" class="collapse {{
                    Route::is('admin.home-seo-setup') ||
                    Route::is('admin.property-seo-setup') ||
                    Route::is('admin.about-us-seo-setup') ||
                    Route::is('admin.pricing-seo-setup') ||
                    Route::is('admin.our-agent-seo-setup') ||
                    Route::is('admin.blog-seo-setup') ||
                    Route::is('admin.contact-us-seo-setup') || Route::is('admin.faq-seo-setup') ? 'show':'' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.home-seo-setup')?'active':'' }}" href="{{ route('admin.home-seo-setup',1) }}">{{ $websiteLang->where('lang_key','home_page')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.property-seo-setup')?'active':'' }}" href="{{ route('admin.property-seo-setup',2) }}">{{ $websiteLang->where('lang_key','property_page')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.about-us-seo-setup')?'active':'' }}" href="{{ route('admin.about-us-seo-setup',3) }}">{{ $websiteLang->where('lang_key','about_us')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.pricing-seo-setup')?'active':'' }}" href="{{ route('admin.pricing-seo-setup',4) }}">{{ $websiteLang->where('lang_key','pricing_plan')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.our-agent-seo-setup')?'active':'' }}" href="{{ route('admin.our-agent-seo-setup',5) }}">{{ $websiteLang->where('lang_key','agent_page')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.blog-seo-setup')?'active':'' }}" href="{{ route('admin.blog-seo-setup',6) }}">{{$websiteLang->where('lang_key','blog_page')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.contact-us-seo-setup')?'active':'' }}" href="{{ route('admin.contact-us-seo-setup',7) }}">{{ $websiteLang->where('lang_key','contact_us')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.faq-seo-setup')?'active':'' }}" href="{{ route('admin.faq-seo-setup',8) }}">{{ $websiteLang->where('lang_key','faq_page')->first()->custom_text }}</a>



                    </div>
                </div>
            </li>
            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#website-setup-pages"
                    aria-expanded="true" aria-controls="website-setup-pages">
                    <i class="fas fa-th-large"></i>
                    <span>{{ $websiteLang->where('lang_key','language')->first()->custom_text }}</span>
                </a>
                <div id="website-setup-pages" class="collapse {{
                    Route::is('admin.setup.text') || Route::is('admin.validation.errors') || Route::is('admin.notification.text') ? 'show':'' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">

                        <a class="collapse-item {{ Route::is('admin.setup.text')?'active':'' }}" href="{{ route('admin.setup.text') }}">{{ $websiteLang->where('lang_key','website_language')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.validation.errors')?'active':'' }}" href="{{ route('admin.validation.errors') }}">{{ $websiteLang->where('lang_key','validation_language')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.notification.text')?'active':'' }}" href="{{ route('admin.notification.text') }}">{{ $websiteLang->where('lang_key','notify_language')->first()->custom_text }}</a>



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




            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#setting-pages"
                    aria-expanded="true" aria-controls="setting-pages">
                    <i class="fas fa-cog"></i>
                    <span> {{ $websiteLang->where('lang_key','setting')->first()->custom_text }}</span>
                </a>
                <div id="setting-pages" class="collapse {{
                Route::is('admin.settings.index') ||
                Route::is('admin.comment.setting') ||
                Route::is('admin.cookie.consent.setting') ||
                Route::is('admin.payment-account.index') ||
                Route::is('admin.captcha.setting') ||
                Route::is('admin.livechat.setting') ||
                Route::is('admin.preloader.setting') ||
                Route::is('admin.google.analytic.setting') ||
                Route::is('admin.theme-color') ||
                Route::is('admin.clear.database') ||
                Route::is('admin.banner.image') ||
                Route::is('admin.email.template') || Route::is('admin.email-edit') || Route::is('admin.email-configuration') || Route::is('admin.login.image') || Route::is('admin.profile.image') || Route::is('admin.bg.image') || Route::is('admin.paginator') ? 'show' :'' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.settings.index')?'active':'' }}" href="{{ route('admin.settings.index') }}">{{ $websiteLang->where('lang_key','general_setting')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.comment.setting')?'active':'' }}" href="{{ route('admin.comment.setting') }}">{{ $websiteLang->where('lang_key','blog_comment')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.cookie.consent.setting')?'active':'' }}" href="{{ route('admin.cookie.consent.setting') }}">{{ $websiteLang->where('lang_key','cookie_consent_modal')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.payment-account.index')?'active':'' }}" href="{{ route('admin.payment-account.index') }}">{{ $websiteLang->where('lang_key','payment_account')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.captcha.setting')?'active':'' }}" href="{{ route('admin.captcha.setting') }}">{{ $websiteLang->where('lang_key','google_recaptcha')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.livechat.setting')?'active':'' }}" href="{{ route('admin.livechat.setting') }}">{{ $websiteLang->where('lang_key','live_chat')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.google.analytic.setting')?'active':'' }}" href="{{ route('admin.google.analytic.setting') }}">{{ $websiteLang->where('lang_key','google_analytic')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.paginator')?'active':'' }}" href="{{ route('admin.paginator') }}">{{ $websiteLang->where('lang_key','pagination')->first()->custom_text }}</a>


                        <a class="collapse-item {{ Route::is('admin.clear.database')?'active':'' }}" href="{{ route('admin.clear.database') }}">{{ $websiteLang->where('lang_key','clear_database')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.theme-color')?'active':'' }}" href="{{ route('admin.theme-color') }}">{{ $websiteLang->where('lang_key','theme_color')->first()->custom_text }}</a>



                        <a class="collapse-item {{ Route::is('admin.email.template') || Route::is('admin.email-edit')?'active':'' }}" href="{{ route('admin.email.template') }}">{{ $websiteLang->where('lang_key','email_template')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.email-configuration')?'active':'' }}" href="{{ route('admin.email-configuration') }}">{{ $websiteLang->where('lang_key','email_config')->first()->custom_text }}</a>



                        <a class="collapse-item {{ Route::is('admin.banner.image')?'active':'' }}" href="{{ route('admin.banner.image') }}">{{ $websiteLang->where('lang_key','banner_img')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.login.image')?'active':'' }}" href="{{ route('admin.login.image') }}">{{ $websiteLang->where('lang_key','login_img')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.profile.image')?'active':'' }}" href="{{ route('admin.profile.image') }}">{{ $websiteLang->where('lang_key','default_profile_img')->first()->custom_text }}</a>

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

            @php
                $admin=Auth::guard('admin')->user();
            @endphp
            @if ($admin->admin_type==1)
            <li class="nav-item {{ Route::is('admin.admin-list.*')?'active':'' }}">
                <a class="nav-link" href="{{ route('admin.admin-list.index') }}">
                    <i class="fas fa-user"></i>
                    <span>{{ $websiteLang->where('lang_key','admin')->first()->custom_text }}</span></a>
            </li>
            @endif

            <li class="nav-item {{ Route::is('admin.file-manager.*')?'active':'' }}">
                <a class="nav-link" href="{{ route('admin.file-manager.index') }}">
                    <i class="fas fa-fw fa-folder"></i>
                    <span>{{ $websiteLang->where('lang_key','file_manager')->first()->custom_text }}</span></a>
            </li>


            <li class="nav-item {{ Route::is('admin.staff') || Route::is('admin.create-staff') ?'active':'' }}">
                <a class="nav-link" href="{{ route('admin.staff') }}">
                    <i class="fas fa-user"></i>
                    <span>{{ $websiteLang->where('lang_key','manage_staff')->first()->custom_text }}</span></a>
            </li>


            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#blog-pages"
                    aria-expanded="true" aria-controls="blog-pages">
                    <i class="fas fa-th-large"></i>
                    <span>{{ $websiteLang->where('lang_key','blog')->first()->custom_text }}</span>
                </a>
                <div id="blog-pages" class="collapse {{ Route::is('admin.blog-comment') || Route::is('admin.blog-category.*') || Route::is('admin.blog.index') || Route::is('admin.blog.edit') || Route::is('admin.blog.create')  ? 'show': '' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">

                        <a class="collapse-item {{ Route::is('admin.blog-category.*')?'active':'' }}" href="{{ route('admin.blog-category.index') }}">{{ $websiteLang->where('lang_key','blog_cat')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.blog.index') || Route::is('admin.blog.create') || Route::is('admin.blog.edit') ? 'active':'' }}" href="{{ route('admin.blog.index') }}">{{ $websiteLang->where('lang_key','blog')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.blog-comment')?'active':'' }}" href="{{ route('admin.blog-comment') }}">{{ $websiteLang->where('lang_key','blog_comment')->first()->custom_text }}</a>
                    </div>
                </div>
            </li>

            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#contact-2-pages"
                    aria-expanded="true" aria-controls="contact-2-pages">
                    <i class="fas fa-fa fa-envelope"></i>
                    <span>{{ $websiteLang->where('lang_key','contact')->first()->custom_text }}</span>
                </a>
                <div id="contact-2-pages" class="collapse {{ Route::is('admin.contact.message') || Route::is('admin.contact-information.index') ? 'show': '' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.contact-information.index')?'active':'' }}" href="{{ route('admin.contact-information.index') }}">{{ $websiteLang->where('lang_key','contact_info')->first()->custom_text }}</a>
                        <a class="collapse-item {{ Route::is('admin.contact.message')?'active':'' }}" href="{{ route('admin.contact.message') }}">{{ $websiteLang->where('lang_key','contact_msg')->first()->custom_text }}</a>
                    </div>
                </div>
            </li>

            <!-- Nav Item - Pages Collapse Menu -->
            <li class="nav-item">
                <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#subscriber-2-pages"
                    aria-expanded="true" aria-controls="subscriber-2-pages">
                    <i class="fas fa-fire"></i>
                    <span>{{ $websiteLang->where('lang_key','subscriber')->first()->custom_text }}</span>
                </a>
                <div id="subscriber-2-pages" class="collapse {{ Route::is('admin.subscriber') || Route::is('admin.subscriber.email') ? 'show': '' }}" aria-labelledby="headingPages" data-parent="#accordionSidebar">
                    <div class="bg-white py-2 collapse-inner rounded">
                        <a class="collapse-item {{ Route::is('admin.subscriber')?'active':'' }}" href="{{ route('admin.subscriber') }}">{{ $websiteLang->where('lang_key','subscriber')->first()->custom_text }}</a>

                        <a class="collapse-item {{ Route::is('admin.subscriber.email')?'active':'' }}" href="{{ route('admin.subscriber.email') }}">{{ $websiteLang->where('lang_key','email_for_subscriber')->first()->custom_text }}</a>
                    </div>
                </div>
            </li>



















            <!-- Divider -->
            <hr class="sidebar-divider d-none d-md-block">

            <!-- Sidebar Toggler (Sidebar) -->
            <div class="text-center d-none d-md-inline">
                <button class="rounded-circle border-0" id="sidebarToggle"></button>
            </div>


        </ul>
        <!-- End of Sidebar -->

        <!-- Content Wrapper -->
        <div id="content-wrapper" class="d-flex flex-column">

            <!-- Main Content -->
            <div id="content">

                <!-- Topbar -->
                <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

                    <!-- Sidebar Toggle (Topbar) -->
                    <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
                        <i class="fas fa-bars"></i>
                    </button>
                    <!-- Topbar Navbar -->
                    <ul class="navbar-nav ml-auto">

                        <!-- Nav Item - Search Dropdown (Visible Only XS) -->
                        <li class="nav-item dropdown no-arrow d-sm-none">
                            <a class="nav-link dropdown-toggle" href="#" id="searchDropdown" role="button"
                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                <i class="fas fa-search fa-fw"></i>
                            </a>
                            <!-- Dropdown - Messages -->
                            <div class="dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in"
                                aria-labelledby="searchDropdown">
                                <form class="form-inline mr-auto w-100 navbar-search">
                                    <div class="input-group">
                                        <input type="text" class="form-control bg-light border-0 small"
                                            placeholder="Search for..." aria-label="Search"
                                            aria-describedby="basic-addon2">
                                        <div class="input-group-append">
                                            <button class="btn btn-primary" type="button">
                                                <i class="fas fa-search fa-sm"></i>
                                            </button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </li>

                        <!-- Nav Item - User Information -->
                        <li class="nav-item no-arrow mx-1 pt-4">

                        </li>

                        <div class="topbar-divider d-none d-sm-block"></div>

                        <li class="nav-item dropdown no-arrow">

                            <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                @php
                                    $adminInfo=Auth::guard('admin')->user();
                                    $default_profile=App\BannerImage::find(15);
                                @endphp
                                <span class="mr-2 d-none d-lg-inline text-gray-600 small">{{ ucfirst($adminInfo->name) }}</span>

                                <img class="img-profile rounded-circle"
                                    src="{{ $adminInfo->image ? asset($adminInfo->image) : asset($default_profile->image) }}">

                            </a>
                            <!-- Dropdown - User Information -->
                            <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
                                aria-labelledby="userDropdown">
                                <a class="dropdown-item" href="{{ route('admin.profile') }}">
                                    <i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
                                    {{ $websiteLang->where('lang_key','my_profile')->first()->custom_text }}
                                </a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="{{ route('admin.logout') }}">
                                    <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
                                    {{ $websiteLang->where('lang_key','logout')->first()->custom_text }}
                                </a>
                            </div>
                        </li>

                    </ul>

                </nav>
                <!-- End of Topbar -->

                <!-- Begin Page Content -->
                <div class="container-fluid">

                   @yield('admin-content')

                </div>
                <!-- /.container-fluid -->

            </div>
            <!-- End of Main Content -->



        </div>
        <!-- End of Content Wrapper -->

    </div>
    <!-- End of Page Wrapper -->

    <!-- Scroll to Top Button-->
    <a class="scroll-to-top rounded" href="#page-top">
        <i class="fas fa-angle-up"></i>
    </a>

@include('layouts.admin.footer')
