<div class="app-sidebar colored">
    <div class="sidebar-header">
        <a class="header-brand" href="<?php echo e(route('dashboard')); ?>">
            <!-- <div class="logo-img">
                <img height="30" src="<?php echo e(asset('img/logo_white.png')); ?>" class="header-brand-img" title="RADMIN"> 
            </div> -->
        </a>
        <div class="sidebar-action"><i class="ik ik-arrow-left-circle"></i></div>
        <button id="sidebarClose" class="nav-close"><i class="ik ik-x"></i></button>
    </div>

    <?php
        $segment1 = request()->segment(1);
        $segment2 = request()->segment(2);
    ?>

    <div class="sidebar-content">
        <div class="nav-container">
            <nav id="main-menu-navigation" class="navigation-main">

                <!-- Dashboard -->
                <div class="nav-item <?php echo e($segment1 == 'dashboard' ? 'active' : ''); ?>">
                    <a href="<?php echo e(route('dashboard')); ?>"><i class="ik ik-bar-chart-2"></i><span><?php echo e(__('Dashboard')); ?></span></a>
                </div>

                <!-- Incident -->
                <div class="nav-item <?php echo e($segment1 == 'incidents' ? 'active open' : ''); ?> has-sub">
                    <a href="javascript:void(0)"><i class="ik ik-alert-triangle"></i><span><?php echo e(__('Incident')); ?></span></a>
                    <div class="submenu-content">
                        <a href="<?php echo e(route('incidents.index')); ?>" class="menu-item <?php echo e($segment1 == 'incidents' && !$segment2 ? 'active' : ''); ?>"><?php echo e(__('Incident List')); ?></a>
                        <a href="<?php echo e(route('incidents.create')); ?>" class="menu-item <?php echo e($segment1 == 'incidents' && $segment2 == 'create' ? 'active' : ''); ?>"><?php echo e(__('Register Incident')); ?></a>
                    </div>
                </div>

                <!-- Manage Users -->
                 <div class="nav-item <?php echo e(($segment1 == 'users' || $segment1 == 'roles'||$segment1 == 'permission' ||$segment1 == 'user') ? 'active open' : ''); ?> has-sub">
                    <a href="#"><i class="ik ik-user"></i><span><?php echo e(__('Manage Users')); ?></span></a>
                    <div class="submenu-content">
                        <!-- only those have manage_user permission will get access -->
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_user')): ?>
                        <a href="<?php echo e(url('users')); ?>" class="menu-item <?php echo e(($segment1 == 'users') ? 'active' : ''); ?>"><?php echo e(__('Users')); ?></a>
                        <a href="<?php echo e(url('user/create')); ?>" class="menu-item <?php echo e(($segment1 == 'user' && $segment2 == 'create') ? 'active' : ''); ?>"><?php echo e(__('Add User')); ?></a>
                         <?php endif; ?>
                         <!-- only those have manage_role permission will get access -->
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_roles')): ?>
                        <a href="<?php echo e(url('roles')); ?>" class="menu-item <?php echo e(($segment1 == 'roles') ? 'active' : ''); ?>"><?php echo e(__('Roles')); ?></a>
                        <?php endif; ?>
                        <!-- only those have manage_permission permission will get access -->
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_permission')): ?>
                        <a href="<?php echo e(url('permission')); ?>" class="menu-item <?php echo e(($segment1 == 'permission') ? 'active' : ''); ?>"><?php echo e(__('Permission')); ?></a>
                        <?php endif; ?>
                    </div>
                </div>

                <!-- Surveillance -->
                <div class="nav-item <?php echo e($segment1 == 'camera-surveillance' ? 'active' : ''); ?>">
                    <a href="<?php echo e(url('camera-surveillance')); ?>"><i class="ik ik-camera"></i><span><?php echo e(__('Camera Surveillance')); ?></span></a>
                </div>

                <!-- Satellite -->
                <div class="nav-item <?php echo e($segment1 == 'satellite-data' ? 'active' : ''); ?>">
                    <a href="<?php echo e(url('satellite-data')); ?>"><i class="ik ik-globe"></i><span><?php echo e(__('Satellite Data')); ?></span></a>
                </div>

                <!-- Drone -->
                <div class="nav-item <?php echo e($segment1 == 'drone' ? 'active' : ''); ?>">
                    <a href="<?php echo e(url('drone')); ?>"><i class="ik ik-airplay"></i><span><?php echo e(__('Drone')); ?></span></a>
                </div>

                <!-- Settings -->
                <div class="nav-item <?php echo e($segment1 == 'settings' ? 'active' : ''); ?>">
                    <a href="<?php echo e(url('settings')); ?>"><i class="ik ik-settings"></i><span><?php echo e(__('Settings')); ?></span></a>
                </div>

            </nav>
        </div>
    </div>
</div>
<?php /**PATH /home/bybluepa/public_html/asat.bybluepage.com/resources/views/include/sidebar.blade.php ENDPATH**/ ?>