{{-- Ayuda en pantalla (App\Services\Guides): botón «¿Cómo se hace?» + panel lateral con X (no tapa la pantalla) y textos para tablas vacías (public/js/guia.js). Solo presentación: no cambia datos ni permisos. --}} @php $guide_route = optional(request()->route())->getName(); $guide = \App\Services\Guides::guide($guide_route); $guide_can = isset($can) && is_callable($can) ? $can : function ($p) { try { $r = Auth::check() ? \Spatie\Permission\Models\Role::find(Auth::user()->role_id) : null; return $r && $r->hasPermissionTo($p); } catch (\Throwable $e) { return false; } }; $guide_empty = Auth::check() ? \App\Services\Guides::emptyState($guide_route, $guide_can) : null; @endphp @if($guide) ¿Cómo se hace? @endif