@php $header = $header ?? null; $action = $action ?? ''; $perms = $perms ?? []; $perms['rAdmin'] = (Auth::user()->ad_role ?? 0) > 0 ? true : false; @endphp