@php $user = Auth::user(); $role = $user ? optional($user->getRoleNames())->first() : null; @endphp