<!-- Sidenav -->
<div class="sidenav" id="sidenav-main">
    <!-- Sidenav header -->
    <div class="sidenav-header d-flex align-items-center">
        <a class="navbar-brand" href="{{ route('dashboard') }}">
            <img src="{{ asset('storage/app/public/' . $settings->logo) }}" class="navbar-brand-img" alt="logo">
        </a>
        <div class="ml-auto">
            <!-- Sidenav toggler -->
            <div class="sidenav-toggler sidenav-toggler-dark d-md-none" data-action="sidenav-unpin"
                data-target="#sidenav-main">
                <div class="sidenav-toggler-inner">
                    <i class="bg-white sidenav-toggler-line"></i>
                    <i class="bg-white sidenav-toggler-line"></i>
                    <i class="bg-white sidenav-toggler-line"></i>
                </div>
            </div>
        </div>
    </div>
    <!-- User mini profile -->

    <!-- Application nav -->
    <div class="clearfix nav-application">
        <a href="{{ route('dashboard') }}"
            class="text-sm btn btn-square {{ request()->routeIs('dashboard') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="far fa-home fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">Home</span>
        </a>
        <a href="{{ route('mplans') }}"
            class="text-sm btn btn-square {{ request()->routeIs('mplans') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="far fa-boxes fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">Packages</span>
        </a>

        <a href="{{ route('myplans', 'All') }}"
            class="text-sm btn btn-square {{ request()->routeIs('myplans') ? 'active' : '' }} {{ request()->routeIs('plandetails') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="far fa-hand-holding-seedling fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">My Packages</span>
        </a>
        <a href="{{ route('deposits') }}"
            class="text-sm btn btn-square {{ request()->routeIs('deposits') ? 'active' : '' }} {{ request()->routeIs('payment') ? 'active' : '' }} {{ request()->routeIs('pay.crypto') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="far fa-wallet fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">Deposit</span>
        </a>

        <a href="{{ route('withdrawalsdeposits') }}"
            class="text-sm btn btn-square {{ request()->routeIs('withdrawalsdeposits') ? 'active' : '' }} {{ request()->routeIs('withdrawfunds') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="far fa-briefcase fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">Withdraw</span>
        </a>

        <!--@if ($mod['investment'])-->
        <!--    <a href="{{ route('tradinghistory') }}"-->
        <!--        class="text-sm btn btn-square {{ request()->routeIs('tradinghistory') ? 'active' : '' }}">-->
        <!--        <span class="btn-inner--icon d-block"><i class="fal fa-history fa-2x"></i></span>-->
        <!--        <span class="pt-2 btn-inner--icon d-block">Profit History</span>-->
        <!--    </a>-->
        <!--@endif-->
        <a href="{{ route('accounthistory') }}"
            class="text-sm btn btn-square {{ request()->routeIs('accounthistory') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="fas fa-money-check-alt fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">Transactions</span>
        </a>
        <!--@if ($mod['cryptoswap'])-->
        <!--    <a href="{{ route('assetbalance') }}"-->
        <!--        class="text-sm btn btn-square {{ request()->routeIs('assetbalance') ? 'active' : '' }} {{ request()->routeIs('swaphistory') ? 'active' : '' }}">-->
        <!--        <span class="btn-inner--icon d-block"><i class="fab fa-stack-exchange fa-2x"></i></span>-->
        <!--        <span class="pt-2 btn-inner--icon d-block">Swap Crypto</span>-->
        <!--    </a>-->
        <!--@endif-->
        <!--@if ($moresettings->use_transfer)-->
        <!--    <a href="{{ route('transferview') }}"-->
        <!--        class="text-sm btn btn-square {{ request()->routeIs('transferview') ? 'active' : '' }}">-->
        <!--        <span class="btn-inner--icon d-block"><i class="fas fa-exchange fa-2x"></i></span>-->
        <!--        <span class="pt-2 btn-inner--icon d-block">Transfer funds</span>-->
        <!--    </a>-->
        <!--@endif-->
        <a href="{{ route('profile') }}"
            class="text-sm btn btn-square {{ request()->routeIs('profile') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="fas fa-address-card fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">Profile</span>
        </a>
     
        <a href="{{ route('referuser') }}"
            class="text-sm btn btn-square {{ request()->routeIs('referuser') ? 'active' : '' }}">
            <span class="btn-inner--icon d-block"><i class="fas fa-retweet fa-2x"></i></span>
            <span class="pt-2 btn-inner--icon d-block">Referrals</span>
        </a>
    </div>
    <!-- Misc area -->
    <div class="card bg-gradient-warning">
        <div class="card-body">
            <h5 class="text-white">Need Help!</h5>
            <p class="mb-4 text-white">
                Contact our 24/7 customer support center
            </p>
            <a href="{{ route('support') }}" class="btn btn-sm btn-primary btn-block btn-white rounded-pill" style="background:red">Contact Us</a>
        </div>
    </div>
</div>
