@props(['title' => null, 'heading' => null, 'description' => null]) @php $user = auth()->user(); $workspace = $currentWorkspace ?? null; $isOrg = $workspace?->isOrganization() ?? false; $verified = $user->hasVerifiedEmail(); $nav = [ ['route' => 'dashboard', 'icon' => 'home', 'label' => __('Inicio'), 'show' => $verified], ['route' => 'applications', 'icon' => 'squares', 'label' => __('Mis aplicaciones'), 'show' => $verified], ['route' => 'workspace.show', 'icon' => $isOrg ? 'building' : 'user', 'label' => __('Mi espacio'), 'show' => $verified], ['route' => 'members.index', 'icon' => 'users', 'label' => __('Miembros'), 'show' => $verified && $isOrg && $user->can('viewMembers', $workspace)], ['route' => 'invitations.index', 'icon' => 'envelope', 'label' => __('Invitaciones'), 'show' => $verified && $isOrg && $user->can('viewInvitations', $workspace)], ['route' => 'settings.edit', 'icon' => 'cog', 'label' => __('Configuración'), 'show' => $verified && $isOrg && $user->can('update', $workspace)], ]; @endphp
{{-- Barra superior --}}
@if ($workspace && $verified) @endif
{{-- Menú lateral (fijo en escritorio, deslizante en móvil) --}}
@if ($heading)

{{ $heading }}

@if ($description)

{{ $description }}

@endif
@isset($actions)
{{ $actions }}
@endisset
@endif {{ $slot }}