


@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/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/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()->isActiveShop())
                    <li class="sidenav-item @if(Request::is('user/shop', 'user/shop/*')) open @endif">
                        <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                            <i class="sidenav-icon ion ion-ios-basket"></i>
                            <div>{{ __('navigation.my_shop') }}</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item{{ Request::is('user/shop') ? ' active' : '' }}">
                                <a href="{{ route('user_shop') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cog"></i><div>{{ __('navigation.settings') }}</div></a>
                            </li>
                            <li class="sidenav-item{{ Request::is('user/shop/orders', 'user/shop/order/*') ? ' active' : '' }}">
                                <a href="{{ route('user_shop_orders') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-cart"></i><div>{{ __('navigation.orders') }}</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.my_team') }}</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.member') }}</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/*') ? ' 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() && Auth::user()->isSySAdmin())
                    <li class="sidenav-item @if(Request::is('user/orders', 'user/order/*')) open @endif">
                        <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                            <i class="sidenav-icon ion ion-ios-cart"></i>
                            <div>{{ __('navigation.my_orders') }}</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item{{ Request::is('user/orders', 'user/order/detail/*') ? ' active' : '' }}">
                                <a href="{{ route('user_orders') }}" class="sidenav-link"><i class="sidenav-icon ion ion ion-ios-list"></i><div>{{ __('navigation.overview') }}</div></a>
                            </li>
                            <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>
                        </ul>
                    </li>
                @endif
                @if(Auth::user()->isActiveAccount() && Auth::user()->isSySAdmin())
                    <li class="sidenav-item @if(Request::is('user/homepartys', 'user/homeparty/*')) open @endif">
                        <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                            <i class="sidenav-icon ion ion-ios-pizza"></i>
                            <div>{{ __('navigation.my_homeparty') }}</div>
                        </a>
                        <ul class="sidenav-menu">
                            <li class="sidenav-item{{ Request::is('user/homepartys', 'user/homeparty/*') ? ' active' : '' }}">
                                <a href="{{ route('user_homepartys') }}" class="sidenav-link"><i class="sidenav-icon ion ion ion-ios-list"></i><div>{{ __('navigation.overview') }}</div></a>
                            <li>
                        </ul>
                    </li>
                @endif
            @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 @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>{{ __('navigation.orders') }}</div>
                    </a>
                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/sales/users', 'admin/sales/users/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_sales_users') }}" 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/sales/customers', 'admin/sales/customers/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_sales_customers') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-contacts"></i><div>{{ __('navigation.clients') }}</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>{{ __('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>

                <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.career_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>{{ __('navigation.countries') }}</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/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
