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