@error('quotas')
{{ $message }}
@enderror
@php
$existingQuotas = old('quotas')
? collect(old('quotas'))->values()
: $post->quotas->map(fn ($q) => [
'quota_type' => $q->quota_type,
'district_name' => $q->district_name,
'seats' => $q->seats,
])->values();
@endphp
@foreach($existingQuotas as $i => $quota)
@endforeach
No quotas added.
Quota total
0
Post seats
0
Quota seats exceed total post seats!