<header class="main-nav">
    <div class="sidebar-user text-center">
        <a class="setting-primary" href="<?php echo e(route('perfil-usuario')); ?>" title="Actualizar Información"><i data-feather="settings"></i></a><img class="img-sidebar-profile rounded-circle" src="<?php echo e(asset('storage/users/' .auth()->user()->imagen)); ?>" alt="" />
        <div class="badge-bottom"><span class="badge badge-primary"><?php echo e(auth()->user()->roles->first()->name); ?></span></div>
        <a href="<?php echo e(route('perfil-usuario')); ?>"> <h6 class="mt-3 f-14 f-w-600"><?php echo e(auth()->user()->first_name); ?> <?php echo e(auth()->user()->last_name); ?></h6></a>
        <p class="mb-0 font-roboto"><?php echo e(auth()->user()->logoCompany()['company_name']); ?></p>
    </div>
    <nav>
        <div class="main-navbar">
            <div class="left-arrow" id="left-arrow"><i data-feather="arrow-left"></i></div>
            <div id="mainnav">
                <ul class="nav-menu custom-scrollbar">
                    <li class="back-btn">
                        <div class="mobile-back text-end"><span>Back</span><i class="fa fa-angle-right ps-2" aria-hidden="true"></i></div>
                    </li>
                    <li class="sidebar-main-title">
                        <div>
                            <h6>General</h6>
                        </div>
                    </li>
                    <li>
                        <a class="nav-link menu-title link-nav <?php echo e(routeActive('dashboard')); ?>" href="<?php echo e(route('dashboard')); ?>"><i data-feather="home"></i><span>Dashboard</span></a>
                    </li>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Administration_menu')): ?>
                    <li class="dropdown">
                        <a class="nav-link menu-title <?php echo e(prefixActive('/admin')); ?>" href="javascript:void(0)"><i class="icofont icofont-gears m-r-15 f-18"></i><span>Administración</span></a>
                        <ul class="nav-submenu menu-content" style="display: <?php echo e(prefixBlock('/admin')); ?>;">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Settings_index')): ?>
                            <li>
                                <a href="<?php echo e(route('parametros')); ?>" class="<?php echo e(routeActive('parametros')); ?>">Parámetros</a>
                            </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Eps_index')): ?>
                            <li><a href="<?php echo e(route('eps')); ?>" class="<?php echo e(routeActive('eps')); ?>">Eps's</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Plan_index')): ?>
                            <li><a href="<?php echo e(route('planes')); ?>" class="<?php echo e(routeActive('planes')); ?>">Planes</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Type_work_permit_index')): ?>
                            <li><a href="<?php echo e(route('tipos-permisos-laborales')); ?>" class="<?php echo e(routeActive('tipos-permisos-laborales')); ?>">Tipos de Permisos Laborales</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Companies_index')): ?>
                            <li><a href="<?php echo e(route('empresas')); ?>" class="<?php echo e(in_array(Route::currentRouteName(), ['empresas','empresas.usuarios']) ? 'active' : ''); ?>">Empresas</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Contract_index')): ?>
                            <li><a href="<?php echo e(route('contratos')); ?>" class="<?php echo e(in_array(Route::currentRouteName(), ['contratos','contratos.edit']) ? 'active' : ''); ?>">Contratos</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Annex_others_index')): ?>
                            <li><a href="<?php echo e(route('anexos-otros-si')); ?>" class="<?php echo e(routeActive('anexos-otros-si')); ?>">Anexos Otrosí</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('CvEmployee_index')): ?>
                            <li><a href="<?php echo e(route('cv')); ?>" class="<?php echo e(in_array(Route::currentRouteName(), ['cv','cv.edit']) ? 'active' : ''); ?>">Hoja de vida</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Companies_menu')): ?>
                    <li class="dropdown">
                        <a class="nav-link menu-title <?php echo e(prefixActive('/empresa')); ?>" href="javascript:void(0)"><i class="icofont icofont-building-alt m-r-15 f-18"></i><span>Empresa</span></a>
                        <ul class="nav-submenu menu-content" style="display: <?php echo e(prefixBlock('/empresa')); ?>;">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_configuration_index')): ?>
                            <li><a href="<?php echo e(route('configuracion-empresa')); ?>" class="<?php echo e(routeActive('configuracion-empresa')); ?>">Configuración Empresa</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_type_psychotechnics_test_index')): ?>
                            <li><a href="<?php echo e(route('tipos-pruebas-psicotecnicas')); ?>" class="<?php echo e(routeActive('tipos-pruebas-psicotecnicas')); ?>">Tipos Pruebas Psicotécnicas</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_document_type_index')): ?>
                            <li><a href="<?php echo e(route('tipos-documentos')); ?>" class="<?php echo e(routeActive('tipos-documentos')); ?>">Tipos Documentos</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_job_positions_index')): ?>
                            <li><a href="<?php echo e(route('cargos')); ?>" class="<?php echo e(routeActive('cargos')); ?>">Cargos</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_work_permit_index')): ?>
                            <li><a href="<?php echo e(route('permisos-laborales')); ?>" class="<?php echo e(routeActive('permisos-laborales')); ?>">Permisos Laborales</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_work_certificate_index')): ?>
                            <li><a href="<?php echo e(route('certificados-laborales')); ?>" class="<?php echo e(routeActive('certificados-laborales')); ?>">Certificados Laborales</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_users')): ?>
                            <li><a href="<?php echo e(route('usuarios')); ?>" class="<?php echo e(routeActive('admin')); ?>">Usuarios</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_register_users_index')): ?>
                            <li><a href="<?php echo e(route('empresa.usuarios')); ?>" class="<?php echo e(routeActive('empresa.usuarios')); ?>">Usuarios</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_employees_index')): ?>
                            <li>
                                <a class="submenu-title <?php echo e(in_array(Route::currentRouteName(), ['empleados','importar-empleados']) ? 'active' : ''); ?>" href="javascript:void(0)">
                                    Empleados<span class="sub-arrow"><i class="fa fa-chevron-right"></i></span>
                                </a>
                                <ul class="nav-sub-childmenu submenu-content" style="display: <?php echo e(in_array(Route::currentRouteName(), ['empleados','importar-empleados']) ? 'block' : 'none'); ?>;">
                                    <li><a href="<?php echo e(route('empleados')); ?>" class="<?php echo e(routeActive('empleados')); ?>">Listado</a></li>
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_employees_import')): ?>
                                        <li><a href="<?php echo e(route('importar-empleados')); ?>" class="<?php echo e(routeActive('importar-empleados')); ?>">Importar</a></li>
                                    <?php endif; ?>
                                </ul>
                            </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_contracts_users_index')): ?>
                            <li><a href="<?php echo e(route('contratos-empleados')); ?>" class="<?php echo e(in_array(Route::currentRouteName(), ['contratos-empleados','contratos-empleados.historial','contratos-empleados.create','contratos-empleados.firmar','perfil-empleado']) ? 'active' : ''); ?>">Contratos</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_permissions_employees')): ?>
                            <li><a href="<?php echo e(route('asignar')); ?>" class="<?php echo e(routeActive('asignar')); ?>">Permisos</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Company_reports_employees')): ?>
                            <li><a href="<?php echo e(route('informes-empleados')); ?>" class="<?php echo e(routeActive('informes-empleados')); ?>">Informes</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Users_menu')): ?>
                    <li class="dropdown">
                        <a class="nav-link menu-title <?php echo e(prefixActive('/usuarios')); ?>" href="javascript:void(0)"><i data-feather="users"></i><span>Usuarios</span></a>
                        <ul class="nav-submenu menu-content" style="display: <?php echo e(prefixBlock('/usuarios')); ?>;">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('User_index')): ?>
                            <li><a href="<?php echo e(route('usuarios')); ?>" class="<?php echo e(routeActive('usuarios')); ?>">Usuarios</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Role_index')): ?>
                            <li><a href="<?php echo e(route('roles')); ?>" class="<?php echo e(routeActive('roles')); ?>">Roles</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Permission_index')): ?>
                            <li><a href="<?php echo e(route('permisos')); ?>" class="<?php echo e(routeActive('permisos')); ?>">Permisos</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Assign_index')): ?>
                            <li><a href="<?php echo e(route('asignar')); ?>" class="<?php echo e(routeActive('asignar')); ?>">Asignar</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Employee_menu')): ?>
                    <li class="dropdown">
                        <a class="nav-link menu-title <?php echo e(prefixActive('/empleado')); ?>" href="javascript:void(0)"><i data-feather="user"></i><span>Empleado</span></a>
                        <ul class="nav-submenu menu-content" style="display: <?php echo e(prefixBlock('/empleado')); ?>;">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Employee_index')): ?>
                            <li><a href="<?php echo e(route('empleado-perfil')); ?>" class="<?php echo e(routeActive('empleado-perfil')); ?>">Información</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('CvEmployee_detail_index')): ?>
                            <li><a href="<?php echo e(route('empleado-cv')); ?>" class="<?php echo e(routeActive('empleado-cv')); ?>">Hoja de vida</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Employee_documents_index')): ?>
                            <li><a href="<?php echo e(route('empleado-documentos')); ?>" class="<?php echo e(routeActive('empleado-documentos')); ?>">Documentos</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Employee_payment_voucher_index')): ?>
                            <li><a href="<?php echo e(route('empleado-desprendibles-pagos')); ?>" class="<?php echo e(routeActive('empleado-desprendibles-pagos')); ?>">Desprendibles de Pago</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Employee_work_permits_index')): ?>
                            <li><a href="<?php echo e(route('empleado-permisos-laborales')); ?>" class="<?php echo e(routeActive('empleado-permisos-laborales')); ?>">Permisos Laborales</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Employee_work_certificates_index')): ?>
                            <li><a href="<?php echo e(route('empleado-certificados-laborales')); ?>" class="<?php echo e(routeActive('empleado-certificados-laborales')); ?>">Certificados Laborales</a></li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Employee_contracts_index')): ?>
                            <li><a href="<?php echo e(route('empleado-contratos')); ?>" class="<?php echo e(routeActive('empleado-contratos')); ?>">Contratos</a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <?php endif; ?>
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Report_menu')): ?>
                    <?php endif; ?>

                </ul>
            </div>
            <div class="right-arrow" id="right-arrow"><i data-feather="arrow-right"></i></div>
        </div>
    </nav>
</header>
<?php /**PATH /var/www/html/resources/views/layouts/theme/admin/partials/sidebar.blade.php ENDPATH**/ ?>