


@if(Auth::check())

    <div id="layout-sidenav" class="{{ isset($layout_sidenav_horizontal) ? 'layout-sidenav-horizontal sidenav-horizontal container-p-x flex-grow-0' : 'layout-sidenav sidenav-vertical' }} sidenav bg-sidenav-theme">

        <!-- Inner -->
        <ul class="sidenav-inner{{ empty($layout_sidenav_horizontal) ? ' py-1' : '' }}">

            <li class="sidenav-item{{ Request::is('home') ? ' active' : '' }}">
                <a href="{{ route('home') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-home"></i><div>{{__('Home')}}</div></a>
            </li>

            @if(Auth::user()->showSideNav())
                <li class="sidenav-item{{ Request::is('user/edit') ? ' active' : '' }}">
                    <a href="{{ route('user_edit') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-create"></i><div>{{ __('Your Data') }}</div></a>
                </li>

                <li class="sidenav-item{{ Request::is('user/shop') ? ' active' : '' }}">
                    <a href="{{ route('user_shop') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-basket"></i><div>{{ __('Your Shop') }}</div></a>
                </li>
            @endif

             @if(Auth::user()->isAdmin())
                <li class="sidenav-divider mb-1"></li>
                <li class="sidenav-header small font-weight-semibold">ADMIN</li>



                <li class="sidenav-item{{ Request::is('admin/leads') ? ' active' : '' }} {{ Request::is('admin/lead/edit/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_leads') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-contacts"></i><div>{{ __('Berater') }}</div></a>
                </li>

                <li class="sidenav-item @if(Request::is('admin/sales/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-cart"></i>
                        <div>{{ __('Bestellungen') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/sales/users') ? ' active' : '' }}">
                            <a href="{{ route('admin_sales_users') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-contacts"></i><div>{{ __('Berater') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/sales/customers') ? ' active' : '' }}">
                            <a href="{{ route('admin_sales_customers') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-contacts"></i><div>{{ __('Kunden') }}</div></a>
                        </li>
                    </ul>
                </li>



                <li class="sidenav-item @if(Request::is('admin/product/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-md-cube"></i>
                        <div>{{ __('Produkte') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/product/show') ? ' active' : '' }}">
                            <a href="{{ route('admin_product_show') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cube"></i><div>{{ __('Übersicht') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/product/categories') ? ' active' : '' }}">
                            <a href="{{ route('admin_product_categories') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-list"></i><div>{{ __('Kategorien') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/product/attributes') ? ' active' : '' }}">
                            <a href="{{ route('admin_product_attributes') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-apps"></i><div>{{ __('Attribute') }}</div></a>
                        </li>
                    </ul>
                </li>

                <li class="sidenav-item @if(Request::is('admin/sites/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-md-albums"></i>
                        <div>{{ __('Inhalte') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/sites/start') ? ' active' : '' }}">
                            <a href="{{route('admin_sites', ['start'])}}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-document"></i><div>{{ __('Startseite') }}</div></a>
                        </li>
                    </ul>
                </li>

                <li class="sidenav-item{{ Request::is('admin/translate/*') ? ' open' : '' }}">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-browsers"></i>
                        <div>{{ __('Translate') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/translate/all/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_translate_all') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-browsers"></i><div>{{ __('Allgemein') }}</div></a>

                        </li>
                        <li class="sidenav-item{{ Request::is('admin/translate/file/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_translate_file') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-browsers"></i><div>{{ __('Module') }}</div></a>

                        </li>
                    </ul>
                </li>
             @endif

             @if(Auth::user()->isSuperAdmin())
                <li class="sidenav-divider mb-1"></li>
                <li class="sidenav-header small font-weight-semibold">SUPERADMIN</li>

                <li class="sidenav-item{{ Request::is('admin/users') ? ' active' : '' }} {{ Request::is('admin/user/edit/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_users') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-ribbon"></i><div>{{ __('User Rechte') }}</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('admin/shippings') ? ' active' : '' }} {{ Request::is('admin/shipping/edit/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_shippings') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-gift"></i><div>{{ __('Versandkosten') }}</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('admin/levels') ? ' active' : '' }} {{ Request::is('admin/level/edit/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_levels') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-trending-up"></i><div>{{ __(' Karriere-Level') }}</div></a>
                </li>

                <li class="sidenav-item{{ Request::is('admin/countries') ? ' active' : '' }} {{ Request::is('admin/country/edit/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_countries') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-globe"></i><div>{{ __('Länder') }}</div></a>
                </li>
             @endif
                @if(Auth::user()->isSySAdmin())
                    <li class="sidenav-divider mb-1"></li>
                    <li class="sidenav-header small font-weight-semibold">SYSADMIN</li>

                    <li class="sidenav-item{{ Request::is('sysadmin/tools/*') ? ' open' : '' }}">
                        <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                            <i class="sidenav-icon ion ion-ios-settings"></i>
                            <div>{{ __('Tools') }}</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item{{ Request::is('sysadmin/tools/domainssl') ? ' active' : '' }}">
                                <a href="{{ route('sysadmin_tools_domainssl') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-lock"></i><div>{{ __('Domain SSL') }}</div></a>
                            </li>
                            <li class="sidenav-item{{ Request::is('sysadmin/tools/shopping_orders') ? ' active' : '' }}">
                                <a href="{{ route('sysadmin_tools_shopping_orders') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-analytics"></i><div>{{ __('Shopping Orders') }}</div></a>

                            </li>
                        </ul>
                    </li>
                @endif
                <li class="sidenav-divider mb-1"></li>

                <li class="sidenav-item">
                    <a href="{{ route('logout') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-power"></i><div>{{ __('Logout') }}</div></a>
                </li>
        </ul>
    </div>

@endif
