<style>
    .icon_style {
        margin: 0 11px 0 0
    }
</style>
<!-- user data get -->
<?php
$user_data = get_user_data($this->session->user_id);
$inactive = inactiveUserData($this->session->user_id);

?>



<nav class="sidebar sidebar-offcanvas <?php if (!empty($status)) echo $status; ?>" id="sidebar">
    <ul class="nav">
        <li class="nav-item nav-profile">
            <a href="#" class="nav-link">
                <div class="nav-profile-image">
                    <img src="<?= base_url() ?>app-assets/images/members/avater_7.png" alt="Profile Tilte">
                    <!-- <img src="<?= base_url() ?>app-assets/images/members/<?= $user_data->picture ?>" alt="profile"> -->
                    <span class="login-status online"></span>
                    <!--change to offline or busy as needed-->
                </div>

                <div class="nav-profile-text d-flex flex-column">
                    <span class="font-weight-bold mb-2"><?= $user_data->name ?></span>
                    <?php
                    $fIncome = 0;
                    if (meAsAFreelancer()) {
                        $encodeFreelance = json_decode(meAsAFreelancer());
                        foreach ($encodeFreelance as $key => $incomeValue) {
                            $fIncome += $incomeValue->amount;
                        }
                    }
                    ?>
                    <?php if ($user_data->active_status == 0) : ?>

                        <div class="badge badge-pill badge-gradient-danger mt-1">Inactive</div><br>
                        <span class="text-gray text-small">Balance :
                            <?= number_format($inactive->balance + $fIncome, 2) ?></span>
                        <span class="text-gray text-small">Flexiload : <?= number_format(blance_check(), 2) ?></span>
                        <span class="text-gray text-small">Wallet
                            :
                            <?= !empty($inactive->cashblnc) ? number_format($inactive->cashblnc, 2) : number_format(0, 2) ?></span>

                    <?php elseif ($user_data->active_status == 2) : ?>

                        <div class="badge badge-pill badge-gradient-warning mt-1">Pending</div><br>
                        <span class="text-gray text-small">Balance :
                            <?= number_format($user_data->balance + $fIncome, 2) ?></span>
                        <span class="text-gray text-small">Flexiload : <?= number_format(blance_check(), 2) ?></span>
                        <span class="text-gray text-small">Wallet
                            :
                            <?= !empty($inactive->cashblnc) ? number_format($inactive->cashblnc, 2) : number_format(0, 2) ?></span>

                    <?php else : ?>
                        <span class="text-gray text-small"><?= $user_data->reputation_milestone_name ?></span>
                        <span class="text-gray text-small">Refer ID : <?= $user_data->own_refer_id ?></span>
                        <span class="text-gray text-small">Balance :
                            <?= number_format($user_data->balance + $fIncome, 2) ?></span>
                        <span class="text-gray text-small">Flexiload : <?= number_format(blance_check(), 2) ?></span>
                        <span class="text-gray text-small">Wallet : <?= number_format($user_data->cashblnc, 2) ?></span>
                    <?php endif ?>
                </div>


                <?php if ($user_data->active_status == 1) { ?>
                    <!-- <div class="d-flex flex-column align-items-center">
							<img class="ml-2" src="<?= base_url() ?>/app-assets/images/level/<?= $user_data->reputation_icon ?>" width="30px" alt="">
							<img class="ml-2 mt-2" src="<?= base_url() ?>/app-assets/images/level/<?= $user_data->milestone_icon ?>" height="18px" alt="">
						</div> -->
                <?php } ?>

            </a>
        </li>
        <li class="nav-item mt-2">
            <a class="nav-link" href="<?= base_url() ?>DashboardCtrl">
                <i class="fa fa-home menu-icon  ml-0 pr-3"></i>
                <span class="menu-title mr-auto"><b>Home</b></span>
            </a>
        </li>
        <!-- Order Start -->

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#product-sell" aria-expanded="true" aria-controls="ui-basic">
                <i class="fa fa-bar-chart fa-2x icon_style" style="" aria-hidden="true"></i>
                <span class="menu-title d-flex align-items-center mr-auto">
                    <b>Order</b>
                </span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="product-sell">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item">
                        <a class="nav-link" href="<?= base_url('/OrderCtrl/user_order') ?>">
                            <i class="fa fa-list menu-icon ml-0 mr-2"></i>
                            Order Summary
                        </a>
                    </li>

                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fa fa-clipboard menu-icon ml-0 mr-2"></i> Order Report
                        </a>
                    </li>
                </ul>
            </div>
        </li>


        <!-- Vendor Product Navigation Start From Here -->
        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#product-sell1" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-shopping-cart  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto">
                    <b>Product Sell</b>
                </span>
                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="product-sell1">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('ProductController/all_Products') ?>">
                            <i class="mdi mdi-worker menu-icon ml-0 mr-2"></i>
                            All Products
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('ProductController') ?>">
                            <i class="fa fa-search menu-icon ml-0 mr-2"></i>
                            Add New Product
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('OrderCtrl/marchant_order') ?>">
                            <i class="mdi mdi-worker menu-icon ml-0 mr-2"></i>
                            Orders
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('OrderCtrl/marcentReturn') ?>">
                            <i class="mdi mdi-worker menu-icon ml-0 mr-2"></i>
                            MarcentReturn
                        </a>
                    </li>
                </ul>
            </div>
        </li>
        <!-- Vendor Product Navigation Start From Here -->
        <!-- Buyer Job start -->

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#buyer-workPro" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-globe  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto">
                    <b>Buyer Jobs

                    </b>
                </span>
                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="buyer-workPro">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FreelanceController/newMerchantDeposit') ?>">
                            <i class="fa fa-search menu-icon ml-0 mr-2"></i>
                            My Deposits</a>
                    </li>

                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FreelanceController') ?>">
                            <i class="fa fa-search menu-icon ml-0 mr-2"></i>
                            Post New Job</a>
                    </li>


                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FreelanceController/postedJob') ?>">
                            <i class="mdi mdi-worker menu-icon ml-0 mr-2"></i>
                            Posted Jobs </a>
                    </li>

                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FreelanceController/myJobsHired') ?>">
                            <i class="mdi mdi-worker menu-icon ml-0 mr-2"></i>
                            Your Hired Jobs </a>
                    </li>
                </ul>
            </div>
        </li>
        <!-- Buyer Job End -->


        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#flexiload" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-phone  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto">
                    <b>Flexiload Business</b>
                </span>

                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="flexiload">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiloadCtrl/singleLoadForm') ?>"><i class="mdi mdi-phone-forward menu-icon ml-0 mr-2"></i>Single Flexiload</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiloadCtrl/buy_package') ?>"><i class="mdi mdi-cart-outline menu-icon ml-0 mr-2"></i> Buy Package </a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiloadCtrl/blance') ?>"><i class="fa fa-money menu-icon ml-0 mr-2"></i> Flexiload Blance </a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiloadCtrl/blance_transfer') ?>"><i class="mdi mdi-transfer menu-icon ml-0 mr-2"></i>Blance Transfer</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl/package_order_history') ?>"><i class="mdi mdi-history menu-icon ml-0 mr-2"></i>Order History</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl/flexiIncomeHistory') ?>"><i class="mdi mdi-history menu-icon ml-0 mr-2"></i>Income History</a></li>

                </ul>
            </div>
        </li>

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#t_report" aria-expanded="false" aria-controls="ui-basic">
                <i class="mdi mdi-history ml-0 pr-3 menu-icon"></i>
                <span class="menu-title">
                    <b>Transaction Report</b>
                </span>
                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="t_report">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl?from=' . date('Y-m-d') . ' 12:00:00 am&to=' . date('Y-m-d') . '11:59:59 pm &title=Today') ?>">Today
                        </a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl?from=' . date('Y-m-d', strtotime('-6 days')) . '12:00:00 am&to=' . date('Y-m-d') . '11:59:59 pm &title=Last 7 Days') ?>">Last
                            7 Days </a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl?from=' . date('Y-m-d', strtotime('-29 days')) . '12:00:00 am&to=' . date('Y-m-d') . '11:59:59 pm &title=Last 30 Days') ?> ">Last
                            30 Days </a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl?title=Total') ?>">Total</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl/sending_blance') ?>">Sending Blance</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('FlexiReportCtrl/receiving_blance') ?>">Receiving Blance</a></li>
                </ul>
            </div>
        </li>

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#affiliate_job" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-cube  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto"><b>
                        Affiliate Job
                    </b></span>
                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="affiliate_job">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  : base_url('ProductSellCtrl') ?>"><i class="fa fa-link menu-icon ml-0 mr-2"></i> Link</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :  base_url('ProductSellCtrl/pdt_sell_history') ?>"><i class="mdi mdi-worker menu-icon ml-0 mr-2"></i> Sell Report </a></li>
                </ul>
            </div>
        </li>


        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#digital" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-digg  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto">
                    <b>Digital Marketing</b>
                </span>
                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="digital">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0 || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('MarketingTaskCtrl/task_view') ?>"><i class="fa fa-tasks menu-icon ml-0 mr-2"></i>Paid Task</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0 || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('MarketingTaskCtrl/task_history') ?>"><i class="mdi mdi-history menu-icon ml-0 mr-2"></i>Task History </a></li>
                </ul>
            </div>
        </li>


        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#buyer-work" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-globe  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto">
                    <b>Freelance Jobs
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b>
                </span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="buyer-work">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?=  $user_data->active_status == 2 ? base_url('InactivePage/index')  : base_url('BuyerWorkCtrl') ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> Find Job</a></li>

                    <li class="nav-item"> <a class="nav-link" href="<?=  $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  : base_url('FreelanceController/AsHired') ?>">
                            <i class="mdi mdi-worker menu-icon ml-0 mr-2"></i> Your Hired Job </a></li>

                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  : base_url('FreelanceController/myEarn') ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> My Job Earn</a></li>


                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  : base_url('FreelanceController/chatList') ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> Freelance Chat</a></li>

                </ul>
            </div>
        </li>


        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#reports" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-print menu-icon ml-0 pr-3"></i>
                <span class="menu-title"><b> History
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b></span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="reports">
                <ul class="nav flex-column sub-menu">

                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :  base_url('ReportsCtrl/refer_bounus_report') ?>">Refer
                            Bonus <i class="mdi mdi-coin menu-icon"></i> </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?=  $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :  base_url('ReportsCtrl/bounus_earn_report') ?>">Affiliate
                            <i class="fa fa-share-alt menu-icon"></i> </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :  base_url('ReportsCtrl/balance_deduct') ?>">Balance
                            Removed <i class="mdi mdi-coin menu-icon"></i> </a>
                    </li>
                </ul>
            </div>
        </li>


        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#air_ticket" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-plane  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto"><b>Air Ticket Sell
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b></span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="air_ticket">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :  base_url("AirTicketController") ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> Find Air Ticket</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  : base_url("AirTicketController") ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> Air Ticket Report</a></li>
                </ul>
            </div>
        </li>

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#bus_ticket" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-bus  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto"><b>Bus Ticket Sell
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b></span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="bus_ticket">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?=  $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  : base_url("BusTicketController") ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> Bus Air Ticket</a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :  base_url("BusTicketController") ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> Bus Ticket Report</a></li>
                </ul>
            </div>
        </li>

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#bill_payment" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-money  menu-icon  ml-0 pr-3"></i>
                <span class="menu-title d-flex align-items-center mr-auto"><b> Billing Income
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b></span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="bill_payment">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?=  $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :   base_url('BillPaymentController') ?>"><i class="fa fa-search menu-icon ml-0 mr-2"></i> Bus Air Ticket</a></li>
                </ul>
            </div>
        </li>



        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#trainings" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-graduation-cap menu-icon  ml-0 pr-3" aria-hidden="true"></i>

                <span class="menu-title d-flex align-items-center mr-auto"><b> Training
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b></span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="trainings">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index')  :   base_url('TrainingController') ?>">
                            <i class="fa fa-search menu-icon ml-0 mr-2"></i>
                            Live Trainings
                        </a>
                    </li>

                </ul>
            </div>
        </li>

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#video-training" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-graduation-cap menu-icon  ml-0 pr-3" aria-hidden="true"></i>

                <span class="menu-title d-flex align-items-center mr-auto"><b> Video Training
                    </b></span>
                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="video-training">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') :  base_url('VideoTrainingController') ?>">
                            <i class="fa fa-search menu-icon ml-0 mr-2"></i>
                            All Video Trainings
                        </a>
                    </li>
                </ul>
            </div>
        </li>

        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#get-paid" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-money ml-0 pr-3 menu-icon"></i>
                <span class="menu-title"><b>Get Paid

                    </b></span>
                    <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="get-paid">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('WithdrawCtrl') ?>">Withdraw Request
                            &nbsp <i class="mdi mdi-message-text-outline menu-icon"></i> </a></li>
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('WithdrawCtrl/withdraw_histry') ?>">Withdraw History &nbsp<i class="mdi mdi-history menu-icon"></i> </a></li>
                </ul>
            </div>
        </li>

        <!--Loan start -->
        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#loan_facilities" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-calculator ml-0 pr-3 menu-icon"></i>
                <span class="menu-title"><b>Loan Facilities
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b></span>

                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="loan_facilities">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item">
                        <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') :  base_url('LoanController') ?>">
                            Request for Loan &nbsp <i class="mdi mdi-message-text-outline menu-icon"></i>
                        </a>
                    </li>
                </ul>
            </div>
        </li>

        <!--Loan End -->


        <!--Insurance start -->
        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#insurance_info" aria-expanded="false" aria-controls="ui-basic">
                <i class="fa fa-university ml-0 pr-3 menu-icon"></i>
                <span class="menu-title"><b>Insurance
                        <?= ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i> </div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : '')) ?>
                    </b></span>
                <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="insurance_info">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : '#' ?>">Request
                            for Insurance &nbsp <i class="mdi mdi-message-text-outline menu-icon"></i> </a></li>
                </ul>
            </div>
        </li>
        <!--Insurance End -->

        <li class="nav-item">
            <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') :  base_url('ReferMembersCtrl') ?>">
                <i class="fa fa-share mdi-24px menu-icon ml-0 mr-2"></i>
                <span class="menu-title"><b>My Network</b></span>
                <?php echo ($user_data->active_status == 0 ? '<div class="badge badge-pill badge-gradient-danger mt-1"><i class="mdi mdi-block-helper"></i>
</div>' : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>'  : ($user_data->active_status == 2 ? '<div class="badge badge-pill badge-gradient-success mt-1"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></div>' : ''))) ?>
                <i class="menu-arrow"></i>
            </a>
        </li>

        <li class="nav-item">
            <a class="nav-link" href="<?= base_url('BusinessPlanCtrl') ?>">
                <span class="menu-title"><b>Income Plan</b></span>
                <i class="menu-arrow"></i>
            </a>
        </li>


        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#ent" aria-expanded="false" aria-controls="ui-basic">
                <span class="menu-title d-flex align-items-center"><b>Entertainment</b><span class="badge badge-pill badge-gradient-warning mt-1">New</span></span>
                <i class="menu-arrow"></i>
                <i class="mdi mdi-football mdi-24px  menu-icon"></i>
            </a>
            <div class="collapse" id="ent">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item"> <a class="nav-link" href="<?= $user_data->active_status == 0  || $user_data->active_status == 2 ? base_url('InactivePage/index') : base_url('EntCtrl/cric') ?>">Cricket<i class="mdi mdi-football-helmet menu-icon"></i> </a></li>
                </ul>
            </div>
        </li>

        <br>
        <br>
        <li class="nav-item ">
            <a style="border-top:1px solid lightgrey" class="nav-link" href="<?= base_url("SupportCtrl") ?>">
                <i class="fa fa-question-circle menu-icon ml-0 mr-2"></i>
                <span class="menu-title "><b>Help & Support</b></span>
            </a>
        </li>
        <li class="nav-item ">
            <a style="border-top:1px solid lightgrey" class="nav-link">
                <i class="fa fa-phone menu-icon ml-0 mr-2"></i>
                <span class="menu-title "><b>Support Call </b><br><br> 01302-085746</span>
            </a>
        </li>

    </ul>
</nav>


<!-- main panel -->
<div class="main-panel">


    <!-- wrappper start -->
    <div class="content-wrapper">