<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Sidebar</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.1.3/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
</head>
<?php
$pageName = basename($_SERVER['SCRIPT_NAME']);
?>

<body>
    <aside id="sidebar" class="js-sidebar">
        <div class="h-100">
            <div class="sidebar-logo">
                <a href="#">IME Plus App</a>
            </div>
            <ul class="sidebar-nav">
                <li class="sidebar-header">
                <?php
    $b_id = $browserId;
    $showSidebar = false; // Initialize a variable to determine if the sidebar should be shown.
    $showSidebarProduct = false;
    $showSidebarBuy = false;
    $showSidebarCustomer = false;
    $showSidebarbanking = false;
    $showSidebarExpense = false;
    $showSidebarStaff = false;
    $showSidebarDetail = false;
    $showSidebarCargo = false;
    $showSidebarDashboard = false;
    $showSidebarSell_lk = false;
    $showSidebarSell_view = false;
    $showSidebarAccount = false;

    $sql = "SELECT * FROM ".$user_database." WHERE browser_id='$b_id'";
    $result = $connection->query($sql);
    if ($result && $result->num_rows > 0) {
        while ($row = $result->fetch_assoc()) {
            $seller = $row['user_name'];
            $s_1 = $row['s_1'];
            $s_2 = $row['s_2'];
            $s_3 = $row['s_3'];
            $s_4 = $row['s_4'];
            $s_5 = $row['s_5'];
            $s_6 = $row['s_6'];
            $s_7 = $row['s_7'];
            $s_8 = $row['s_8'];
            $s_9 = $row['s_9'];
            $s_10 = $row['s_10'];
            $sell_lk = $row['sell_lk'];
            $sell_view = $row['sell_view'];
            $sell_view = $row['sell_view'];
            echo 'User Name: '.$seller;
            
            // Check if s_1 is not 0 to display the sidebar.
            if ($sell_lk != 'ပိတ်') {
                $showSidebarSell_lk = true;
            }

            if ($sell_view != 'ပိတ်') {
                $showSidebarSell_view = true;
            }

            if ($s_1 != 'ပိတ်') {
                $showSidebar = true;
            }

            if ($s_2 != 'ပိတ်') {
                $showSidebarProduct = true;
            }

            if ($s_3 != 'ပိတ်') {
                $showSidebarBuy = true;
            }

            if ($s_4 != 'ပိတ်') {
                $showSidebarCustomer = true;
            }

            if ($s_5 != 'ပိတ်') {
                $showSidebarbanking = true;
            }

            if ($s_6 != 'ပိတ်') {
                $showSidebarExpense = true;
            }

            if ($s_7 != 'ပိတ်') {
                $showSidebarStaff = true;
            }

            if ($s_8 != 'ပိတ်') {
                $showSidebarDetail = true;
            }

            if ($s_9 != 'ပိတ်') {        
                $showSidebarCargo = true;
            }

            if ($s_9 != 'ပိတ်') {        
                $showSidebarDashboard = true;
            }

            if ($s_10 != 'ပိတ်') {        
                $showSidebarAccount= true;
            }
        }
    }
?>
        
                <li class="sidebar-item <?php echo ($pageName == 'sell_ll.php' || $pageName == 'sell_lk.php' || $pageName == 'sell_view.php') ? 'menu-open' : '';?>">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'sell_ll.php' || $pageName == 'sell_lk.php' || $pageName == 'sell_view.php') ? '' : 'collapsed'; ?>" data-bs-target="#pages" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'sell_ll.php' || $pageName == 'sell_lk.php' || $pageName == 'sell_view.php') ? 'true' : 'false'; ?>">
                        <i class="fa-solid fa-cart-shopping"></i>
                        <b>အရောင်း</b>
                    </a>

                    <ul id="pages" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'sell_ll.php' || $pageName == 'sell_lk.php' || $pageName == 'sell_view.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="sell_ll.php" class="sidebar-link <?php echo $pageName == 'sell_ll.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'sell_ll.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;လက်လီ</i>
                            </a>
                        </li>

                        <?php if ($showSidebarSell_lk): ?>
                        <li class="sidebar-item">
                            <a href="sell_lk.php" class="sidebar-link <?php echo $pageName == 'sell_lk.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'sell_lk.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;လက်ကား</i>
                            </a>
                        </li>
                        <?php endif; ?>
                        
                        <?php if ($showSidebarSell_view): ?>
                        <li class="sidebar-item">
                            <a href="sell_view.php" class="sidebar-link <?php echo $pageName == 'sell_view.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'sell_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ရောင်းစာရင်း</i>
                            </a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </li>
          

                <!-- Sidebar for Product List (ပစ္စည်းစာရင်း) -->
                <?php if ($showSidebarProduct): ?>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'product_rate.php' ||$pageName == 'product_catagories.php' || $pageName == 'product_add_new.php' || $pageName == 'product_refill.php' || $pageName == 'product_damage.php' || $pageName == 'product_view.php' || $pageName == 'product_change.php' || $pageName == 'product_accept.php') ? '' : 'collapsed'; ?>" data-bs-target="#product" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'product_rate.php' ||$pageName == 'product_catagories.php' || $pageName == 'product_add_new.php' || $pageName == 'product_refill.php'|| $pageName == 'product_damage.php'|| $pageName == 'product_view.php' || $pageName == 'product_change.php'|| $pageName == 'product_accept.php') ? 'true' : 'false'; ?>">
                        <i class="fa-solid fa-database"></i>
                        <b>ပစ္စည်းစာရင်း</b>
                    </a>
                    <ul id="product" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'product_rate.php' ||$pageName == 'product_catagories.php' || $pageName == 'product_add_new.php' || $pageName == 'product_refill.php' || $pageName == 'product_damage.php'||  $pageName == 'product_view.php' || $pageName == 'product_change.php'|| $pageName == 'product_accept.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                       
                        <li class="sidebar-item">
                            <a href="product_rate.php" class="sidebar-link <?php echo $pageName == 'product_rate.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_rate.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ငွေဈေးနှုန်း</i>
                            </a>
                        </li>

                        <li class="sidebar-item">
                            <a href="product_catagories.php" class="sidebar-link <?php echo $pageName == 'product_catagories.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_catagories.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;အမျိုးအစားခွဲရန်</i>
                            </a>
                        </li>

                        <li class="sidebar-item">
                            <a href="product_add_new.php" class="sidebar-link <?php echo $pageName == 'product_add_new.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_add_new.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;အသစ်ထည့်ရန်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="product_refill.php" class="sidebar-link <?php echo $pageName == 'product_refill.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_refill.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဖြည့်ရန်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="product_damage.php" class="sidebar-link <?php echo $pageName == 'product_damage.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_damage.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ပျက်စီးစာရင်း</i>
                            </a>
                        </li>

                        <li class="sidebar-item">
                            <a href="product_change.php" class="sidebar-link <?php echo $pageName == 'product_change.php' ? 'active' : '';?>">
                                <i‌ class="fa <?php echo $pageName == 'product_change.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဗူး-ကဒ်-ဖာ</i>
                            </a>
                        </li>


                        <li class="sidebar-item">
                            <a href="product_view.php" class="sidebar-link <?php echo $pageName == 'product_view.php' ? 'active' : '';?>">
                                <i‌ class="fa <?php echo $pageName == 'product_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ပစ္စည်းစာရင်း</i>
                            </a>
                        </li>

        

                        <li class="sidebar-item">
                            <a href="product_accept.php" class="sidebar-link <?php echo $pageName == 'product_accept.php' ? 'active' : '';?>">
                                <i‌ class="fa <?php echo $pageName == 'product_accept.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ပစ္စည်းလက်ခံ</i>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>

                <!-- ပစ္စည်းဝယ်စာရင်း -->
                <?php if ($showSidebarBuy): ?>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'product_buy_shop.php' || $pageName == 'product_payment_shop.php' || $pageName == 'product_refill_view.php') ? '' : 'collapsed'; ?>" data-bs-target="#product_buy" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'product_buy_shop.php' || $pageName == 'product_payment_shop.php' || $pageName == 'product_refill_view.php') ? 'true' : 'false'; ?>">
                    <i class="fa-solid fa-shop"></i>
                        <b>ပစ္စည်းဝယ်စာရင်း</b>
                    </a>
                    <ul id="product_buy" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'product_buy_shop.php' || $pageName == 'product_payment_shop.php' || $pageName == 'product_refill_view.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="product_buy_shop.php" class="sidebar-link <?php echo $pageName == 'product_buy_shop.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_buy_shop.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ပစ္စည်းမှာယူမည့်ဆိုင်</i>
                            </a>
                        </li>

                        <li class="sidebar-item">
                            <a href="product_payment_shop.php" class="sidebar-link <?php echo $pageName == 'product_payment_shop.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_payment_shop.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ပစ္စည်းဖိုးငွေချေရန်</i>
                            </a>
                        </li>

                        <li class="sidebar-item">
                            <a href="product_refill_view.php" class="sidebar-link <?php echo $pageName == 'product_refill_view.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'product_refill_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ပစ္စည်းဖြည့်စာရင်း</i>
                            </a>
                        </li>

                    </ul>
                </li>
                <?php endif; ?>

                   

                <!-- ဖောက်သည်စာရင်း -->
                <?php if ($showSidebarCustomer): ?>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'customer_add.php' || $pageName == 'customer_payment.php' || $pageName == 'customer_view.php' || $pageName == 'customer_voucher.php') ? '' : 'collapsed'; ?>" data-bs-target="#customer" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'customer_add.php' || $pageName == 'customer_payment.php' || $pageName == 'customer_view.php'|| $pageName == 'customer_voucher.php' ) ? 'true' : 'false'; ?>">
                        <i class="fa-solid fa-people-arrows"></i>
                        <b>ဖောက်သည်</b>
                    </a>
                    <ul id="customer" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'customer_add.php' || $pageName == 'customer_payment.php' || $pageName == 'customer_view.php' || $pageName == 'customer_voucher.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="customer_add.php" class="sidebar-link <?php echo $pageName == 'customer_add.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'customer_add.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;အသစ်ထည့်ရန်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="customer_payment.php" class="sidebar-link <?php echo $pageName == 'customer_payment.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'customer_payment.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ငွေချေရန်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="customer_view.php" class="sidebar-link <?php echo $pageName == 'customer_view.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'customer_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဝယ်စာရင်း</i>
                            </a>
                        </li>

                        <li class="sidebar-item">
                            <a href="customer_voucher.php" class="sidebar-link <?php echo $pageName == 'customer_voucher.php' ? 'active' : '';?>">
                                <i‌ class="fa <?php echo $pageName == 'customer_voucher.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ပေါင်ချာစာရင်း</i>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>

                 <!-- ဘဏ်စာရင်း -->
                 <?php if ($showSidebarbanking): ?>
                 <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'banking.php' || $pageName == 'banking_refill.php') ? '' : 'collapsed'; ?>" data-bs-target="#bank" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'banking.php' || $pageName == 'banking_refill.php') ? 'true' : 'false'; ?>">
                        <i class="fa-solid fa-building-columns"></i>
                        <b>ဘဏ်</b>
                    </a>
                    <ul id="bank" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'banking.php' || $pageName == 'banking_refill.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="banking.php" class="sidebar-link <?php echo $pageName == 'banking.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'banking.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဘဏ်အသစ်ဖွင့်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="banking_refill.php" class="sidebar-link <?php echo $pageName == 'banking_refill.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'banking_refill.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဘဏ်ငွေသွင်းရန်</i>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>

                <!-- အသုံးစရိတ် -->
                <?php if ($showSidebarExpense): ?>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'expense_daily.php' || $pageName == 'expense_account.php' || $pageName == 'expense_view.php') ? '' : 'collapsed'; ?>" data-bs-target="#expense" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'expense_daily.php' || $pageName == 'expense_account.php' || $pageName == 'expense_view.php') ? 'true' : 'false'; ?>">
                    <i class="fa-solid fa-money-bill"></i>
                        <b>အသုံးစရိတ်</b>
                    </a>
                    <ul id="expense" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'expense_daily.php' || $pageName == 'expense_account.php' || $pageName == 'expense_view.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="expense_daily.php" class="sidebar-link <?php echo $pageName == 'expense_daily.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'expense_daily.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;အသုံးစရိတ်ထည့်ရန်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="expense_account.php" class="sidebar-link <?php echo $pageName == 'expense_account.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'expense_account.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;အကောင့် ဖွင့်ရန်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="expense_view.php" class="sidebar-link <?php echo $pageName == 'expense_view.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'expense_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;အသုံးစရိတ်စာရင်း</i>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>

                <!-- ဝန်ထမ်းစာရင်း -->
                <?php if ($showSidebarStaff): ?>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'staff_add.php' || $pageName == 'staff_role.php') ? '' : 'collapsed'; ?>" data-bs-target="#staff" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'staff_add.php' || $pageName == 'staff_role.php') ? 'true' : 'false'; ?>">
                        <i class="fa-regular fa-address-book"></i>
                        <b>ဝန်ထမ်း</b>
                    </a>
                    <ul id="staff" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'staff_add.php' || $pageName == 'staff_role.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="staff_add.php" class="sidebar-link <?php echo $pageName == 'staff_add.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'staff_add.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဝန်ထမ်းသစ်ထည့်ရန်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="staff_role.php" class="sidebar-link <?php echo $pageName == 'staff_role.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'staff_role.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;role သတ်မှတ်ရန်</i>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>

                <!-- စာရင်းချုပ် -->
                <?php if ($showSidebarDetail): ?>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'detail_day_view.php' || $pageName == 'detail_month_view.php' || $pageName == 'detail_year_view.php') ? '' : 'collapsed'; ?>" data-bs-target="#detail" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'detail_day_view.php' || $pageName == 'detail_month_view.php' || $pageName == 'detail_year_view.php') ? 'true' : 'false'; ?>">
                        <i class="fa-solid fa-file-lines pe-2"></i>
                        <b>စာရင်းချုပ်</b>
                    </a>
                    <ul id="detail" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'detail_day_view.php' || $pageName == 'detail_month_view.php' || $pageName == 'detail_year_view.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="detail_day_view.php" class="sidebar-link <?php echo $pageName == 'detail_day_view.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'detail_day_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ရက်ချုပ်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="detail_month_view.php" class="sidebar-link <?php echo $pageName == 'detail_month_view.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'detail_month_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;လချုပ်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="detail_year_view.php" class="sidebar-link <?php echo $pageName == 'detail_year_view.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'detail_year_view.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;နှစ်ချုပ်</i>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>

                <!-- ဂိုဒေါင်စာရင်း -->
                <?php if ($showSidebarCargo): ?>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'cargo.php'  ) ? '' : 'collapsed'; ?>" data-bs-target="#cargo" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'cargo.php'  ) ? 'true' : 'false'; ?>">
                    <i class="fa-solid fa-truck"></i>
                        <b>ဂိုဒေါင်</b>
                    </a>

                    <ul id="cargo" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'cargo.php'  ) ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="cargo.php" class="sidebar-link <?php echo $pageName == 'cargo.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'cargo.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဂိုဒေါင်သစ်ဖွင့်ရန်</i>
                            </a>
                    </li>


                    </ul>
                </li>
                <?php endif; ?>

                <!-- Account -->
                <?php if ($showSidebarAccount): ?>
                    <li class="sidebar-item">
                    <a href="#" class="sidebar-link <?php echo ($pageName == 'account_user.php' || $pageName == 'account_cargo.php') ? '' : 'collapsed'; ?>" data-bs-target="#account" data-bs-toggle="collapse" aria-expanded="<?php echo ($pageName == 'staff_add.php' || $pageName == 'staff_role.php') ? 'true' : 'false'; ?>">
                    <i class="fa-solid fa-user"></i>
                        <b>Account</b>
                    </a>
                    <ul id="account" class="sidebar-dropdown list-unstyled collapse <?php echo ($pageName == 'account_user.php' || $pageName == 'account_cargo.php') ? 'show' : ''; ?>" data-bs-parent="#sidebar">
                        <li class="sidebar-item">
                            <a href="account_user.php" class="sidebar-link <?php echo $pageName == 'account_user.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'account_user.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဆိုင်အကောင့်</i>
                            </a>
                        </li>
                        <li class="sidebar-item">
                            <a href="account_cargo.php" class="sidebar-link <?php echo $pageName == 'account_cargo.php' ? 'active' : '';?>">
                                <i class="fa <?php echo $pageName == 'account_cargo.php' ? 'fa-solid fa-circle' : 'fa-regular fa-circle'; ?>" style="margin-left:10px;">&nbsp;ဂိုဒေါင်အကောင့်</i>
                            </a>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>



                <!-- Dashboard -->
                <?php if ($showSidebarDashboard): ?>
                <li class="sidebar-item">
                    <a href="dashboard.php" class="sidebar-link">
                        <i class="fa-solid fa-list pe-2"></i>
                        Dashboard
                    </a>
                </li>
                <?php endif; ?>

                


                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                    <i class="fa-solid fa-baht-sign"></i>
                        ငွေဈေးနှုန်း
                    </a>
                </li>

                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                    <i class="fa-solid fa-globe"></i>
                        သတင်းစုံ
                    </a>
                </li>
            </ul>
        </div>
    </aside>
</body>
</html>
