Logo Dux Tracking
@php $menuData = [['route' => 'admin.users.index', 'text' => 'Usuarios', 'tipoTab' => '', 'icon' => 'bx bx-bar-chart-alt-2'], ['route' => 'admin.dashboard.index', 'text' => 'Dashboards', 'tipoTab' => '', 'icon' => 'bx bxs-dashboard'], ['route' => 'admin.tasks.index', 'text' => 'Nuevos', 'tipoTab' => 'nuevos', 'icon' => 'bx bx-bar-chart-alt-2'], ['route' => 'admin.tasks.index', 'text' => 'Agendados', 'tipoTab' => 'agendados', 'icon' => 'bx bx-sort-alt-2'], ['route' => 'admin.tasks.index', 'text' => 'Reprogramados', 'tipoTab' => 'reprogramados', 'icon' => 'bx bx-cog'], ['route' => 'admin.tasks.index', 'text' => 'Rechazados', 'tipoTab' => 'rechazados', 'icon' => 'bx bx-shield-x'], ['route' => 'admin.import_salenew.index', 'text' => 'Importación', 'tipoTab' => '', 'icon' => 'bx bxs-file-import'], ['route' => 'admin.form_postsale.index', 'text' => 'Post Venta', 'tipoTab' => '', 'icon' => 'bx bxs-user-detail'], ['route' => 'admin.warehouses.index', 'text' => 'Almacen', 'tipoTab' => '', 'icon' => 'bx bx-store']]; $menuItems = []; $currentRoute = request() ->route() ->getName(); foreach ($menuData as $item) { $isActive = request()->routeIs($item['route']) && (isset($item['tipoTab']) ? request('tipoTab') == $item['tipoTab'] : true); $menuItems[] = [ 'route' => $item['route'], 'text' => $item['text'], 'isActive' => $isActive, 'icon' => $item['icon'], 'tipoTab' => $item['tipoTab'], ]; } @endphp
    @foreach ($menuItems as $menuItem) @can($menuItem['route'])
  • {{ $menuItem['text'] }}
  • @endcan @endforeach
{{--
  • Usuarios
  • Dashboards
  • Nuevos
  • Agendados
  • Reprogramados
  • Rechazados
--}}