<div class="side-menu">
    <div class='side-menu-body'>
        <ul>
            <li class="side-menu-divider m-t-0"></li>
            
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-dashboard')){ ?>
            <li class="<?php echo e($mainSuperAdminMenu == 'dashboard' ? 'open' : ''); ?>">
                <a href="<?php echo e(asset('dashboard')); ?>">
                    <i class="icon ti ti-palette"></i>
                    <span><?php echo e(__('message.dashboard')); ?></span>
                </a>
            </li>
            <?php } ?>
           
         
            

            <!-- Accounting and Finance -->
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-account')){ ?>
                <li class="side-menu-divider m-t-10">Accounting & Finance</li>
                
                <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-bank')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'bank' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/bank')); ?>"><i class="icon ti ti-home active"></i> Banking</a>
                </li>
                <?php endif; ?>

                <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-cutomer')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'customer' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/customer')); ?>"><i class="icon fa fa-user-plus active"></i> Client/Customer</a>
                </li>
                <?php endif; ?>
                <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-vendor')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'vendor' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/vendor')); ?>"><i class="icon fa fa-user active"></i> Vendor/Suppliers</a>
                </li>
                <?php endif; ?>

                <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-item')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'item' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/item')); ?>"><i class="icon ti ti-bag active"></i> Item</a>
                </li>
                <?php endif; ?>

                

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-invoice')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'invoice' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/invoice')); ?>"><i class="icon ti ti-receipt"></i>Invoice</a>
                </li> 
                <?php endif; ?>

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-quotes')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'quotes' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/quotes')); ?>"><i class="icon ti ti-list"></i>Quotes & Performa</a>
                </li> 
                <?php endif; ?>

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-delivery-challan')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'delivery-challan' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/delivery-challan')); ?>"><i class="icon ti ti-truck"></i>Delivery Challan</a>
                </li> 
                <?php endif; ?>

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-credit-note')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'credit-note' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/credit-note')); ?>"><i class="icon fa fa-sticky-note-o"></i>Credit Note</a>
                </li> 
                <?php endif; ?>

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-order')): ?>                                      
                                    
                    <li>
                        <a class="<?php echo e($superadminSubMenu == 'purchase-order' ? 'active' : ''); ?>"
                            href="<?php echo e(asset('account/purchase-order')); ?>"><i class="icon ti ti-book active"></i> Purchase Order</a>
                    </li>                                          
                     
                <?php endif; ?>

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-debit-note')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'debit-note' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/debit-note')); ?>"><i class="icon fa fa-sticky-note-o"></i>Debit Note</a>
                </li> 
                <?php endif; ?>

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-pruchase-bill')): ?>
                <li>
                    <a class="<?php echo e($superadminSubMenu == 'purchase-bill' ? 'active' : ''); ?>"
                        href="<?php echo e(asset('account/purchase-bill')); ?>"><i class="icon fa fa-files-o"></i>Purchase Bill</a>
                </li> 
                <?php endif; ?>

                <?php if(auth()->user()->hasRole('admin') || auth()->user()->can('view-sales')): ?>
                <li  class="<?php echo e($mainSuperAdminMenu == 'master' ? 'open' : ''); ?>">
                    <a href="javascript:;">
                        <i class="icon ti ti-agenda active"></i>
                        <span>Master</span>
                    </a>
                    <ul>
                        <li>
                            <a class="<?php echo e($superadminSubMenu == 'category' ? 'active' : ''); ?>"
                                href="<?php echo e(asset('account/category')); ?>">Item Category</a>
                        </li>
            

                        <li>
                            <a class="<?php echo e($superadminSubMenu == 'unit' ? 'active' : ''); ?>"
                                href="<?php echo e(asset('account/unit')); ?>">Unit Of Measure</a>
                        </li>
                        
                                               
                                                    
                        
                    </ul>
                </li>
                <?php endif; ?>

            <?php } ?>      
             <!-- end Accounting and Finance -->

            
             <li class="side-menu-divider m-t-10">Settings, Notification & Help</li>

            <?php if(Auth::user()->hasRole('admin')): ?>
                <li class="<?php echo e($mainSuperAdminMenu == 'website-settings' ? 'open' : ''); ?>">
                    <a href="<?php echo e(asset('hrms/website-settings')); ?>">
                        <i class="icon ti ti-settings"></i>
                        <span>Website Settings</span>
                    </a>
                </li>
            <?php endif; ?>

            
            
            
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-notification')): ?>
                <li class="<?php echo e($mainSuperAdminMenu == 'notification' ? 'open' : ''); ?>">
                    <a href="<?php echo e(asset('hrms/notification')); ?>">
                        <i class="icon ti ti-bell"></i>
                        <span>Notification</span>
                    </a>
                </li>
            <?php endif; ?>
            
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-support')): ?>
                <li class="<?php echo e($mainSuperAdminMenu == 'support' ? 'open' : ''); ?>">
                    <a href="https://globalexcell.raiseaticket.com/support/#/newticket" target="_blank">
                        <i class="icon ti ti-help"></i>
                        <span>Help & Support</span>
                    </a>
                </li>
            <?php endif; ?>

            
            
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-user')){ ?>
                <li class="side-menu-divider m-t-10"><?php echo e(__('message.user_roles_permission')); ?></li>

            <li class="<?php echo e($mainSuperAdminMenu == 'users' ? 'open' : ''); ?>">
                <a href="<?php echo e(asset('users')); ?>">
                    <i class="icon fa fa-address-book-o"></i>
                    <span><?php echo e(__('message.users')); ?></span>
                </a>
            </li>
            <?php } ?>
            
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-role')){ ?>
            <li class="<?php echo e($mainSuperAdminMenu == 'roles' ? 'open' : ''); ?>">
                <a href="<?php echo e(asset('roles')); ?>">
                    <i class="icon fa fa-archive"></i>
                    <span><?php echo e(__('message.role')); ?></span>
                </a>
            </li>
            <?php } ?>
            
            <!-- ================ employee dashboard ========== -->

            <?php if(Auth::user()->hasRole('employee')): ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('view-employee-panel')): ?>
                    
                        <li class="side-menu-divider m-t-0"></li>
                        
                        
                        <li class="<?php echo e($mainSuperAdminMenu == 'dashboard' ? 'open' : ''); ?>">
                            <a href="<?php echo e(asset('dashboard')); ?>">
                                <i class="icon ti ti-palette"></i>
                                <span><?php echo e(__('message.dashboard')); ?></span>
                            </a>
                        </li>
                <?php endif; ?>          
                        <li class="<?php echo e($mainSuperAdminMenu == 'employee-reimbursements' ? 'open' : ''); ?>">
                            <a href="<?php echo e(asset('employee/employee-reimbursements')); ?>">
                                <i class="icon ti ti-receipt"></i>
                                <span>Reimbursements</span>
                            </a>
                        </li>
                
            <?php endif; ?>
        </ul>

        
        
            
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\account_admin\resources\views/components/side-menu.blade.php ENDPATH**/ ?>