<aside class="left-sidebar" data-sidebarbg="skin6">
    <!-- Sidebar scroll-->
    <div class="scroll-sidebar" data-sidebarbg="skin6">
        <!-- Sidebar navigation-->
        <nav class="sidebar-nav">
            <ul id="sidebarnav">
                @if(adminAccessRoute(config('role.dashboard.access.view')))
                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.dashboard')}}" aria-expanded="false">
                            <i data-feather="home" class="feather-icon text-success"></i>
                            <span class="hide-menu">@lang('Dashboard')</span>
                        </a>
                    </li>
                @endif

                @if(adminAccessRoute(config('role.manage_role.access.view')))
                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.staff')}}" aria-expanded="false">
                            <i data-feather="users" class="feather-icon text-cyan"></i>
                            <span class="hide-menu">@lang('Role Permission')</span>
                        </a>
                    </li>
                @endif
                @if(adminAccessRoute(config('role.identify_form.access.view')))
                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.identify-form')}}" aria-expanded="false">
                            <i data-feather="file-text" class="feather-icon text-danger"></i>
                            <span class="hide-menu">@lang('KYC / Identity Form')</span>
                        </a>
                    </li>
                @endif

                @if(adminAccessRoute(config('role.manage_property.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Manage Property')</span></li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.scheduleManage') }}" aria-expanded="false">
                            <i class="fas fa-clock text-warning"></i>
                            <span class="hide-menu">@lang('Profit Schedule')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.amenities')}}" aria-expanded="false">
                            <i class="fa fa-check-circle text-success" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('Amenities List')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.addressList') }}" aria-expanded="false">
                            <i class="fa fa-check-circle text-primary" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('Address List')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link has-arrow" href="javascript:void(0)" aria-expanded="false">
                            <i class="fa fa-building text-success"></i>
                            <span class="hide-menu">@lang('Property List')</span>
                        </a>
                        <ul aria-expanded="false" class="collapse first-level base-level-line">
                            <li class="sidebar-item">
                                <a class="sidebar-link" href="{{ route('admin.propertyList',['all'])}}" aria-expanded="false">
                                    <span class="hide-menu">@lang('All Properties')</span>
                                </a>
                            </li>
                            <li class="sidebar-item">
                                <a class="sidebar-link" href="{{ route('admin.propertyList',['upcoming'])}}" aria-expanded="false">
                                    <span class="hide-menu">@lang('Upcoming Properties')</span>
                                </a>
                            </li>

                            <li class="sidebar-item">
                                <a class="sidebar-link" href="{{ route('admin.propertyList',['running'])}}" aria-expanded="false">
                                    <span class="hide-menu">@lang('Running Properties')</span>
                                </a>
                            </li>

                            <li class="sidebar-item">
                                <a class="sidebar-link" href="{{ route('admin.propertyList',['expired'])}}" aria-expanded="false">
                                    <span class="hide-menu">@lang('Expired Properties')</span>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.wishListProperty')}}" aria-expanded="false">
                            <i class="fa fa-heart text-info" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('WishList Property')</span>
                        </a>
                    </li>


                    <li class="sidebar-item {{menuActive(['admin.shareInvestment'])}}">
                        <a class="sidebar-link" href="{{ route('admin.shareInvestment')}}" aria-expanded="false">
                            <i class="fas fa-share-alt text-cyan"></i>
                            <span class="hide-menu">@lang('Can share investment?')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.propertyAnalytics')}}" aria-expanded="false">
                            <i class="fas fa-chart-line text-warning"></i>
                            <span class="hide-menu">@lang('Analytics')</span>
                        </a>
                    </li>
                @endif

                @if(adminAccessRoute(config('role.investments.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Investments')</span></li>

                    <li class="sidebar-item {{menuActive(['admin.investments'])}}">
                        <a class="sidebar-link" href="{{ route('admin.investments',['all']) }}" aria-expanded="false">
                            <i class="fas fa-shopping-cart text-purple"></i>
                            <span class="hide-menu">@lang('All Investments')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.investedProperty','admin.seeInvestedUser'])}}">
                        <a class="sidebar-link" href="{{ route('admin.investments',['running'])}}" aria-expanded="false">
                            <i class="fas fa-running text-primary"></i>
                            <span class="hide-menu">@lang('Running Investments')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.investedProperty','admin.seeInvestedUser'])}}">
                        <a class="sidebar-link" href="{{ route('admin.investments',['due'])}}" aria-expanded="false">
                            <i class="fa fa-info-circle text-warning" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('Due Investments')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.expiredInvestment'])}}">
                        <a class="sidebar-link" href="{{ route('admin.investments',['expired'])}}" aria-expanded="false">
                            <i class="fas fa-times-circle text-danger"></i>
                            <span class="hide-menu">@lang('Expired Investments')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.completedInvestment'])}}">
                        <a class="sidebar-link" href="{{ route('admin.investments',['completed'])}}" aria-expanded="false">
                            <i class="fa fa-check-circle text-success" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('Completed Investments')</span>
                        </a>
                    </li>
                @endif


                @if(adminAccessRoute(config('role.manage_badge.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Manage Badge')</span></li>

                    <li class="sidebar-item {{menuActive(['admin.badgeSettings'])}}">
                        <a class="sidebar-link {{menuActive(['admin.badgeSettings'])}}" href="{{ route('admin.badgeSettings')}}" aria-expanded="false">
                            <i class="fas fa-cog text-pink"></i>
                            <span class="hide-menu">@lang('Badge Bonus')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.badgeList'])}}">
                        <a class="sidebar-link {{menuActive(['admin.badgeList'])}}" href="{{ route('admin.badgeList')}}" aria-expanded="false">
                            <i class="fa fa-certificate text-yellow" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('Badge List')</span>
                        </a>
                    </li>
                @endif


                @if(adminAccessRoute(config('role.manage_user.access.view')))
                    {{--Manage User--}}
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Manage User')</span></li>

                    <li class="sidebar-item {{menuActive(['admin.users','admin.users.search','admin.user-edit*','admin.send-email*','admin.user*'],3)}}">
                        <a class="sidebar-link" href="{{ route('admin.users') }}" aria-expanded="false">
                            <i class="fas fa-users text-info"></i>
                            <span class="hide-menu">@lang('All User')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.kyc.users.pending') }}"
                           aria-expanded="false">
                            <i class="fas fa-spinner text-cyan"></i>
                            <span class="hide-menu">@lang('Pending KYC')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.kyc.users') }}"
                           aria-expanded="false">
                            <i class="fas fa-file text-success"></i>
                            <span class="hide-menu">@lang('KYC Log')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.email-send') }}"
                           aria-expanded="false">
                            <i class="fas fa-envelope-open text-blue"></i>
                            <span class="hide-menu">@lang('Send Email')</span>
                        </a>
                    </li>
                @endif


                @if(adminAccessRoute(config('role.commission_setting.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Commission Setting')</span></li>
                    <li class="sidebar-item {{menuActive(['admin.referral-commission'])}}">
                        <a class="sidebar-link {{menuActive(['admin.referral-commission'])}}" href="{{ route('admin.referral-commission')}}" aria-expanded="false">
                            <i class="fas fa-cogs text-info"></i>
                            <span class="hide-menu">@lang('Referral')</span>
                        </a>
                    </li>
                @endif

                @if(adminAccessRoute(config('role.payment_settings.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Payment Settings')</span></li>
                    <li class="sidebar-item {{menuActive(['admin.payment.methods','admin.edit.payment.methods'],3)}}">
                        <a class="sidebar-link" href="{{route('admin.payment.methods')}}"
                           aria-expanded="false">
                            <i class="fas fa-credit-card text-primary"></i>
                            <span class="hide-menu">@lang('Payment Methods')</span>
                        </a>
                    </li>
                    <li class="sidebar-item {{menuActive(['admin.deposit.manual.index','admin.deposit.manual.create','admin.deposit.manual.edit'],3)}}">
                        <a class="sidebar-link" href="{{route('admin.deposit.manual.index')}}"
                           aria-expanded="false">
                            <i class="fa fa-university text-success"></i>
                            <span class="hide-menu">@lang('Manual Gateway')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.payment.pending'],3)}}">
                        <a class="sidebar-link" href="{{route('admin.payment.pending')}}" aria-expanded="false">
                            <i class="fas fa-spinner text-info"></i>
                            <span class="hide-menu">@lang('Deposit Request')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.payment.log','admin.payment.search'],3)}}">
                        <a class="sidebar-link" href="{{route('admin.payment.log')}}" aria-expanded="false">
                            <i class="fas fa-history text-cyan"></i>
                            <span class="hide-menu">@lang('Payment Log')</span>
                        </a>
                    </li>
                @endif


                @if(adminAccessRoute(config('role.payout_settings.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Payout Settings')</span></li>

                    <li class="sidebar-item {{menuActive(['admin.payout.settings'])}}">
                        <a class="sidebar-link" href="{{route('admin.payout.settings')}}" aria-expanded="false">
                            <i class="fas fa-hand-holding-usd text-blue"></i>
                            <span class="hide-menu">@lang('Payout Settings')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.payout-method*'],3)}}">
                        <a class="sidebar-link" href="{{route('admin.payout-method')}}"
                           aria-expanded="false">
                            <i class="fas fa-credit-card text-warning"></i>
                            <span class="hide-menu">@lang('Payout Methods')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.payout-request'],3)}}">
                        <a class="sidebar-link" href="{{route('admin.payout-request')}}" aria-expanded="false">
                            <i class="fas fa-hand-holding-usd text-cyan"></i>
                            <span class="hide-menu">@lang('Payout Request')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.payout-log*'],3)}}">
                        <a class="sidebar-link" href="{{route('admin.payout-log')}}" aria-expanded="false">
                            <i class="fas fa-history text-indigo"></i>
                            <span class="hide-menu">@lang('Payout Log')</span>
                        </a>
                    </li>
                @endif

                @if(adminAccessRoute(config('role.all_transaction.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('All Transaction ')</span></li>

                    <li class="sidebar-item {{menuActive(['admin.transaction*'],3)}}">
                        <a class="sidebar-link" href="{{ route('admin.transaction') }}" aria-expanded="false">
                            <i class="fas fa-exchange-alt text-warning"></i>
                            <span class="hide-menu">@lang('Transaction')</span>
                        </a>
                    </li>

                    <li class="sidebar-item {{menuActive(['admin.commissions*'],3)}}">
                        <a class="sidebar-link" href="{{ route('admin.commissions') }}" aria-expanded="false">
                            <i class="fas fa-money-bill-alt text-indigo"></i>
                            <span class="hide-menu">@lang('Commission')</span>
                        </a>
                    </li>
                @endif


                @if(adminAccessRoute(config('role.support_ticket.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Support Tickets')</span></li>
                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.ticket')}}" aria-expanded="false">
                            <i class="fas fa-ticket-alt text-cyan"></i>
                            <span class="hide-menu">@lang('All Tickets')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.ticket',['open']) }}"
                           aria-expanded="false">
                            <i class="fas fa-spinner text-success"></i>
                            <span class="hide-menu">@lang('Open Ticket')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.ticket',['closed']) }}"
                           aria-expanded="false">
                            <i class="fas fa-times-circle text-danger"></i>
                            <span class="hide-menu">@lang('Closed Ticket')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{ route('admin.ticket',['answered']) }}"
                           aria-expanded="false">
                            <i class="fas fa-reply text-primary"></i>
                            <span class="hide-menu">@lang('Answered Ticket')</span>
                        </a>
                    </li>
                @endif


                @if(adminAccessRoute(config('role.subscriber.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Subscriber')</span></li>
                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.subscriber.index')}}" aria-expanded="false">
                            <i class="fas fa-envelope-open text-pink"></i>
                            <span class="hide-menu">@lang('Subscriber List')</span>
                        </a>
                    </li>
                @endif

                @if(adminAccessRoute(config('role.website_controls.access.view'))))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Website Controls')</span></li>
                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.basic-controls')}}" aria-expanded="false">
                            <i class="fas fa-cogs text-purple"></i>
                            <span class="hide-menu">@lang('Basic Controls')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.plugin.config')}}" aria-expanded="false">
                            <i class="fa fa-plug text-yellow" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('Plugin Configuration')</span>
                        </a>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link has-arrow" href="javascript:void(0)" aria-expanded="false">
                            <i class="fas fa-envelope text-success"></i>
                            <span class="hide-menu">@lang('Email Settings')</span>
                        </a>
                        <ul aria-expanded="false" class="collapse first-level base-level-line">
                            <li class="sidebar-item">
                                <a href="{{route('admin.email-controls')}}" class="sidebar-link">
                                    <span class="hide-menu">@lang('Email Controls')</span>
                                </a>
                            </li>
                            <li class="sidebar-item">
                                <a href="{{route('admin.email-template.show')}}" class="sidebar-link">
                                    <span class="hide-menu">@lang('Email Template') </span>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link has-arrow" href="javascript:void(0)" aria-expanded="false">
                            <i class="fas fa-mobile-alt text-purple"></i>
                            <span class="hide-menu">@lang('SMS Settings')</span>
                        </a>
                        <ul aria-expanded="false" class="collapse first-level base-level-line">
                            <li class="sidebar-item">
                                <a href="{{ route('admin.sms.config') }}" class="sidebar-link">
                                    <span class="hide-menu">@lang('SMS Controls')</span>
                                </a>
                            </li>

                            <li class="sidebar-item">
                                <a href="{{ route('admin.sms-template') }}" class="sidebar-link">
                                    <span class="hide-menu">@lang('SMS Template')</span>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link has-arrow" href="javascript:void(0)" aria-expanded="false">
                            <i class="fas fa-bell text-pink"></i>
                            <span class="hide-menu">@lang('Push Notification')</span>
                        </a>
                        <ul aria-expanded="false" class="collapse first-level base-level-line">
                            <li class="sidebar-item">
                                <a href="{{route('admin.notify-config')}}" class="sidebar-link">
                                    <span class="hide-menu">@lang('Configuration')</span>
                                </a>
                            </li>

                            <li class="sidebar-item">
                                <a href="{{ route('admin.notify-template.show') }}" class="sidebar-link">
                                    <span class="hide-menu">@lang('Template')</span>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.currency.exchange.api.config')}}" aria-expanded="false">
                            <i class="fa fa-dollar-sign text-yellow" aria-hidden="true"></i>
                            <span class="hide-menu">@lang('Currency Exchange')</span>
                        </a>
                    </li>
                @endif


                @if(adminAccessRoute(config('role.language_settings.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Language Settings')</span></li>
                        @if(adminAccessRoute(config('role.language_settings.access.view')))
                            <li class="sidebar-item {{menuActive(['admin.language.create','admin.language.edit*','admin.language.keywordEdit*'],3)}}">
                                <a class="sidebar-link" href="{{  route('admin.language.index') }}"
                                   aria-expanded="false">
                                    <i class="fas fa-language text-cyan"></i>
                                    <span class="hide-menu">@lang('Manage Language')</span>
                                </a>
                            </li>
                        @endif
                @endif


                @if(adminAccessRoute(config('role.theme_settings.access.view')))
                    <li class="list-divider"></li>
                    <li class="nav-small-cap"><span class="hide-menu">@lang('Theme Settings')</span></li>



                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.logo-seo')}}" aria-expanded="false">
                            <i class="fas fa-image text-success"></i><span
                                class="hide-menu">@lang('Manage Logo & SEO')</span>
                        </a>
                    </li>
                    <li class="sidebar-item">
                        <a class="sidebar-link" href="{{route('admin.breadcrumb')}}" aria-expanded="false">
                            <i class="fas fa-file-image text-cyan"></i><span
                                class="hide-menu">@lang('Manage Breadcrumb')</span>
                        </a>
                    </li>


                    <li class="sidebar-item {{menuActive(['admin.template.show*'],3)}}">
                        <a class="sidebar-link has-arrow" href="javascript:void(0)" aria-expanded="false">
                            <i class="fas fa-clipboard-list text-primary"></i>
                            <span class="hide-menu">@lang('Section Heading')</span>
                        </a>
                        <ul aria-expanded="false"
                            class="collapse first-level base-level-line {{menuActive(['admin.template.show*'],1)}}">

                            @foreach(array_diff(array_keys(config('templates')),['message','template_media']) as $name)
                                <li class="sidebar-item {{ menuActive(['admin.template.show'.$name]) }}">
                                    <a class="sidebar-link {{ menuActive(['admin.template.show'.$name]) }}"
                                       href="{{ route('admin.template.show',$name) }}">
                                        <span class="hide-menu">@lang(ucfirst(kebab2Title($name)))</span>
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                    </li>


                    @php
                        $segments = request()->segments();
                        $last  = end($segments);
                    @endphp
                    <li class="sidebar-item {{menuActive(['admin.content.create','admin.content.show*'],3)}}">
                        <a class="sidebar-link has-arrow {{Request::routeIs('admin.content.show',$last) ? 'active' : '' }}"
                           href="javascript:void(0)" aria-expanded="false">
                            <i class="fas fa-clipboard-list text-pink"></i>
                            <span class="hide-menu">@lang('Content Settings')</span>
                        </a>
                        <ul aria-expanded="false"
                            class="collapse first-level base-level-line {{menuActive(['admin.content.create','admin.content.show*'],1)}}">
                            @foreach(array_diff(array_keys(config('contents')),['message','content_media']) as $name)
                                <li class="sidebar-item {{($last == $name) ? 'active' : '' }} ">
                                    <a class="sidebar-link {{($last == $name) ? 'active' : '' }}"
                                       href="{{ route('admin.content.index',$name) }}">
                                        <span class="hide-menu">@lang(ucfirst(kebab2Title($name)))</span>
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                    </li>
                @endif

                @if(adminAccessRoute(config('role.manage_blogs.access.view')))
                    <li class="sidebar-item">
                        <a class="sidebar-link has-arrow" href="javascript:void(0)" aria-expanded="false">
                            <i class="fas fa-newspaper"></i>
                            <span class="hide-menu">@lang('All Blogs')</span>
                        </a>
                        <ul aria-expanded="false" class="collapse first-level base-level-line">
                            <li class="sidebar-item">
                                <a href="{{route('admin.blogCategory')}}" class="sidebar-link">
                                    <span class="hide-menu">@lang('Category List')</span>
                                </a>
                            </li>

                            <li class="sidebar-item">
                                <a href="{{ route('admin.blogList') }}" class="sidebar-link">
                                    <span class="hide-menu">@lang('Blog List')</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                @endif


                    <li class="list-divider"></li>
                    <li class="nav-small-cap text-center"><span class="hide-menu">@lang('Version 1.0')</span></li>
            </ul>
        </nav>
        <!-- End Sidebar navigation -->
    </div>
    <!-- End Sidebar scroll-->
</aside>
