{{-- Employee create / edit form (field names unchanged). $employee = null on create. --}} @php $employee = $employee ?? null; $selectedZones = array_map('intval', (array) old('zone_ids', $assignedZoneIds ?? [])); $currentType = old('user_type', $employee?->user_type); @endphp
@csrf @if ($employee) @method('PUT') @endif
{{-- Zone supervisors: the zones they supervise (same field name zone_ids[] as before). --}}
المناطق الإشرافية لمشرف المنطقة @if ($zones->isEmpty())

لا توجد مناطق مضافة لشركتك بعد.

@else
@foreach ($zones as $zone) @endforeach

يرى مشرف المنطقة محطات مناطقه فقط ويعتمد معاملاتها.

@endif @error('zone_ids')

{{ $message }}

@enderror @error('zone_ids.*')

{{ $message }}

@enderror