@inject('request', 'Illuminate\Http\Request')
<aside class="left-sidebar">
    <!-- Sidebar scroll-->
    <div class="scroll-sidebar">
        <!-- Sidebar navigation-->
        <nav class="sidebar-nav">
            <ul id="sidebarnav">
                <li class="{{ $request->segment(1) == 'home' ? 'active' : '' }}">
                    <a class="has-arrow" href="{{url('/')}}/dealer/home" aria-expanded="false"><i class="mdi mdi-gauge"></i><span class="hide-menu">Dashboard </span></a>                   
                </li>
                <li>
                    <a class="has-arrow " href="#" aria-expanded="false"><i class="mdi mdi-upload"></i><span class="hide-menu">Create Deal</span></a>
                    <ul aria-expanded="false" class="collapse">                      
                      <li><a href="{{url('/')}}/dealer/billSentReport">Create EV Deal</a></li>
                      <li><a href="{{url('/')}}/dealer/billSentReport/SOLAR">Create SOLAR Deal</a></li>
                    </ul>
                </li>
                @if(\App\EvDealer::find(Session::get('dealer_logged_id'))->dealer_type=='mega')
                <li class="">
                    <a class="has-arrow" href="{{url('/')}}/dealer/mydealers" aria-expanded="false"><i class="mdi mdi-account-multiple"></i><span class="hide-menu">My Dealer </span></a>                   
                </li>
                @endif
                <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="{{url('/')}}/dealer/incomewallet">Direct Income Wallet</a></li>
                      @if(\App\EvDealer::find(Session::get('dealer_logged_id'))->dealer_type=='mega')
                      <li><a href="{{url('/')}}/dealer/incomewalletReferral">Referral Income Wallet</a></li>
                      @endif
                    </ul>
                </li>
                <li>
                    <a class="has-arrow " href="#" aria-expanded="false"><i class="mdi mdi-bank"></i><span class="hide-menu">Fund Manager</span></a>
                    <ul aria-expanded="false" class="collapse">
                      <li><a href="{{url('/')}}/dealer/incomes/payoutwalletdealer">Payout Request</a></li>
                    </ul>
                </li>
            </ul>
        </nav>
    </div>
    <!-- End Sidebar scroll-->
</aside>
