

<?php $__env->startSection('title', 'Edit Deferment'); ?>

<?php $__env->startSection('content'); ?>
<div class="container py-4">
    <h3 class="mb-4">Edit Deferment</h3>

    <form method="POST" action="<?php echo e(route('admin.deferments.update', $deferment->id)); ?>" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <div class="mb-3">
            <label class="form-label">Registration Number</label>
            <input type="text" name="registration_number" class="form-control" value="<?php echo e($deferment->registration_number); ?>" required>
        </div>

        <div class="mb-3">
            <label class="form-label">Reason</label>
            <textarea name="reason" class="form-control" rows="3" required><?php echo e($deferment->reason); ?></textarea>
        </div>

        <div class="mb-3">
            <label class="form-label">Status</label>
            <select name="status" class="form-select">
                <option value="pending" <?php echo e($deferment->status == 'pending' ? 'selected' : ''); ?>>Pending</option>
                <option value="approved" <?php echo e($deferment->status == 'approved' ? 'selected' : ''); ?>>Approved</option>
                <option value="rejected" <?php echo e($deferment->status == 'rejected' ? 'selected' : ''); ?>>Rejected</option>
            </select>
        </div>

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

        <button type="submit" class="btn btn-primary">Update</button>
        <a href="<?php echo e(route('admin.deferments.index')); ?>" class="btn btn-secondary">Cancel</a>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\studentportal\resources\views/admin/deferments/edit.blade.php ENDPATH**/ ?>