<!-- Left menu sidebar and Main sidebar -->
<!-- <div class="sidebar sidebar-main sidebar-expand-lg"> -->
<div class="sidebar sidebar-main sidebar-expand-lg sidebar-main-resized">

    <!-- Sidebar content -->
    <div class="sidebar-content">

        <!-- POS selection -->
        <ul class="nav nav-sidebar" data-nav-type="accordion">

            <!-- <div class="p-2">
                <div class="input-group">
                    <button type="button" class="btn btn-light"><i class="ph-buildings"></i> &nbsp; POS</button>
                    <select class="form-control select posSelector" data-width="1%">
                        <option value="AZ">Arizona</option>
                        <option value="CO">Colorado</option>
                        <option value="ID">Idaho</option>
                        <option value="WY">Wyoming</option>
                    </select>
                </div>
            </div> -->

            <!-- <li class="nav-item">
                <a href="javascript:void(0)" class="nav-link">
                    <i class="ph-buildings" style="font-style: normal">
                        <p class="fs-base">POS</p>
                    </i>
                    <span style="width: 100%;">
                        <div class="input-group">
                            <select class="form-control select posSelector" data-minimum-results-for-search="Infinity">
                                <option value="AZ" selected>Arizona</option>
                                <option value="CO">Colorado</option>
                                <option value="ID">Idaho</option>
                                <option value="WY">Wyoming</option>
                            </select>
                        </div>
                    </span>
                </a>
            </li> -->

        </ul>
        <!-- POS selection -->

        <hr style="margin-top: -4px;">
        <!-- Sidebar header -->
        <!-- <div class="sidebar-section" style="margin-top: -10px;"> -->
        <div class="sidebar-section mt-1">
            <div class="sidebar-section-body d-flex">
                <div class="text-uppercase opacity-75 sidebar-resize-hide flex-grow-1 my-auto" style="margin-left: 10px;"><?= $translate["principal_menu"]; ?></div>
                <div>
                    <button type="button" class="btn btn-icon btn-light btn-sm rounded-pill border-transparent sidebar-mobile-main-toggle d-lg-none">
                        <i class="ph-x"></i>
                    </button>
                </div>
            </div>
        </div>
        <!-- /sidebar header -->

        <!-- Main navigation -->
        <div class="sidebar-section">
            <ul class="nav nav-sidebar" data-nav-type="accordion">

                <!-- <li class="nav-item-divider"></li> -->

                <?php
                if ($ent_subscription_status !== "canceled" || $_SESSION["user_profile"] == "ROOT") { ?>

                    <li class="nav-item">
                        <a href="home" class="nav-link">
                            <i class="ph-house"></i>
                            <span><?= $translate["home"]; ?></span>
                        </a>
                    </li>

                <?php } ?>


                <?php
                if ($_SESSION["user_profile"] == "ROOT" || $_SESSION["user_profile"] == "Owner") { ?>

                    <li class="nav-item">
                        <a href="dashboard" class="nav-link">
                            <i class="ph-chart-line-up"></i>
                            <span><?= $translate["statistics"]; ?></span>
                        </a>
                    </li>

                <?php } ?>


                <?php
                if ($ent_subscription_status !== "canceled" || $_SESSION["user_profile"] == "ROOT") { ?>

                    <li class="nav-item">
                        <a href="sell" class="nav-link">
                            <i class="ph-shopping-cart-simple"></i>
                            <span><?= $translate["sell"]; ?></span>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="sales" class="nav-link">
                            <i class="ph-handbag"></i>
                            <span><?= $translate["sales_list"]; ?></span>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="customers" class="nav-link">
                            <i class="ph-users"></i>
                            <span><?= $translate["customers"]; ?></span>
                        </a>
                    </li>

                <?php } ?>

                <?php
                if ($ent_subscription_status !== "canceled") {

                    if ($_SESSION["user_profile"] == "Waiter" || $_SESSION["user_profile"] == "Cashier") { ?>

                        <li class="nav-item">
                            <a href="products" class="nav-link">
                                <i class="ph-circles-four"></i>
                                <span><?= $translate["products"]; ?></span>
                            </a>
                        </li>

                    <?php }

                    if ($_SESSION["user_profile"] == "Cashier") { ?>

                        <li class="nav-item">
                            <a href="daily-expense" class="nav-link">
                                <i class="ph-currency-circle-dollar"></i>
                                <span><?= $translate["daily_expenses"]; ?></span>
                            </a>
                        </li>

                <?php }
                } ?>


                <?php
                if ($_SESSION["user_profile"] == "ROOT" || $_SESSION["user_profile"] == "Owner" || $_SESSION["user_profile"] == "Manager") {

                    if ($ent_subscription_status !== "canceled" || $_SESSION["user_profile"] == "ROOT") { ?>

                        <li class="nav-item nav-item-submenu">

                            <a href="javascript:void(0)" class="nav-link">
                                <i class="ph-circles-four"></i>
                                <span><?= $translate["products_management"]; ?></span>
                            </a>
                            <ul class="nav-group-sub collapse">
                                <li class="nav-item"><a href="categories" class="nav-link"><?= $translate["categories"]; ?></a></li>
                                <li class="nav-item"><a href="products" class="nav-link"><?= $translate["products"]; ?></a></li>
                                <li class="nav-item"><a href="stock-adjustment" class="nav-link"><?= $translate["adjustments_history"]; ?></a></li>
                                <li class="nav-item"><a href="providers" class="nav-link"><?= $translate["providers"]; ?></a></li>
                                <li class="nav-item"><a href="purchases" class="nav-link"><?= $translate["purchases"]; ?></a></li>
                            </ul>
                        </li>

                        <li class="nav-item nav-item-submenu">
                            <a href="javascript:void(0)" class="nav-link">
                                <i class="ph-currency-circle-dollar"></i>
                                <span><?= $translate["expenses"]; ?></span>
                            </a>
                            <ul class="nav-group-sub collapse">
                                <li class="nav-item"><a href="daily-expense" class="nav-link"><?= $translate["daily_expenses"]; ?></a></li>
                                <li class="nav-item"><a href="fixed-expense" class="nav-link"><?= $translate["fixed_expenses"]; ?></a></li>
                            </ul>
                        </li>

                    <?php } ?>

                    <?php
                    if ($ent_subscription_status !== "canceled" || $_SESSION["user_profile"] == "ROOT" || $_SESSION["user_profile"] == "Owner") { ?>

                        <li class="nav-item nav-item-submenu">

                            <a href="javascript:void(0)" class="nav-link">
                                <i class="icon-file-stats"></i>
                                <span><?= $translate["reports"]; ?></span>
                            </a>
                            <ul class="nav-group-sub collapse">
                                <li class="nav-item"><a href="sales-report" class="nav-link"><?= $translate["sales"]; ?></a></li>
                                <li class="nav-item"><a href="products-report" class="nav-link"><?= $translate["sold_products"]; ?></a></li>
                                <!-- <li class="nav-item"><a href="payments-report" class="nav-link"><?= $translate["payments"]; ?></a></li> -->
                                <!-- <li class="nav-item"><a href="purchases-report" class="nav-link"><?= $translate["purchases"]; ?></a></li> -->
                                <!-- <li class="nav-item"><a href="expenses-report" class="nav-link"><?= $translate["expenses"]; ?></a></li> -->
                            </ul>
                        </li>

                    <?php } ?>

                    <!-- <li class="nav-item-divider"></li> -->

                    <?php
                    if ($ent_subscription_status !== "canceled" || $_SESSION["user_profile"] == "ROOT") { ?>


                        <li class="nav-item">
                            <a href="monitoring" class="nav-link">
                                <i class="ph-eye"></i>
                                <span><?= $translate["monitoring"]; ?></span>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="users" class="nav-link">
                                <i class="ph-user"></i>
                                <span><?= $translate["users"]; ?></span>
                            </a>
                        </li>

                        <!-- Settings -->
                        <li class="nav-item-header">
                            <div class="text-uppercase fs-sm lh-sm opacity-50 sidebar-resize-hide"><?= $translate["settings"]; ?></div>
                            <i class="ph-dots-three sidebar-resize-show"></i>
                        </li>

                        <?php
                        if ($_SESSION["user_profile"] == "ROOT" || $_SESSION["user_profile"] == "Owner") { ?>

                            <li class="nav-item">
                                <a href="enterprise" class="nav-link">
                                    <i class="ph-buildings"></i>
                                    <span><?= $translate["enterprise"]; ?></span>
                                </a>
                            </li>

                        <?php } ?>

                        <li class="nav-item">
                            <a href="branches" class="nav-link">
                                <i class="ph-storefront"></i>
                                <span><?= $translate["branches"]; ?></span>
                            </a>
                        </li>

                        <?php if ($posInfo['pos_country'] == "DO") { ?>
                            <li class="nav-item">
                                <a href="tax-receipt" class="nav-link">
                                    <i class="ph-newspaper"></i>
                                    <span><?= $translate["tax_receipt"]; ?></span>
                                </a>
                            </li>
                        <?php } ?>

                    <?php } ?>

                <?php } ?>

                <?php
                if ($_SESSION["user_profile"] == "ROOT" || $_SESSION["user_profile"] == "Owner") { ?>

                    <!-- Billing -->
                    <li class="nav-item-header">
                        <div class="text-uppercase fs-sm lh-sm opacity-50 sidebar-resize-hide"><?= $translate["billing"]; ?></div>
                        <i class="ph-dots-three sidebar-resize-show"></i>
                    </li>

                    <li class="nav-item">
                        <a href="billing" class="nav-link">
                            <i class="ph ph-receipt"></i>
                            <span><?= $translate["billing"]; ?></span>
                        </a>
                    </li>

                <?php } ?>

                <?php
                if ($_SESSION["user_profile"] == "ROOT") { ?>

                    <!-- Administration -->
                    <li class="nav-item-header">
                        <div class="text-uppercase fs-sm lh-sm opacity-50 sidebar-resize-hide"><?= $translate["administration"]; ?></div>
                        <i class="ph-dots-three sidebar-resize-show"></i>
                    </li>
                    <li class="nav-item nav-item-submenu">
                        <a href="javascript:void(0)" class="nav-link">
                            <i class="ph-gear-six"></i>
                            <span><?= $translate["administration"]; ?></span>
                        </a>
                        <ul class="nav-group-sub collapse">
                            <li class="nav-item"><a href="enterprises" class="nav-link"><?= $translate["enterprises"]; ?></a></li>
                            <li class="nav-item"><a href="branches-adm" class="nav-link"><?= $translate["branches"]; ?></a></li>
                            <li class="nav-item"><a href="sale-types" class="nav-link"><?= $translate["sale_types"]; ?></a></li>
                            <li class="nav-item"><a href="payment-types" class="nav-link"><?= $translate["payment_types"]; ?></a></li>
                            <li class="nav-item"><a href="invoices" class="nav-link"><?= $translate["invoices"]; ?></a></li>
                            <!-- <li class="nav-item"><a href="distributors" class="nav-link"><?= $translate["distributors"]; ?></a></li> -->
                        </ul>
                    </li>

                    <!-- Administration -->
                    <li class="nav-item-header">
                        <div class="text-uppercase fs-sm lh-sm opacity-50 sidebar-resize-hide">Stripe Management</div>
                        <i class="ph-dots-three sidebar-resize-show"></i>
                    </li>
                    <li class="nav-item nav-item-submenu">
                        <a href="javascript:void(0)" class="nav-link">
                            <i class="ph-currency-circle-dollar"></i>
                            <span>Stripe</span>
                        </a>
                        <ul class="nav-group-sub collapse">
                            <li class="nav-item"><a href="stripe-products-prices" class="nav-link">Products & Prices</a></li>
                            <li class="nav-item"><a href="stripe-subscriptions" class="nav-link">Subscriptions</a></li>
                            <li class="nav-item"><a href="stripe-customers" class="nav-link">Customers</a></li>
                            <li class="nav-item"><a href="stripe-invoices" class="nav-link">Invoices</a></li>
                        </ul>
                    </li>

                <?php } ?>

                <!-- <li class="nav-item-divider"></li> -->

                <!-- <li class="nav-item nav-item-submenu">
                    <a href="javascript:void(0)" class="nav-link">
                        <i class="ph-users-three"></i>
                        <span>Resellers</span>
                    </a>
                    <ul class="nav-group-sub collapse">
                        <li class="nav-item"><a href="enterprises-res" class="nav-link">Enterprises</a></li>
                        <li class="nav-item"><a href="branches-res" class="nav-link">Branches</a></li>
                        <li class="nav-item"><a href="invoices-res" class="nav-link">Invoices</a></li>
                    </ul>
                </li> -->


            </ul>
        </div>
        <!-- /main navigation -->

    </div>
    <!-- /sidebar content -->

</div>
<!-- /main sidebar -->