@extends('layouts.admin')

@section('title', 'Create Deferment')

@section('content')
<div class="container py-4">
    <h3 class="mb-4">New Deferment Request</h3>

    <form method="POST" action="{{ route('admin.deferments.store') }}" enctype="multipart/form-data">
        @csrf

        <div class="mb-3">
            <label class="form-label">Registration Number</label>
            <input type="text" name="registration_number" class="form-control" required>
        </div>

        <div class="mb-3">
            <label class="form-label">Reason for Deferment</label>
            <textarea name="reason" class="form-control" rows="3" required></textarea>
        </div>

        <div class="mb-3">
            <label class="form-label">Upload Attachment (optional)</label>
            <input type="file" name="attachment" class="form-control">
        </div>

        <button type="submit" class="btn btn-success">Submit</button>
        <a href="{{ route('admin.deferments.index') }}" class="btn btn-secondary">Cancel</a>
    </form>
</div>
@endsection
