    <div class="modal fade panelbox panelbox-left" id="sidebarPanel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-body p-0">
                    <!-- profile box -->
                    <div class="profileBox pt-2 pb-2">
                        <div class="image-wrapper">
                            <img src="assets/img/sample/avatar/avatar1.jpg" alt="image" class="imaged  w36">
                        </div>
                        <div class="in">
                            <strong>Sebastian Doe</strong>
                            <div class="text-muted">4029209</div>
                        </div>
                        <a href="#" class="btn btn-link btn-icon sidebar-close" data-dismiss="modal">
                            <ion-icon name="close-outline"></ion-icon>
                        </a>
                    </div>
                    <!-- * profile box -->
                    <!-- balance -->
                    <div class="sidebar-balance">
                        <div class="listview-title">Balance</div>
                        <div class="in">
                            <h1 class="amount">$ 2,562.50</h1>
                        </div>
                    </div>
                    <!-- * balance -->

                    <!-- action group -->
                    <div class="action-group">
                        <a href="app-index.html" class="action-button">
                            <div class="in">
                                <div class="iconbox">
                                    <ion-icon name="add-outline"></ion-icon>
                                </div>
                                Deposit
                            </div>
                        </a>
                        <a href="app-index.html" class="action-button">
                            <div class="in">
                                <div class="iconbox">
                                    <ion-icon name="arrow-down-outline"></ion-icon>
                                </div>
                                Withdraw
                            </div>
                        </a>
                        <a href="app-index.html" class="action-button">
                            <div class="in">
                                <div class="iconbox">
                                    <ion-icon name="arrow-forward-outline"></ion-icon>
                                </div>
                                Send
                            </div>
                        </a>
                        <a href="app-cards.html" class="action-button">
                            <div class="in">
                                <div class="iconbox">
                                    <ion-icon name="card-outline"></ion-icon>
                                </div>
                                My Cards
                            </div>
                        </a>
                    </div>
                    <!-- * action group -->

                    <!-- menu -->
                    <div class="listview-title mt-1">Menu</div>
                    <ul class="listview flush transparent no-line image-listview">
                    <?php
                     $allowed = [0, 2, 4, 5, 6, 7];

                        if (array_intersect($allowed, $acc_count)) 
                     {
                        echo '
                        <li>
                            <a href="#accounts" class="item" id="myaccounts">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="pie-chart-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Accounts
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                    <?php
                     $allowed = [0, 2, 4, 5, 6, 7, 11];

                    if (array_intersect($allowed, $inv_count)) 
                     {
                        echo '
                        <li>
                            <a href="#inventory" class="item" id="inventory">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="document-text-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Inventory
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                     <?php
                     $allowed = [0, 2, 4, 5, 6, 7, 11];

                    if (array_intersect($allowed, $cust_count)) 
                     {
                        echo '
                         <li>
                            <a href="#customers" class="item" id="customers">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="card-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Customers
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                      <?php
                     $allowed = [0, 2, 4, 5, 6, 7, 11];

                    if (array_intersect($allowed, $supp_count)) 
                     {
                        echo '
                     <li>
                            <a href="#supplier" class="item" id="supplier">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="chatbubble-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Suppliers
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                       
                    
                    </ul>
                    <!-- * menu -->

                    <!-- others -->
                    <div class="listview-title mt-1">Settings</div>
                    <ul class="listview flush transparent no-line image-listview">
                    <?php
                     $allowed = [0,11];

                    if (array_intersect($allowed, $ledg_count)) 
                     {
                        echo '
                        <li>
                            <a href="#accountsledger" class="item">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="settings-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Chart of Accounts
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                     <?php
                     $allowed = [0,  11];

                    if (array_intersect($allowed, $pdt_count)) 
                     {
                        echo '
                        <li>
                            <a href="#product_list_b" class="item" id="product_list_b">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="chatbubble-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Products
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                     <?php
                     $allowed = [0, 11];

                    if (array_intersect($allowed, $perm_count)) 
                     {
                        echo '
                         <li>
                            <a href="#permissions" class="item" id="permissions">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="apps-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Permissions
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                     
                     <?php
                     $allowed = [0,  11];

                    if (array_intersect($allowed, $cshAdj_count)) 
                     {
                        echo '
                         <li>
                            <a href="" class="item opencashadjModal">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="apps-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Account Adjustement
                                </div>
                            </a>
                        </li>';
                     }
                     ?>
                         
                        <li>
                            <a href="" class="item" id="logoutBtn">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="log-out-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Log out
                                </div>
                            </a>
                        </li>
                    </ul>
                    <!-- * others -->

                   

                </div>
            </div>
        </div>
    </div>