<div class="side-menu">
    <div class='side-menu-body'>
        <ul>
            <li class="side-menu-divider m-t-0"></li>
            <li class="text-capitalize px-3 ">
                <h5 class="">
                    <?php if(Auth::user()->hasRole('admin')): ?>
                        <?php echo e(Auth::user()->name); ?>

                    <?php else: ?>
                        <?php echo e(Auth::user()->organization); ?>

                    <?php endif; ?>
                </h5>
            </li>
            
            <li class="<?php echo e($mainSuperAdminMenu == 'dashboard' ? 'open' : ''); ?>">
                <a href="<?php echo e(asset('dashboard')); ?>">
                    <i class="icon fa fa-globe"></i>
                    <span><?php echo e(__('message.dashboard')); ?></span>
                </a>
            </li>
            <hr class="m-0 py-1">
          
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-module')): ?>
            <li class="<?php echo e($mainSuperAdminMenu == 'location' ? 'active' : ''); ?>">
                <a class="<?php echo e($superadminSubMenu == 'location-list' ? 'active' : ''); ?>"
                    href="<?php echo e(asset('location-list')); ?>">
                    <i class="icon fa fa-map-marker active"></i>Location
                </a>
            </li> 
           <?php endif; ?>
           <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-module')): ?>
            <li class="<?php echo e($mainSuperAdminMenu == 'user' ? 'open' : ''); ?>">
                <a href="<?php echo e(asset('user/user-list')); ?>">
                    <i class="icon fa fa-user-circle-o"></i>
                    <span><?php echo e(__('message.users')); ?></span>
                </a>
            </li>
            <?php endif; ?>
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-module')): ?>
            <li class="<?php echo e($mainSuperAdminMenu == 'usher' ? 'open' : ''); ?>">
                <a href="<?php echo e(asset('usher-list')); ?>">
                    <i class="icon fa fa fa-user-md active"></i>
                    <span>Usher</span>
                </a>
            </li>
            <?php endif; ?>
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('view-module')): ?>
            <li class="<?php echo e($mainSuperAdminMenu == 'host' ? 'open' : ''); ?>">
                <a href="<?php echo e(asset('host-list')); ?>">
                    <i class="icon fa fa-group"></i>
                    <span>Hosts</span>
                </a>
            </li>
            <?php endif; ?>
                          

            
            <?php if(Auth::user()->hasRole('admin') || Auth::user()->hasRole('usher') || Auth::user()->can('view-module')): ?>
            <li class="<?php echo e($mainSuperAdminMenu == 'visitor' ? 'open' : ''); ?>">
                <a href="#">
                    <i class="icon fa fa-book active"></i>
                    <span>Visitor</span>
                </a>
                <ul>   
                    <li>
                        <a class="<?php echo e($superadminSubMenu == 'visitor-list' ? 'active' : ''); ?>"
                            href="<?php echo e(asset('visitor-list')); ?>">Visitor List</a>
                    </li>                 
                    <li>
                        <a class="<?php echo e($superadminSubMenu == 'visitor-activity-list' ? 'active' : ''); ?>"
                            href="<?php echo e(asset('visitor-activity-list')); ?>">Visitor Activity</a>
                    </li> 
                </ul>
            </li>
           
            <?php endif; ?>

            <?php if(Auth::user()->hasRole('usher') ): ?>

                    
                    <li class="<?php echo e($mainSuperAdminMenu == 'preapproval' ? 'open' : ''); ?>">
                        <a href="<?php echo e(asset('preapproval-list')); ?>">
                            <i class="icon fa fa-check-circle-o"></i>
                            <span>Pre Approval</span>
                        </a>
                    </li>
            <?php endif; ?>

            <?php if(Auth::user()->hasRole('visitor')): ?>
                    <li>
                        <a class="<?php echo e($superadminSubMenu == 'gatepass-list' ? 'active' : ''); ?>"
                            href="<?php echo e(asset('gatepass-list')); ?>">
                            <i class="icon fa  fa-barcode"></i>
                            <span>Gate Pass</span>
                        </a>
                    </li>
                    <li>
                        <a class="<?php echo e($superadminSubMenu == 'visitor-activity-list' ? 'active' : ''); ?>"
                            href="<?php echo e(asset('visitor-activity-list')); ?>">
                            <i class="icon fa fa-check-circle-o"></i>
                            <span>Visitor Activity</span>
                           
                        </a>
                    </li> 
            <?php endif; ?>
            
           
            <div class="position-absolute" style="bottom:20px;">
                <li class="<?php echo e($mainSuperAdminMenu == 'support' ? 'open' : ''); ?>">
                    <a href="<?php echo e(asset('support')); ?>">
                        <i class="icon fa fa-question-circle"></i>
                        <span>Support</span>
                    </a>
                </li>
            </div>
            
            
            

            

            
           
            
            
            
           
           

        </ul>
    </div>
</div>
<?php /**PATH /var/www/admin.visitorkrypt.com/resources/views/components/side-menu.blade.php ENDPATH**/ ?>