@php $user_role = auth()->user()->role; $admin = 1; $staff = 0; $branch = 3; $client = 4; $driver = 5; @endphp @if (auth()->user()->can('shipments-report') || in_array($user_role, [$admin, $client, $branch]) ) @endif @if (auth()->user()->can('missions-report') || in_array($user_role, [$admin, $branch]) ) @endif @if (auth()->user()->can('transactions-report') || in_array($user_role, [$admin, $branch, $client, $driver]) ) @endif @if (auth()->user()->can('branches-report') || in_array($user_role, [$admin]) ) @endif @if (auth()->user()->can('clients-report') || in_array($user_role, [$admin, $branch]) ) @endif @if (auth()->user()->can('drivers-report') || in_array($user_role, [$admin, $branch]) ) @endif