{{-- Row actions of an employee ($employee = array from EmployeeController::index or a User). $card = true: only the ⋯ menu (mobile action card). --}} @php $me = auth()->user(); $id = is_array($employee) ? $employee['id'] : $employee->id; $name = is_array($employee) ? $employee['name'] : $employee->name; @endphp @if ($me?->hasPermission('employees.edit')) تعديل @endif @if ($me?->hasPermission('employees.assign_permissions')) الصلاحيات @endif @if ($me?->hasPermission('employees.delete') && $id !== $me?->id) حذف @endif