{{-- Employee actions (list + detail). $employee: array (index) or model fields id/name/is_active. --}} @php $u = auth()->user(); $eid = $employee['id']; $ename = $employee['name']; $active = (bool) $employee['is_active']; @endphp @if ($u->hasPermission('employees.edit')) تعديل @endif @if ($u->hasPermission('employees.toggle_status')) {{ $active ? 'إيقاف الحساب' : 'تفعيل الحساب' }} @endif @if ($u->hasPermission('employees.delete')) إزالة من المحطة @endif