<aside class="left-sidebar">
    <!-- Sidebar scroll-->
    <div class="scroll-sidebar">
        <!-- Sidebar navigation-->
        <nav class="sidebar-nav">

            <!-- User level Adminostrator-->
            <?php if ($userData->userlevel == 9) { ?>
                <ul id="sidebarnav">
                    <!-- Dashboard-->
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark two-column" href="view.php" aria-expanded="false"><i data-feather="home" class="feather-icon"></i><span class="hide-menu">Dashboard </span></a>

                    </li>

                    <!-- Module Shipment-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['shipment'] ?></span></li>

                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="box" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['shipment'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="courier_add.php" class="sidebar-link"><i data-feather="check" class="feather-icon" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['createshipment'] ?> </span></a></li>


                            <li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i data-feather="check" class="feather-icon"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>

                            <li class="sidebar-item"><a href="payments_gateways_courier_list.php" class="sidebar-link"><i class="fas fa-dollar-sign"></i><span class="hide-menu"> <?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- And Module Shipment-->

                    <!-- Module Consolidate-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['conso-lidate'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="package" style="color:#6610f2" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['conso-lidate'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="consolidate_add.php" class="sidebar-link"><i class="fas fa-cubes" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left11'] ?></span></a></li>

                            <li class="sidebar-item"><a href="consolidate_list.php" class="sidebar-link"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['left10'] ?></span></a></li>

                            <li class="sidebar-item"><a href="payments_gateways_consolidate_list.php" class="sidebar-link"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- End Module Consolidate-->


                    <!-- Module All report-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['left22'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="reports.php" aria-expanded="false"><i data-feather="file-text" class="feather-icon"></i><span class="hide-menu"> <?php echo $lang['left22'] ?></span></a>

                    </li>
                    <!-- End Module All report-->

                    <!-- Module Accounts receivable-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['left25'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="dollar-sign" class="feather-sm"></i><span class="hide-menu"> <?php echo $lang['left25'] ?></span></a>

                        <ul aria-expanded="false" class="collapse  first-level">
                            <li class="sidebar-item"><a href="accounts_receivable.php" class="sidebar-link"><i class="mdi mdi-clock-fast"></i><span class="hide-menu"> <?php echo $lang['accounts_receivable'] ?> </span></a></li>

                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="global_payments_gateways.php" aria-expanded="false"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- End Module Accounts receivable-->

                    <!-- Module Customer and Drives-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['left608'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="user-plus" class="feather-sm"></i><span class="hide-menu"> <?php echo $lang['left608'] ?></span></a>

                        <ul aria-expanded="false" class="collapse  first-level">
                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customers_list.php" aria-expanded="false"><i class="mdi mdi-account-multiple-plus"></i><span class="hide-menu"> <?php echo $lang['left23'] ?> </span></a></li>

                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="drivers_list.php" aria-expanded="false"><i class="mdi mdi-car"></i><span class="hide-menu"> <?php echo $lang['left24'] ?></span></a></li>
                        </ul>
                    </li>
                    <!-- End Module Customer and Drives-->


                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['tool'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="settings" class="feather-sm"></i><span class="hide-menu"><?php echo $lang['tool'] ?></span></a>

                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark sidebar-link" href="tools.php" aria-expanded="false"><i class="mdi mdi-cube-send"></i><span class="hide-menu"> <?php echo $lang['setcompany'] ?></span></a></li>

                            <!-- Module Settings shipment-->
                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="taxesadnfees.php" aria-expanded="false"><i class="fas fas fa-dolly" style="color:#9ED007"></i><span class="hide-menu"> <?php echo $lang['leftshipping'] ?></span></a></li>
                            <!-- End Module Settings shipment-->

                            <!-- Module Settings miscellanous-->
                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="offices_list.php" aria-expanded="false"><i data-feather="slack" class="feather-sm" style="color:#FF6D00"></i> <span class="hide-menu"> <?php echo $lang['left606'] ?> </span></a></li>
                            <!-- end Module Settings miscellanous-->
                        </ul>
                    </li>
                </ul>
                <!-- User level Employee-->
            <?php } else if ($userData->userlevel == 2) { ?>

                <ul id="sidebarnav">
                    <!-- Dashboard-->
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark two-column" href="view.php" aria-expanded="false"><i data-feather="home" class="feather-icon"></i><span class="hide-menu">Dashboard </span></a>

                    </li>

                    <!-- Module Shipment-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['shipment'] ?></span></li>

                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="box" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['shipment'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="courier_add.php" class="sidebar-link"><i data-feather="check" class="feather-icon" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['createshipment'] ?> </span></a></li>


                            <li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i data-feather="check" class="feather-icon"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>

                            <li class="sidebar-item"><a href="payments_gateways_courier_list.php" class="sidebar-link"><i class="fas fa-dollar-sign"></i><span class="hide-menu"> <?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- And Module Shipment-->

                    <!-- Module Consolidate-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['conso-lidate'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="package" style="color:#6610f2" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['conso-lidate'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="consolidate_add.php" class="sidebar-link"><i class="fas fa-cubes" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left11'] ?></span></a></li>

                            <li class="sidebar-item"><a href="consolidate_list.php" class="sidebar-link"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['left10'] ?></span></a></li>

                            <li class="sidebar-item"><a href="payments_gateways_consolidate_list.php" class="sidebar-link"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- End Module Consolidate-->


                    <!-- Module All report-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['left22'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="reports.php" aria-expanded="false"><i data-feather="file-text" class="feather-icon"></i><span class="hide-menu"> <?php echo $lang['left22'] ?></span></a>

                    </li>
                    <!-- End Module All report-->

                    <!-- Module Accounts receivable-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['left25'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="dollar-sign" class="feather-sm"></i><span class="hide-menu"> <?php echo $lang['left25'] ?></span></a>

                        <ul aria-expanded="false" class="collapse  first-level">
                            <li class="sidebar-item"><a href="accounts_receivable.php" class="sidebar-link"><i class="mdi mdi-clock-fast"></i><span class="hide-menu"> <?php echo $lang['accounts_receivable'] ?> </span></a></li>

                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="global_payments_gateways.php" aria-expanded="false"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- End Module Accounts receivable-->

                    <!-- Module Customer and Drives-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['left608'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="user-plus" class="feather-sm"></i><span class="hide-menu"> <?php echo $lang['left608'] ?></span></a>

                        <ul aria-expanded="false" class="collapse  first-level">
                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customers_list.php" aria-expanded="false"><i class="mdi mdi-account-multiple-plus"></i><span class="hide-menu"> <?php echo $lang['left23'] ?> </span></a></li>

                            <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="drivers_list.php" aria-expanded="false"><i class="mdi mdi-car"></i><span class="hide-menu"> <?php echo $lang['left24'] ?></span></a></li>
                        </ul>
                    </li>
                    <!-- End Module Customer and Drives-->

                </ul>


                <!-- User level Customer-->
            <?php } else if ($userData->userlevel == 1) { ?>


                <ul id="sidebarnav">
                    <!-- Dashboard-->
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark two-column" href="view.php" aria-expanded="false"><i data-feather="home" class="feather-icon"></i><span class="hide-menu">Dashboard </span></a>

                    </li>

                    <!-- Module Shipment-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['shipment'] ?></span></li>

                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="box" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['shipment'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="courier_add_client.php" class="sidebar-link"><i data-feather="check" class="feather-icon" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['createnewshiporder'] ?> </span></a></li>
                            <li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i data-feather="check" class="feather-icon"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>
                            <li class="sidebar-item"><a href="payments_gateways_courier_list.php" class="sidebar-link"><i class="fas fa-dollar-sign"></i><span class="hide-menu"> <?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- And Module Shipment-->

                    <!-- Module Consolidate-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['conso-lidate'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="package" style="color:#6610f2" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['conso-lidate'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="consolidate_list.php" class="sidebar-link"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['left10'] ?></span></a></li>

                            <li class="sidebar-item"><a href="payments_gateways_consolidate_list.php" class="sidebar-link"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

                        </ul>
                    </li>
                    <!-- End Module Consolidate-->


                    <!-- Module Customer and Recipients-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['custom_left-01'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="recipients_list.php" aria-expanded="false"><i class="mdi mdi-account-multiple-plus"></i><span class="hide-menu"> <?php echo $lang['custom_left-01'] ?></span></a>

                    </li>
                    <!-- End Module Customer and Recipients-->

                </ul>


                <!-- User level Driver-->
            <?php } else if ($userData->userlevel == 3) { ?>

                <ul id="sidebarnav">
                    <!-- Dashboard-->
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark two-column" href="view.php" aria-expanded="false"><i data-feather="home" class="feather-icon"></i><span class="hide-menu">Dashboard </span></a>

                    </li>

                    <!-- Module Shipment-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['shipment'] ?></span></li>

                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="box" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['shipment'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="courier_add.php" class="sidebar-link"><i data-feather="check" class="feather-icon" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['createshipment'] ?> </span></a></li>


                            <li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i data-feather="check" class="feather-icon"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>


                        </ul>
                    </li>
                    <!-- And Module Shipment-->

                    <!-- Module Consolidate-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['conso-lidate'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i data-feather="package" style="color:#6610f2" class="feather-icon"></i><span class="hide-menu"><?php echo $lang['conso-lidate'] ?> </span></a>
                        <ul aria-expanded="false" class="collapse first-level">

                            <li class="sidebar-item"><a href="consolidate_list.php" class="sidebar-link"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['left10'] ?></span></a></li>


                        </ul>
                    </li>
                    <!-- End Module Consolidate-->


                    <!-- Module All report-->
                    <li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['left22'] ?></span></li>
                    <li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="reports.php" aria-expanded="false"><i data-feather="file-text" class="feather-icon"></i><span class="hide-menu"> <?php echo $lang['left22'] ?></span></a>

                    </li>
                    <!-- End Module All report-->


                </ul>

            <?php } ?>
        </nav>
        <!-- End Sidebar navigation -->
    </div>
    <!-- End Sidebar scroll-->
</aside>