


@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>{{__('navigation.home')}}</div></a>
            </li>

            @if(Auth::user()->showSideNav())
                <li class="sidenav-item @if(Request::is('user/edit', 'user/membership')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-contact"></i>
                        <div>{{ __('navigation.my_account') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item Request::is('user/payment/paycredit') ? ' active' : ''  }} {{ Request::is('user/payment/paycredit') ? ' active' : '' }}">
                            <a href="{{ route('user_payment_paycredit') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cash"></i><div>{{ __('navigation.paycredit') }}</div></a>
                        </li>
                        <li class="sidenav-item Request::is('user/payment/credit') ? ' active' : ''  }} {{ Request::is('user/payment/credit') ? ' active' : '' }}">
                            <a href="{{ route('user_payment_credit') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-cash"></i><div>{{ __('navigation.credit') }}</div></a>
                        </li>

                        <li class="sidenav-item Request::is('user/payment/revenue') ? ' active' : ''  }} {{ Request::is('user/payment/revenue') ? ' active' : '' }}">
                            <a href="{{ route('user_payment_revenue') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-trending-up"></i><div>{{ __('navigation.revenue') }}</div></a>
                        </li>
                        <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>{{ __('navigation.my_data') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('user/profile') ? ' active' : '' }}">
                            <a href="{{ route('user_profile') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-contact"></i><div>{{ __('navigation.my_profile') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('user/membership') ? ' active' : '' }}">
                            <a href="{{ route('user_membership') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-people"></i><div>{{ __('navigation.membership') }}</div></a>
                        </li>
                    </ul>
                </li>
              
                @if(Auth::user()->isActiveAccount())
                <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>{{ __('navigation.my_shop') }}</div>
                        <div class="pl-1 ml-auto">
                        </div>
                    </a>
                </li>
                @endif

                @if(Auth::user()->isActiveAccount())
                <li class="sidenav-item @if(Request::is('user/promotion', '/user/promotion/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-md-rocket"></i>
                        <div>{{ __('navigation.my_promotions') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('user/promotion') ? ' active' : '' }}">
                            <a href="{{ route('user_promotion') }}" class="sidenav-link"><i class="sidenav-icon ion-md-rocket"></i><div>{{ __('navigation.overview') }}</div></a>
                        </li>
                        <li class="sidenav-item">
                            <a href="{{ route('user_order_my_delivery', ['cr']) }}" class="sidenav-link"><i class="sidenav-icon ion-md-cash"></i><div>{{ __('navigation.recharge_credit') }}</div></a>
                        </li>
                    </ul>
                </li>
                @endif

                @if(Auth::user()->isActiveAccount())
                    <li class="sidenav-item @if(Request::is('user/team/*')) open @endif">
                        <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                            <i class="sidenav-icon ion ion-ios-people"></i>
                            <div>{{ __('navigation.member') }}</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item{{ Request::is('user/team/members') ? ' active' : '' }}">
                                <a href="{{ route('user_team_members') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-person-add"></i><div>{{ __('navigation.new_register') }}</div></a>
                            </li>
                        </ul>
                    </li>
                @endif

                @if(Auth::user()->isActiveAccount())
                    <li class="sidenav-item @if(Request::is('user/customers', 'user/customer/*')) open @endif">
                        <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                            <i class="sidenav-icon ion ion-md-contacts"></i>
                            <div>{{ __('navigation.my_clients') }}</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item{{ Request::is('user/customers', 'user/customer/detail/*', 'user/sales/orders') ? ' active' : '' }}">
                                <a href="{{ route('user_customers') }}" class="sidenav-link"><i class="sidenav-icon ion ion ion-md-contacts"></i><div>{{ __('navigation.overview') }}</div></a>
                            </li>
                            <li class="sidenav-item{{ Request::is('user/customer/add/*') ? ' active' : '' }}">
                                <a href="{{ route('user_customer_add', ['new']) }}" class="sidenav-link"><i class="sidenav-icon ion ion ion-md-person-add"></i><div>{{ __('navigation.add') }}</div></a>
                            </li>
                         
                        </ul>
                    </li>
                @endif
           
                @if(Auth::user()->isActiveAccount())
                <li class="sidenav-item{{ Request::is('user/order/my/*') ? ' active' : '' }}">
                    <a href="{{ route('user_order_my_delivery', ['me']) }}" class="sidenav-link"><i class="sidenav-icon ion ion ion-md-basket"></i><div>{{ __('navigation.do_order') }}</div></a>
                </li>
                @endif

                @if(Auth::user()->isActiveAccount())
                <li class="sidenav-item @if(Request::is('user/myorders', 'user/myorder/*', 'user/sales', 'user/sales/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-cart"></i>
                        <div>{{ __('navigation.orders') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('user/myorders', 'user/myorder/detail/*') ? ' active' : '' }}">
                            <a href="{{ route('user_myorders') }}" class="sidenav-link"><i class="sidenav-icon ion ion ion-ios-contact"></i><div>{{ __('navigation.my') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('user/sales', 'user/sales/*') ? ' active' : '' }}">
                            <a href="{{ route('user_sales') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-contacts"></i><div>{{ __('navigation.clients') }}</div></a>
                        </li>
                        
                    </ul>
                </li>
                @endif
            @endif
            @if(Auth::user()->isCopyReader())

                <li class="sidenav-divider mb-1"></li>
                <li class="sidenav-header small font-weight-semibold">REDAKTEUR</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>{{ __('navigation.products') }}</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>{{ __('navigation.overview') }}</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>{{ __('navigation.categories') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/product/ingredients') ? ' active' : '' }}">
                            <a href="{{ route('admin_product_ingredients') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-ice-cream"></i><div>{{ __('navigation.ingredients') }}</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>{{ __('navigation.attribute') }}</div></a>
                        </li>
                        
                    </ul>
                </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>{{ __('navigation.member') }}</div></a>
                </li>

                <li class="sidenav-item{{ Request::is('admin/customers') ? ' active' : '' }} {{ Request::is('admin/customer/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_customers') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-contacts"></i><div>{{ __('navigation.clients') }}</div></a>
                </li>

                <li class="sidenav-item{{ Request::is('admin/sales') ? ' active' : '' }} {{ Request::is('admin/sales/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_sales') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cart"></i><div>{{ __('navigation.orders') }}</div></a>
                </li>

                <li class="sidenav-item @if(Request::is('admin/payments/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-md-cash"></i>
                        <div>{{ __('navigation.payments') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/payments/credit') ? ' active' : '' }}">
                            <a href="{{ route('admin_payments_credit') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-arrow-dropright-circle"></i><div>{{ __('navigation.credit') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/payments/paycredit') ? ' active' : '' }}">
                            <a href="{{ route('admin_payments_paycredit') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-arrow-dropup-circle"></i><div>{{ __('navigation.paycredit') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/payments/invoice') ? ' active' : '' }}">
                            <a href="{{ route('admin_payments_invoice') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-arrow-dropleft-circle"></i><div>{{ __('navigation.invoice') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/payments/reminder') ? ' active' : '' }} {{ Request::is('admin/payments/reminder/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_payments_reminder') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-alarm"></i><div>{{ __('navigation.reminder') }}</div></a>
                        </li>
                    </ul>
                </li>
                <li class="sidenav-item @if(Request::is('admin/promotions', '/admin/promotion/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-rocket"></i>
                        <div>{{ __('navigation.promotion') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/promotions') ? ' active' : '' }}">
                            <a href="{{ route('admin_promotions') }}" class="sidenav-link"><i class="sidenav-icon ion-ios-rocket"></i><div>{{ __('navigation.overview') }}</div></a>
                        </li>
                    </ul>
                </li>
                <li class="sidenav-item @if(Request::is('admin/stats/*')) open @endif">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-md-analytics"></i>
                        <div>{{ __('navigation.evaluation') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/stats/sales/volumes') ? ' active' : '' }}">
                            <a href="{{ route('admin_stats_sales_volumes') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cart"></i><div>{{ __('navigation.sales_volumes') }}</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>{{ __('navigation.contents') }}</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>{{ __('navigation.start_site') }}</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>{{ __('navigation.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>{{ __('navigation.general') }}</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>{{ __('navigation.modules') }}</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', 'admin/user/edit/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_users') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-ribbon"></i><div>{{ __('navigation.user_roles') }}</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('admin/shippings', 'admin/shipping/edit/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_shippings') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-gift"></i><div>{{ __('navigation.shipping_costs') }}</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('admin/payment_methods') ? ' active' : '' }}">
                    <a href="{{ route('admin_payment_methods') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cash"></i><div>{{ __('navigation.payment_methods') }}</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>{{ __('navigation.user_level') }}</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('admin/lead_types') ? ' active' : '' }}">
                    <a href="{{ route('admin_lead_types') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-contacts"></i><div>Arten {{ __('navigation.member') }}</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>{{ __('navigation.countries') }}</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('admin/settings') ? ' active' : '' }} {{ Request::is('admin/setting/*') ? ' active' : '' }}">
                    <a href="{{ route('admin_settings') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-cog"></i><div>{{ __('navigation.settings') }}</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/pay_credits') ? ' active' : '' }}">
                            <a href="{{ route('sysadmin_tools', ['export_vp']) }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-download"></i><div>Export VP</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('sysadmin/tools/dbaction') ? ' active' : '' }}">
                            <a href="{{ route('sysadmin_tools', ['dbaction']) }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-warning"></i><div>DB Action</div></a>
                        </li>
                    </ul>
                    {{--  <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('sysadmin/tools/customers') ? ' active' : '' }}">
                            <a href="{{ route('sysadmin_tools_customers') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-contact"></i><div>Kunden</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('sysadmin/tools/cronjobs') ? ' active' : '' }}">
                            <a href="{{ route('sysadmin_tools_cronjobs') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-settings"></i><div>Cron Jobs</div></a>
                        </li>
                        <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>
                        <li class="sidenav-item{{ Request::is('sysadmin/import') ? ' active' : '' }}">
                            <a href="{{ route('sysadmin_import') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cloud-upload"></i><div>Import</div></a>
                        </li>
                    </ul>
                    --}}
                </li>
                {{--<li class="sidenav-item{{ Request::is('sysadmin/settings') ? ' active' : '' }}">
                    <a href="{{ route('sysadmin_settings') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cog"></i><div>{{ __('navigation.system_settings') }}</div></a>
                </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>{{ __('navigation.logout') }}</div></a>
            </li>
        </ul>
    </div>

@endif
