@php $route = Route::currentRouteName();   @endphp
<ul class="navbar-nav sidebar sidebar-light accordion" id="accordionSidebar">
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="#">
        <div class="sidebar-brand-icon">
            <img width="100%" src="{{ asset('settings/' . (setting('logo') ?: 'hoteliersbd-logo.jpeg')) }}">
        </div>
    </a>
    <hr class="sidebar-divider my-0">
    <li class="nav-item active">
        <a class="nav-link" href="{{ route('dashboard')}}">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#6e707e" fill="none" stroke-linecap="round" stroke-linejoin="round">
                <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                <path d="M5 12l-2 0l9 -9l9 9l-2 0"></path>
                <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"></path>
                <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"></path>
            </svg>
            <span>Dashboard</span></a>
    </li>
    <hr class="sidebar-divider">
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseSettings"
           aria-expanded="true" aria-controls="collapseSettings">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                                <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
                                <path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" />
                            </svg>
            <span>Settings</span>
        </a>
        <div id="collapseSettings" class="collapse {{  $route=='banner.create'||$route=='banner.edit'|| $route=='message.index'||$route=='message.view'||$route=='popup.index'||$route=='popup.edit'||$route=='general_setting.index' || $route=='system_setting.index' || $route=='ad.index' || $route=='ad.edit' || $route=='slider.create' || $route=='slider.edit' || $route=='slider.index' ?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ route('general_setting.index') }}">General Setting</a>
                <a class="collapse-item" href="{{ route('ad.index') }}">Advertise</a>
                <a class="collapse-item" href="{{ route('slider.index') }}">Slider</a>
                <a class="collapse-item" href="{{ route('popup.index') }}">Popup Ads</a>
                <a class="collapse-item" href="{{ route('message.index') }}">Visitors Inquiry</a>
            </div>
        </div>
    </li>
    @endif
    
    
    

    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePayment"
           aria-expanded="true" aria-controls="collapsePayment">
            <!--<i class="fas fa-trophy"></i>-->
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#9b82ffd9" stroke-linecap="round" stroke-linejoin="round" width="20" height="20" stroke-width="1.5">
                <path d="M3 5m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"></path>
                <path d="M3 10l18 0"></path>
                <path d="M7 15l.01 0"></path>
                <path d="M11 15l2 0"></path>
            </svg>
            <span>Payment</span>
        </a>
        <div id="collapsePayment" class="collapse {{ $route=='payment.index' || $route=='payment.filter' ? 'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ route('payment.index') }}">Payment List</a>
            </div>
        </div>
    </li>
    @endif
    
    
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin')
    <li class="nav-item">
        <a class="nav-link" href="{{ route('donation.index') }}" >
            <!--<i class="fas fa-donate"></i>-->
            
            <svg width="20" height="20" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#9b82ffd9" stroke-width="2.6879999999999997"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><circle cx="32" cy="28" r="20"></circle><polyline points="8 48 8 56 56 56 56 48"></polyline><path d="M30 28a4 4 0 0 1 0-8"></path><path d="M34 28a4 4 0 0 1 0 8"></path><line x1="32" y1="16" x2="32" y2="20"></line><line x1="32" y1="36" x2="32" y2="40"></line><line x1="30" y1="28" x2="34" y2="28"></line><path d="M38 22s-2-2-4-2h-4"></path><path d="M26 34s2 2 4 2h4"></path></g></svg>
            
            <span>{{ __('Fund Raise') }}</span>
        </a>
    </li>
    @endif
    
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseEvent" aria-expanded="true" aria-controls="collapseEvent">
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-affiliate" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                    <path d="M5.931 6.936l1.275 4.249m5.607 5.609l4.251 1.275" />
                    <path d="M11.683 12.317l5.759 -5.759" />
                    <path d="M5.5 5.5m-1.5 0a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0" />
                    <path d="M18.5 5.5m-1.5 0a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0" />
                    <path d="M18.5 18.5m-1.5 0a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0" />
                    <path d="M8.5 15.5m-4.5 0a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0 -9 0" />
                </svg>
                <span>Event Manage</span>
            </a>
            <div id="collapseEvent" class="collapse {{$route=='event.index' || $route=='event.create' || $route=='event.edit'?'show':''}}" aria-labelledby="headingBootstrap"
                 data-parent="#accordionSidebar">
                <div class="bg-white py-2 collapse-inner rounded">
                    <a class="collapse-item" href="{{ route('event.create') }}">Create</a>
                    <a class="collapse-item" href="{{ route('event.index') }}">Manage</a>
                </div>
            </div>
        </li>
    @endif

    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseCategory"
           aria-expanded="true" aria-controls="collapseCategory">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-apps" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                    <path d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
                    <path d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
                    <path d="M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
                    <path d="M14 7l6 0" />
                    <path d="M17 4l0 6" />
                </svg>
            
            <span>Category</span>
        </a>
        <div id="collapseCategory" class="collapse {{$route=='Pcategory.create'|| $route=='Pcategory.edit'|| $route=='category.create'||$route=='category.edit' ||$route=='sub_category.create'||$route=='sub_category.edit'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                {{--<a class="collapse-item" href="{{ route('Pcategory.create') }}">Parent Category</a>--}}
                <a class="collapse-item" href="{{ route('category.create') }}">Category</a>
                <a class="collapse-item" href="{{ route('sub_category.create') }}">Sub Category</a>
            </div>
        </div>
    </li>
    @endif
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
    <li class="nav-item d-none">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseProduct"
           aria-expanded="true" aria-controls="collapseProduct">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-database-plus" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                <path d="M4 6c0 1.657 3.582 3 8 3s8 -1.343 8 -3s-3.582 -3 -8 -3s-8 1.343 -8 3" />
                <path d="M4 6v6c0 1.657 3.582 3 8 3c1.075 0 2.1 -.08 3.037 -.224" />
                <path d="M20 12v-6" />
                <path d="M4 12v6c0 1.657 3.582 3 8 3c.166 0 .331 -.002 .495 -.006" />
                <path d="M16 19h6" />
                <path d="M19 16v6" />
            </svg>
            <span>Product</span>
        </a>
        <div id="collapseProduct" class="collapse {{$route=='product.create'||$route=='product.edit'||$route=='product.index'||$route=='product.search'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ route('product.create') }}">Product Create</a>
                <a class="collapse-item" href="{{ route('product.index') }}">Product Manage</a>
            </div>
        </div>
    </li>
    @endif
    
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseMenu"
           aria-expanded="true" aria-controls="collapseMenu">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-adjustments" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                <path d="M4 10a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
                <path d="M6 4v4" />
                <path d="M6 12v8" />
                <path d="M10 16a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
                <path d="M12 4v10" />
                <path d="M12 18v2" />
                <path d="M16 7a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
                <path d="M18 4v1" />
                <path d="M18 9v11" />
            </svg>
            <span>Menu Setup</span>
        </a>
        <div id="collapseMenu" class="collapse {{$route=='menu.index'||$route=='menu.edit'||$route=='submenu.index'||$route=='submenu.edit'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ route('menu.index') }}">Menu</a>
                <a class="collapse-item" href="{{ route('submenu.index') }}">Sub Menu</a>
            </div>
        </div>
    </li>
    @endif
{{--    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin')--}}
{{--        <li class="nav-item">--}}
{{--            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseService" aria-expanded="true" aria-controls="collapseService">--}}
{{--                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-apps" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">--}}
{{--                    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>--}}
{{--                    <path d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />--}}
{{--                    <path d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />--}}
{{--                    <path d="M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />--}}
{{--                    <path d="M14 7l6 0" />--}}
{{--                    <path d="M17 4l0 6" />--}}
{{--                </svg>--}}
{{--                <span>Project</span>--}}
{{--            </a>--}}
{{--            <div id="collapseService" class="collapse {{$route=='service.index' || $route=='service.create' || $route=='service.edit'?'show':''}}" aria-labelledby="headingBootstrap"--}}
{{--                 data-parent="#accordionSidebar">--}}
{{--                <div class="bg-white py-2 collapse-inner rounded">--}}
{{--                    <a class="collapse-item" href="{{ route('service.create') }}">Create</a>--}}
{{--                    <a class="collapse-item" href="{{ route('service.index') }}">Manage</a>--}}
{{--                </div>--}}
{{--            </div>--}}
{{--        </li>--}}
{{--    @endif--}}
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseMember"
           aria-expanded="true" aria-controls="collapseMember">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-users" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                            <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                            <circle cx="9" cy="7" r="4" />
                            <path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
                            <path d="M16 3.13a4 4 0 0 1 0 7.75" />
                            <path d="M21 21v-2a4 4 0 0 0 -3 -3.85" />
                        </svg>
            <span>Member</span>
        </a>
        <div id="collapseMember" class="collapse {{$route=='member.index'||$route=='member.create'||$route=='member.edit'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ route('member.create') }}">Create</a>
                <a class="collapse-item" href="{{ route('member.index') }}">Manage</a>
            </div>
        </div>
    </li>
    @endif
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePage"
           aria-expanded="true" aria-controls="collapseBootstrap">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-sitemap" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                <path d="M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" />
                <path d="M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" />
                <path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" />
                <path d="M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1" />
                <path d="M12 9l0 3" />
            </svg>
            <span>Page Setup</span>
        </a>
        <div id="collapsePage" class="collapse {{  $route=='pagecategory.index' ||  $route=='pagecategory.create' ||  $route=='pagecategory.edit' || $route=='page.index' || $route=='page.create' || $route=='page.edit' ?'show':''}}" aria-labelledby="headingBootstrap" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item {{activeMenu('page.create')}}" href="{{ route('page.create') }}">Create</a>
                <a class="collapse-item {{activeMenu('page.index')}}" href="{{ route('page.index') }}">Manage</a>
                <a class="collapse-item {{activeMenu('pagecategory.index')}}" href="{{ route('pagecategory.index') }}">Page Category</a>
            </div>
        </div>
    </li>
    @endif
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin')
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseClient" aria-expanded="true" aria-controls="collapseClient">
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mood-happy" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                    <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" />
                    <path d="M9 9l.01 0" />
                    <path d="M15 9l.01 0" />
                    <path d="M8 13a4 4 0 1 0 8 0h-8" />
                </svg>
                <span>Client Manage</span>
            </a>
            <div id="collapseClient" class="collapse {{$route=='client.index' || $route=='client.create' || $route=='client.edit'?'show':''}}" aria-labelledby="headingBootstrap"
                 data-parent="#accordionSidebar">
                <div class="bg-white py-2 collapse-inner rounded">
                    <a class="collapse-item" href="{{ route('client.create') }}">Create</a>
                    <a class="collapse-item" href="{{ route('client.index') }}">Manage</a>
                </div>
            </div>
        </li>
    @endif
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin'|| Auth::user()->role == 'user')
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePartner" aria-expanded="true" aria-controls="collapsePartner">
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart-handshake" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                    <path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" />
                    <path d="M12 6l-3.293 3.293a1 1 0 0 0 0 1.414l.543 .543c.69 .69 1.81 .69 2.5 0l1 -1a3.182 3.182 0 0 1 4.5 0l2.25 2.25" />
                    <path d="M12.5 15.5l2 2" />
                    <path d="M15 13l2 2" />
                </svg>
                <span>Partner</span>
            </a>
            <div id="collapsePartner" class="collapse {{$route=='partner.index' || $route=='partner.create' || $route=='partner.edit'?'show':''}}" aria-labelledby="headingBootstrap"
                 data-parent="#accordionSidebar">
                <div class="bg-white py-2 collapse-inner rounded">
                    <a class="collapse-item" href="{{ route('partner.create') }}">Create</a>
                    <a class="collapse-item" href="{{ route('partner.index') }}">Manage</a>
                </div>
            </div>
        </li>
    @endif
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
        <li class="nav-item">
            <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTestimonial" aria-expanded="true" aria-controls="collapseTestimonial">
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-stars" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                    <path d="M17.8 19.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z" />
                    <path d="M6.2 19.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z" />
                    <path d="M12 9.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z" />
                </svg>
                <span>Contact Review</span>
            </a>
            <div id="collapseTestimonial" class="collapse {{$route=='testimonial.index' || $route=='testimonial.create' || $route=='testimonial.edit'?'show':''}}" aria-labelledby="headingBootstrap"
                 data-parent="#accordionSidebar">
                <div class="bg-white py-2 collapse-inner rounded">
                    <a class="collapse-item" href="{{ route('testimonial.create') }}">Create</a>
                    <a class="collapse-item" href="{{ route('testimonial.index') }}">Manage</a>
                </div>
            </div>
        </li>
    @endif
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseBlog"
           aria-expanded="true" aria-controls="collapseBlog">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-blogger" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                                <path d="M8 21h8a5 5 0 0 0 5 -5v-3a3 3 0 0 0 -3 -3h-1v-2a5 5 0 0 0 -5 -5h-4a5 5 0 0 0 -5 5v8a5 5 0 0 0 5 5z" />
                                <path d="M7 7m0 1.5a1.5 1.5 0 0 1 1.5 -1.5h3a1.5 1.5 0 0 1 1.5 1.5v0a1.5 1.5 0 0 1 -1.5 1.5h-3a1.5 1.5 0 0 1 -1.5 -1.5z" />
                                <path d="M7 14m0 1.5a1.5 1.5 0 0 1 1.5 -1.5h7a1.5 1.5 0 0 1 1.5 1.5v0a1.5 1.5 0 0 1 -1.5 1.5h-7a1.5 1.5 0 0 1 -1.5 -1.5z" />
                            </svg>
            <span>News Manage</span>
        </a>
        <div id="collapseBlog" class="collapse {{$route=='post.create'||$route=='post.edit'||$route=='post.index'||$route=='post.search'|| $route=='trashpost.index'|| $route=='trashpost.view'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ route('post.create') }}">Post Create</a>
                <a class="collapse-item" href="{{ route('post.index') }}">Post Manage</a>
                <a class="collapse-item" href="{{ route('trashpost.index') }}">Trash Posts</a>
            </div>
        </div>
    </li>
    @endif
    
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseDesign" aria-expanded="true" aria-controls="collapseDesign">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo-up" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                <path d="M15 8h.01" />
                <path d="M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5" />
                <path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5" />
                <path d="M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526" />
                <path d="M19 22v-6" />
                <path d="M22 19l-3 -3l-3 3" />
            </svg>
            <span>Design</span>
        </a>
        <div id="collapseDesign" class="collapse {{$route=='design.index' || $route=='design.create' || $route=='design.edit'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                 <a class="collapse-item" href="{{ route('design.create') }}">Create</a>
                        <a class="collapse-item" href="{{ route('design.index') }}">Manage</a>
            </div>
        </div>
    </li>
    @endif
    
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePhoto" aria-expanded="true" aria-controls="collapsePhoto">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo-up" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                <path d="M15 8h.01" />
                <path d="M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5" />
                <path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5" />
                <path d="M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526" />
                <path d="M19 22v-6" />
                <path d="M22 19l-3 -3l-3 3" />
            </svg>
            <span>Photo Gallery</span>
        </a>
        <div id="collapsePhoto" class="collapse {{$route=='photo.index' || $route=='photo.create' || $route=='photo.edit'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                 <a class="collapse-item" href="{{ route('photo.create') }}">Create</a>
                        <a class="collapse-item" href="{{ route('photo.index') }}">Manage</a>
            </div>
        </div>
    </li>
    @endif
    
    @if(Auth::user()->role == 'superadmin' || Auth::user()->role == 'admin' || Auth::user()->role == 'user')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseVideo" aria-expanded="true" aria-controls="collapseVideo">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                <path d="M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z" />
                <path d="M10 9l5 3l-5 3z" />
            </svg>
            <span>Video Gallery</span>
        </a>
        <div id="collapseVideo" class="collapse {{$route=='video.index' || $route=='video.create' || $route=='video.edit'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                 <a class="collapse-item" href="{{ route('video.create') }}">Create</a>
                        <a class="collapse-item" href="{{ route('video.index') }}">Manage</a>
            </div>
        </div>
    </li>
    @endif
    
    @if(Auth::user()->role == 'superadmin')
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseAccount"
           aria-expanded="true" aria-controls="collapseAccount">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-users" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                            <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                            <circle cx="9" cy="7" r="4" />
                            <path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
                            <path d="M16 3.13a4 4 0 0 1 0 7.75" />
                            <path d="M21 21v-2a4 4 0 0 0 -3 -3.85" />
                        </svg>
            <span>Account</span>
        </a>
        <div id="collapseAccount" class="collapse {{$route=='admin.index'||$route=='admin.create'||$route=='admin.edit'||$route=='staff.index'||$route=='staff.create'|| $route=='staff.edit'||$route=='role.index'||$route=='role.create' ||$route=='role.edit'?'show':''}}" aria-labelledby="headingBootstrap"
             data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ route('admin.index') }}">Account</a>
            </div>
        </div>
    </li>
    @endif
    
    <li class="nav-item">
        <a class="nav-link" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-logout" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#9b82ffd9" fill="none" stroke-linecap="round" stroke-linejoin="round">
                                <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
                                <path d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2" />
                                <path d="M7 12h14l-3 -3m0 6l3 -3" />
                            </svg>
            <span>{{ __('Logout') }}</span>
        </a>
        <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none"> @csrf </form>
    </li>
    </ul>