


@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>


            <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>

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


                <li class="sidenav-item{{ Request::is('travel_programs') ? ' active' : '' }}">
                    <a href="{{ route('travel_programs') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-airplane"></i><div>Programme</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('drafts') ? ' active' : '' }}">
                    <a href="{{ route('drafts') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-paper"></i><div>Vorlagen</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('requests') ? ' active' : '' }}">
                    <a href="{{ route('requests') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-search"></i><div>Anfragen</div></a>
                </li>
                <li class="sidenav-item{{ Request::is('bookings') ? ' active' : '' }}">
                    <a href="{{ route('bookings') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-bed"></i><div>Buchungen</div></a>
                </li>


                <li class="sidenav-divider mb-1"></li>
                <li class="sidenav-header small font-weight-semibold">ADMIN CRM altes System</li>

                <li class="sidenav-item">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-people"></i>
                        <div>Kundenverwaltung</div>
                    </a>

                    <ul class="sidenav-menu">
                        <li class="sidenav-item">
                            <a href="{{ make_old_url('/index.php/customers') }}" class="sidenav-link">
                                <div>Kunden</div>
                            </a>
                        </li>
                        <li class="sidenav-item">
                            <a href="{{ make_old_url('/index.php/leads') }}" class="sidenav-link">
                                <div>Anfragen</div>
                            </a>
                        </li>
                        <li class="sidenav-item">
                            <a href="{{ make_old_url('/index.php/bookings') }}" class="sidenav-link">
                                <div>Buchungen</div>
                            </a>
                        </li>
                        <li class="sidenav-item">
                            <a href="{{ make_old_url('/index.php/payments') }}" class="sidenav-link">
                                <div>Zahlungen</div>
                            </a>
                        </li>
                    </ul>
                </li>

                <li class="sidenav-divider mb-1"></li>
                <li class="sidenav-header small font-weight-semibold">ADMIN CMS</li>

                <li class="sidenav-item{{ Request::is('cms/content/*') ? ' active' : '' }}">
                    <a href="{{ route('cms_content') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-paper"></i><div>Inhalte</div></a>
                </li>

                <li class="sidenav-item{{ Request::is('cms/travel_magazine/*') ? ' active' : '' }}">
                    <a href="{{ route('cms_travel_magazine') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-map"></i><div>Reiseführer</div></a>
                </li>


                <li class="sidenav-item{{ Request::is('cms/feedback/*') ? ' active' : '' }}">
                    <a href="{{ route('cms_feedback') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-chatboxes"></i><div>Feedback</div></a>
                </li>

                <li class="sidenav-item{{ Request::is('cms/sidebar/*') ? ' active' : '' }}">
                    <a href="{{ route('cms_sidebar') }}" class="sidenav-link"><i class="sidenav-icon ion ion-md-list"></i><div>Sidebar</div></a>
                </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/settings/*') ? ' open' : '' }}">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-settings"></i>
                        <div>Einstellungen</div>
                    </a>

                    <ul class="sidenav-menu">
                        <li class="sidenav-item{{ Request::is('admin/settings/travel/program/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_settings_travel_program') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-airplane"></i><div>{{ __('Reiseprogramme') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/settings/travel/country/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_settings_travel_country') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-globe"></i><div>{{ __('Reiseländer') }}</div></a>
                        </li>
                        <li class="sidenav-item{{ Request::is('admin/settings/travel/nationality/*') ? ' active' : '' }}">
                            <a href="{{ route('admin_settings_travel_nationality') }}" class="sidenav-link"><i class="sidenav-icon ion ion-ios-people"></i><div>{{ __('Nationalitäten') }}</div></a>
                        </li>
                    </ul>
                </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/translate/*') ? ' open' : '' }}">
                    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle">
                        <i class="sidenav-icon ion ion-ios-browsers"></i>
                        <div>Inhalte</div>
                    </a>

                    <ul class="sidenav-menu">
                        <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>{{ __('Vorlagen') }}</div></a>
                        </li>
                        <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>
                    </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
