{{-- Collector create / edit (field names unchanged). $collector = null on create; $assignedStationIds on edit. --}} @php $collector = $collector ?? null; $stationOptions = $companyStations->mapWithKeys(fn ($s) => [$s->id => [ 'label' => $s->name, 'description' => ($s->city->name ?? 'غير محدد').(($s->pending_cash_amount ?? 0) > 0 ? ' · نقد معلق '.\App\Support\Format\Fmt::money($s->pending_cash_amount) : ''), ]])->all(); @endphp
@csrf @if ($collector) @method('PUT') @endif
@if ($collector) @endif
@if ($companyStations->isNotEmpty()) @error('stations')

{{ $message }}

@enderror @else @endif