{{-- Logo --}}
@if (! empty($portalTheme->logoUrl)) {{ $portalTheme->displayName() }} @else {{ $portalTheme->displayName() }} @endif
{{-- Menu --}}
@if(\App\Support\AccessRules::dashboardNav(Auth::user())) {{-- Dashboard --}} Dashboard @endif {{-- Usuários --}} @can('viewAny', App\Models\User::class) @php $isUsers = request()->routeIs('users.*'); @endphp
Usuários ▾
Cadastro de usuários @can('viewAny', App\Models\JobTitle::class) Cargos @endcan
@endcan {{-- Roles --}} @can('viewAny', App\Models\Role::class) Roles @endcan @php $isSettings = request()->routeIs('settings.*'); $canPortalSettings = \App\Support\AccessRules::portalAppearanceSettings(Auth::user()); @endphp @if ($canPortalSettings)
Configurações ▾
Aparência do portal
@endif @php use Illuminate\Support\Facades\Gate; $isInventory = request()->routeIs('inventory.*'); $canInventory = \App\Support\AccessRules::inventoryShell(Auth::user()); @endphp @if($canInventory)
Inventário ▾
@if(\App\Support\AccessRules::inventorySectors(Auth::user())) Setores @endif @php $isEquipmentSection = request()->routeIs('inventory.equipment.*') || request()->routeIs('inventory.assignments.*') || request()->routeIs('inventory.maintenances.*') || request()->routeIs('inventory.users.emprestimos.*'); $isCorporateSection = request()->routeIs('inventory.corporate-numbers.*') || request()->routeIs('inventory.corporate-number-assignments.*') || request()->routeIs('inventory.users.corporate-number-assignments.*'); @endphp @if(\App\Support\AccessRules::inventoryEquipmentSection(Auth::user()))
Equipamentos ▾
@if(\App\Support\AccessRules::inventoryEquipmentRegister(Auth::user())) Cadastro @endif @if(\App\Support\AccessRules::inventoryEquipmentAssignments(Auth::user())) Alocações @endif @if(\App\Support\AccessRules::inventoryEquipmentMaintenance(Auth::user())) Manutenção @endif
@endif @if(\App\Support\AccessRules::inventoryCorporateSection(Auth::user()))
Números corporativos ▾
@if(\App\Support\AccessRules::inventoryCorporateRegister(Auth::user())) Cadastro @endif @if(\App\Support\AccessRules::inventoryCorporateAssignments(Auth::user())) Alocações @endif
@endif
@endif @php $isOperations = request()->routeIs('operations.*'); $canOperations = \App\Support\AccessRules::operationsShell(Auth::user()); @endphp @if($canOperations)
Operações ▾
@if(\App\Support\AccessRules::operationsClients(Auth::user())) Clientes @endif @if(\App\Support\AccessRules::operationsSuppliers(Auth::user())) Fornecedores @endif @if(\App\Support\AccessRules::operationsEvents(Auth::user())) Eventos @endif @if(\App\Support\AccessRules::operationsEventHirings(Auth::user())) Contratações @endif @if(\App\Support\AccessRules::operationsFinancial(Auth::user())) Financeiro @endif @if(\App\Support\AccessRules::operationsSupplyItems(Auth::user())) Suprimentos @endif @if(\App\Support\AccessRules::operationsSupplyMovements(Auth::user())) Movimentações @endif
@endif @if(\App\Support\AccessRules::uberShell(Auth::user())) @php $isUber = request()->routeIs('uber.*'); @endphp
Uber ▾
@if(\App\Support\AccessRules::uberRequestsMy(Auth::user())) Meus chamados @endif @if(\App\Support\AccessRules::uberRequestsPending(Auth::user())) Pendentes @endif @if(\App\Support\AccessRules::uberRequestsDashboard(Auth::user())) Painel de chamados Importações @endif @can('create', App\Models\CorporateRideRequest::class) Novo chamado @endcan
@endif @php $isGame = request()->routeIs('game.*'); $showGameMenu = \App\Support\AccessRules::gameShell(Auth::user()); @endphp @if($showGameMenu)
Jogo ▾
@if(\App\Support\AccessRules::gamePhrases(Auth::user())) Frases @endif @if(\App\Support\AccessRules::gameSessions(Auth::user())) Sessões @endif @if(\App\Support\AccessRules::gameParticipants(Auth::user())) Participantes @endif
@endif @php $isTraining = request()->routeIs('training.*'); $showTrainingMenu = \App\Support\AccessRules::trainingShell(Auth::user()); @endphp @if($showTrainingMenu)
Treinamento ▾
@if(\App\Support\AccessRules::trainingAreas(Auth::user())) Áreas (setores) @endif @if(\App\Support\AccessRules::trainingGroups(Auth::user())) Grupos @endif @if(\App\Support\AccessRules::trainingQuestionBatteries(Auth::user())) Baterias de perguntas @endif
@endif
{{-- Usuário --}}
{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}

{{ Auth::user()->name }}

{{ Auth::user()->email }}

@csrf