@php $user = auth()->user(); $can = fn($p) => $user && $user->can($p); @endphp