    <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 -->
                 
                    <!-- * profile box -->
                    <!-- balance -->
                 
                    <!-- * balance -->

                    <!-- action group -->

                    <!-- * 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>';
                     }
                     ?>
                     <?php
                     $allowed = [0, 11];

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

                    if (array_intersect($allowed, $admin_count)) 
                     {
                        echo '
                         <li>
                            <a href="#admin" class="item" id="admin">
                                <div class="icon-box bg-primary">
                                    <ion-icon name="apps-outline"></ion-icon>
                                </div>
                                <div class="in">
                                    Admin
                                </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>