@php $user_role = auth()->user()->role; $admin = 1; $branch = 3; @endphp @if(auth()->user()->can('view-drivers') || $user_role == $admin || $user_role == $branch) @endif @if(auth()->user()->can('edit-drivers') || $user_role == $admin || $user_role == $branch ) @endif @if(auth()->user()->can('delete-drivers') || $user_role == $admin || $user_role == $branch ) @endif