
<div class="navbar-default sidebar" role="navigation">
    <div class="sidebar-nav ">
        <ul class="nav" id="side-menu">
            <li>
                <a href="{{ route('dashboard') }}"><i class="fas fa-laptop"></i> @lang('app.dashboard')</a>
            </li>
            
            
            <li>
                <a href="#"><i class="fa fa-user"></i> Profile<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li> <a href="{{ route('profile') }}">@lang('app.profile')</a></li>
                                                    @if($lUser->is_agency())

                    <li> <a href="{{ route('agency_create') }}">Edit Agency Profile</a></li>
                                                    @endif
                                                             @if(!$lUser->is_agency())

                    <li> <a href="{{ route('profit_edit') }}">Edit Profile</a></li>
                                                    @endif

                    <li> <a href="{{ route('change_password') }}"> @lang('app.change_password')</a>  </li>
                    
                </ul>
            </li>
            
             @if($lUser->is_agency())
              <li>
            <a href="#"><i class="fa fa-user"></i>   My Agents<span class="fa arrow"></span></a>

  <ul class="nav nav-second-level">
                    <li> <a href="{{ route('agency_agents') }}">My Agents</a></li>

                    <li> <a href="{{ route('agency_blocked') }}">Blocked Agents</a></li>

                    <li> <a href="{{ route('agency_pending') }}"> Pending for Approval </a>  </li>
                    

                </ul>

              </li>
              @endif

                                @if($lUser->user_type == 'agent')
            
            <li>
                <a href="#"><i class="fas fa-home"></i> Agency Options<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li> <a href="{{ route('selectagency') }}">Join Agency</a></li>
                    <li> <a href="{{ route('agency_edit') }}">Create Agency</a></li>
                    <!--<li> <a href="#"> Approve Agents</a>  </li>-->
                    
                </ul>
            </li>
            <!--<li> <a href="{{ route('agent_messages') }}"><i class="fas fa-envelope-open-text"></i> Contact Messages</a>  </li>-->
                                @endif
            <!--<li> <a href="{{ route('user_messages') }}"><i class="fas fa-envelope-open-text"></i> User Messages</a>  </li>-->
                                
                                                                @if($lUser->is_agency())

            
            <li> <a href="{!! route('favourite_ad') !!}"><i class="fa fa-ad"></i> Favourites</a> </li>
            
            <li>
                <a href="#"><i class="fa fa-bullhorn"></i> @lang('app.my_ads')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>  <a href="{{ route('agency_ads') }}">@lang('app.my_ads')</a> </li>
                    <li>  <a href="{{ route('agency_create_ad') }}">@lang('app.post_an_ad')</a> </li>
                    <li>  <a href="{{ route('agency_pending_ads') }}">@lang('app.pending_for_approval')</a> </li>
                    <!--<li>  <a href="{{ route('favorite_ads') }}">@lang('app.favourite_ads')</a> </li>-->
                </ul>
            </li>
            
            
                                @endif
                                                         @if(!$lUser->is_agency())


            <li> <a href="{!! route('favourite_ad') !!}"><i class="fa fa-ad"></i> Favourites</a> </li>

            <li>
                <a href="#"><i class="fa fa-bullhorn"></i> @lang('app.my_ads')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>  <a href="{{ route('my_ads') }}">@lang('app.my_ads')</a> </li>
                    <li>  <a href="{{ route('create_ad') }}">@lang('app.post_an_ad')</a> </li>
                    <li>  <a href="{{ route('pending_ads') }}">@lang('app.pending_for_approval')</a> </li>
                    <!--<li>  <a href="{{ route('favorite_ads') }}">@lang('app.favourite_ads')</a> </li>-->
                </ul>
            </li>
            
                                @endif


            @if($lUser->is_admin() )
            
            @if($lUser->is_admin())

            <li> <a href="{{ route('parent_categories') }}"><i class="fa fa-list"></i> @lang('app.categories')</a>  </li>
            <li> <a href="{{ route('admin_brands') }}"><i class="fa fa-adjust"></i> @lang('app.brands')</a>  </li>

            <li>
                <a href="#"><i class="fa fa-bullhorn"></i> @lang('app.ads')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>  <a href="{{ route('approved_ads') }}">@lang('app.approved_ads')</a> </li>
                    <li>  <a href="{{ route('admin_pending_ads') }}">@lang('app.pending_for_approval')</a> </li>
                    <li>  <a href="{{ route('admin_blocked_ads') }}">@lang('app.blocked_ads')</a> </li>
                </ul>
            </li>
            @endif

            @if($lUser->is_admin())
            
            
            <li>
                <a href="#"><i class="fa fa-rss-square"></i> @lang('app.blog')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>  <a href="{{ route('posts') }}">@lang('app.posts')</a> </li>
                    <li>  <a href="{{ route('create_new_post') }}">@lang('app.create_new_post')</a> </li>
                </ul>
            </li>
            


            <li> <a href="{{ route('pages') }}"><i class="fa fa-file-word-o"></i> @lang('app.pages')</a>  </li>
            <li> <a href="{{ route('ad_reports') }}"><i class="fa fa-exclamation"></i> @lang('app.ad_reports')</a>  </li>
            <li> <a href="{{ route('just-users') }}"><i class="fas fa-user"></i> Users</a>  </li>
            <li> <a href="{{ route('users') }}"><i class="fas fa-user-tie"></i> @lang('app.users')</a>  </li>
            <li> <a href="{{ route('agencies') }}"><i class="fas fa-briefcase"></i> Agencies</a>  </li>

            <!--<li>
                <a href="#"><i class="fa fa-desktop fa-fw"></i> @lang('app.appearance')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li> <a href="{{ route('theme_settings') }}">@lang('app.theme_settings')</a> </li>
                    <li> <a href="{{ route('modern_theme_settings') }}">@lang('app.modern_theme_settings')</a> </li>
                    <li> <a href="{{ route('social_url_settings') }}">@lang('app.social_url')</a> </li>
                </ul>
                
            </li>-->

            <li>
                <a href="#"><i class="fa fa-map-marker"></i> @lang('app.locations')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li> <a href="{{ route('country_list') }}">@lang('app.countries')</a> </li>
                    <li> <a href="{{ route('state_list') }}">@lang('app.states')</a> </li>
                    <li> <a href="{{ route('city_list') }}">@lang('app.cities')</a> </li>
                </ul>
                <!-- /.nav-second-level -->
            </li>

            <li> <a href="{{ route('contact_messages') }}"><i class="fas fa-envelope-open-text"></i> @lang('app.contact_messages')</a>  </li>
            <li> <a href="{{ route('monetization') }}"><i class="fa fa-dollar"></i> @lang('app.monetization')</a>  </li>

            <li>
                <a href="#"><i class="fa fa-wrench fa-fw"></i> @lang('app.settings')<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li> <a href="{{ route('general_settings') }}">@lang('app.general_settings')</a> </li>
                    <li> <a href="{{ route('ad_settings') }}">@lang('app.ad_settings_and_pricing')</a> </li>
                    <li> <a href="{{ route('payment_settings') }}">@lang('app.payment_settings')</a> </li>
                    <li> <a href="{{ route('language_settings') }}">@lang('app.language_settings')</a> </li>
                    <li> <a href="{{ route('file_storage_settings') }}">@lang('app.file_storage_settings')</a> </li>
                    <li> <a href="{{ route('social_settings') }}">@lang('app.social_settings')</a> </li>
                    <li> <a href="{{ route('blog_settings') }}">@lang('app.blog_settings')</a> </li>
                    <li> <a href="{{ route('other_settings') }}">@lang('app.other_settings')</a> </li>
                </ul>
                <!-- /.nav-second-level -->
            </li>
            <li>
                <a href="#"><i class="fa fa-wrench fa-fw"></i> Providers <span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li> <a href="{{ route('all-providers') }}">All Providers</a> </li>
                    <li> <a href="{{ route('providers_create') }}">Add a Provider</a> </li>
                    
                </ul>
                <!-- /.nav-second-level -->
            </li>

                <li> <a href="{{ route('administrators') }}"><i class="fa fa-users"></i> @lang('app.administrators')</a>  </li>
                
                        @endif



            @endif
            @if($lUser->user_type == 'agent')
            <li>
                <a href="#"><i class="fa fa-bullhorn"></i> User Ads<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>  <a href="{{ route('user_ad') }}">Approved</a></li>
                    <li>  <a href="{{ route('user_pend') }}">Pending</a> </li>
                    <li>  <a href="{{ route('user_blocked') }}">Browse Ads</a> </li>
                </ul>
            </li>
            <li> <a href="{{ route('tickets') }}"><i class="fas fa-envelope-open-text"></i> My Messages</a>  </li>
            @endif

            <li> <a href="{{ route('payments') }}"><i class="fa fa-money"></i> @lang('app.payments')</a>  </li>
            @if($lUser->user_type == 'agent' || $lUser->user_type == 'admin')
            <li> <a href="{{ route('wordpress_key') }}"><i class="fa fa-wordpress"></i> Wordpress Plugin</a>  </li>
            <li> <a href="{{ route('ads_added_to') }}"><i class="fas fa-receipt"></i> My Property Invites</a>  </li>
            @endif
          
            

        </ul>
    </div>
    <!-- /.sidebar-collapse -->
</div>
