<?php $request = app('Illuminate\Http\Request'); ?>
<aside class="left-sidebar">
    <!-- Sidebar scroll-->
    <div class="scroll-sidebar">
        <!-- Sidebar navigation-->
        <nav class="sidebar-nav">
            <ul id="sidebarnav">
                <li class="<?php echo e($request->segment(1) == 'home' ? 'active' : ''); ?>">
                    <a class="has-arrow" href="#" aria-expanded="false"><i class="mdi mdi-gauge"></i><span class="hide-menu">Dashboard </span></a>
                    <ul aria-expanded="false" class="collapse">
                        <li><a href="<?php echo e(url('/')); ?>/home">Main Dashboard</a></li>
                        <li><a href="<?php echo e(url('/')); ?>/businessdashboard">Business Dashboard</a></li>
                    </ul>
                </li>
                <li>
                    <a class="has-arrow " href="<?php echo e(url('/addLead')); ?>" aria-expanded="false"><i class="mdi mdi-account-plus"></i><span class="hide-menu">Add Leads</span></a>
                </li>
                <li>
                    <a class="has-arrow " href="<?php echo e(url('/bookMySolar')); ?>" aria-expanded="false"><i class="mdi mdi-account-star-variant"></i><span class="hide-menu">Book My Solar</span></a>
                </li>
                <li>
                    <a class="has-arrow " href="#" aria-expanded="false"><i class="mdi mdi-account-multiple"></i><span class="hide-menu">My Leads</span></a>
                    <ul aria-expanded="false" class="collapse">
                      <li><a href="<?php echo e(url('/')); ?>/myLeadsList/pending">Pending Leads</a></li>
                      <li><a href="<?php echo e(url('/')); ?>/myLeadsList/approved">Approved Leads</a></li>
                      <li><a href="<?php echo e(url('/')); ?>/myLeadsList/loanApproved">Loan Approved Leads</a></li>
                      <li><a href="<?php echo e(url('/')); ?>/myLeadsList/loanDeclined">Loan Declined Leads</a></li>
                      <li><a href="<?php echo e(url('/')); ?>/myLeadsList/cancelled">Cancelled Leads</a></li>
                      <li><a href="<?php echo e(url('/')); ?>/myLeadsList/dealCreated">Deal Created Leads</a></li>
                    </ul>
                </li>
                <li>
                    <a class="has-arrow " href="#" aria-expanded="false"><i class="mdi mdi-bank"></i><span class="hide-menu">Wallet</span></a>
                    <ul aria-expanded="false" class="collapse">
                      <li><a href="<?php echo e(url('/')); ?>/incomes/solrefwallet">Solar Referral Income Wallet</a></li>
                    </ul>
                </li>

                <li>
                    <a class="has-arrow " href="#" aria-expanded="false"><i class="mdi mdi-cube"></i><span class="hide-menu">Help & Support</span></a>
                    <ul aria-expanded="false" class="collapse">
                        <li><a href="<?php echo e(url('/')); ?>/users/urequests">Request</a></li>
                        <li><a href="<?php echo e(url('/')); ?>/users/complaints">Complaints/Suggestion</a></li>
                    </ul>
                </li>

                 <?php if(Auth::user()->role_id == 1): ?>
                <li class="">
                    <a class="has-arrow " href="#" aria-expanded="false"><i class="mdi mdi-settings"></i><span class="hide-menu">Admin Tools</span></a>
                    <ul aria-expanded="true" class="collapse in" style="max-height: 500px; overflow-y: scroll;">
                        
                        <li>
                            <a class="has-arrow" href="#" aria-expanded="false">Leads</a>
                            <ul aria-expanded="false" class="collapse">
                              <li><a href="<?php echo e(url('/')); ?>/admin/leadsList/pending">Pending Leads</a></li>
                              <li><a href="<?php echo e(url('/')); ?>/admin/leadsList/approved">Approved Leads</a></li>
                              <li><a href="<?php echo e(url('/')); ?>/admin/leadsList/loanApproved">Loan Approved Leads</a></li>
                              <li><a href="<?php echo e(url('/')); ?>/admin/leadsList/loanDeclined">Loan Declined Leads</a></li>
                              <li><a href="<?php echo e(url('/')); ?>/admin/leadsList/cancelled">Cancelled Leads</a></li>
                              <li><a href="<?php echo e(url('/')); ?>/admin/leadsList/dealCreated">Deal Created Leads</a></li>
                            </ul>
                        </li>
                        <li>
                            <a class="has-arrow" href="<?php echo e(url('/')); ?>/admin/siteVisits" aria-expanded="false">Site Vists</a>
                        </li>
                        <li>
                            <a class="has-arrow" href="#" aria-expanded="false">Message Alerts</a>
                            <ul aria-expanded="false" class="collapse">
                                <li><a href="<?php echo e(url('/')); ?>/admin/users/urequests">Request</a></li>
                                <li><a href="<?php echo e(url('/')); ?>/admin/users/complaints">Complaints/Suggestion</a></li>
                            </ul>
                        </li>
                        <li>
                            <a class="has-arrow" href="#" aria-expanded="false">Gallery</a>
                            <ul aria-expanded="false" class="collapse">
                                <li><a href="<?php echo e(url('/')); ?>/admin/addgallery">Video Gallery</a></li>
                                <li><a href="<?php echo e(url('/')); ?>/admin/addgalleryimg">Image Gallery</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="<?php echo e(url('/')); ?>/admin/addnews" aria-expanded="false">News</a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>
    </ul>
</nav>
    </div>
    <!-- End Sidebar scroll-->
</aside>
<?php /**PATH /home2/justsolar/public_html/resources/views/partials/sidebar.blade.php ENDPATH**/ ?>