@extends('layouts.app') @section('title', 'Edit Post — ' . $post->code) @section('breadcrumb') Dashboard Posts {{ $post->code }} Edit @endsection @push('styles') @endpush @section('content')
@csrf @method('PUT')
{{-- ── Main details ────────────────────────────────────────── --}}

Post details

@error('title')
{{ $message }}
@enderror
Letters and numbers only.
@error('code')
{{ $message }}
@enderror
@error('bps')
{{ $message }}
@enderror
@error('total_seats')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('min_age')
{{ $message }}
@enderror
@error('max_age')
{{ $message }}
@enderror
@error('gender_eligibility')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('qualification')
{{ $message }}
@enderror
exam_login_enabled) ? 'checked' : '' }}>
When enabled, approved candidates can log into the exam portal using their roll number and exam password. @if($post->exam_login_enabled && $post->exam_login_enabled_at) Currently enabled since {{ $post->exam_login_enabled_at->format('d M Y, h:i A') }}. @else Currently disabled. @endif
{{-- ── Quota allocation ────────────────────────────────────── --}}

Quota allocation

@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)
@error('quotas.'.$i.'.quota_type')
{{ $message }}
@enderror
@error('quotas.'.$i.'.district_name')
{{ $message }}
@enderror
@error('quotas.'.$i.'.seats')
{{ $message }}
@enderror
@endforeach
No quotas added.
Quota total 0
Post seats 0
Cancel
@endsection @push('scripts') @endpush