@php /** @var \App\Models\Employee|null $employee */ $employee = $employee ?? null; $formAction = $formAction ?? ''; $formMethod = $formMethod ?? 'POST'; $submitLabel = $submitLabel ?? 'حفظ'; $regionValue = old('region', $employee?->region ?? ''); $cityValue = old('city', $employee?->city ?? ''); $selectedPerms = \App\Support\NurseryPermissionCatalog::normalize(old('permissions', $employee?->nursery_permissions ?? [])); @endphp
@csrf @if(strtoupper($formMethod) !== 'POST') @method($formMethod) @endif

بيانات الموظف

@include('nursery.partials.staff-city-select', ['regionKey' => $regionValue, 'cityValue' => $cityValue])
@if($employee !== null)
@endif

مستندات الموظف

@if($employee !== null && $employee->relationLoaded('attachments')) @endif
@include('nursery.partials.staff-permissions-panel', [ 'permissionGroups' => $permissionGroups, 'selectedPermissions' => $selectedPerms, 'grantableKeys' => $grantableKeys, 'canGrantAll' => $canGrantAll, ])
@if($employee === null) @endif إلغاء
@push('scripts') @endpush