<?php ($record = $record ?? null); ?>

<div style="display:grid; grid-template-columns: repeat(2, 1fr); gap:16px;">
    <div class="form-group">
        <label class="form-label" for="student_id">Student</label>
        <select class="input" id="student_id" name="student_id" required>
            <?php $__currentLoopData = $students; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $student): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($student->id); ?>" <?php if(old('student_id', $record?->student_id) == $student->id): echo 'selected'; endif; ?>><?php echo e($student->full_name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
    <div class="form-group">
        <label class="form-label" for="incident_date">Incident Date</label>
        <input class="input" type="date" id="incident_date" name="incident_date" value="<?php echo e(old('incident_date', optional($record?->incident_date)->format('Y-m-d') ?? today()->format('Y-m-d'))); ?>" required>
    </div>
    <div class="form-group">
        <label class="form-label" for="category">Category</label>
        <input class="input" type="text" id="category" name="category" value="<?php echo e(old('category', $record?->category)); ?>" placeholder="e.g. Bullying, Lateness">
    </div>
    <div class="form-group">
        <label class="form-label" for="status">Status</label>
        <select class="input" id="status" name="status">
            <?php $__currentLoopData = ['open', 'resolved', 'escalated']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($status); ?>" <?php if(old('status', $record?->status ?? 'open') === $status): echo 'selected'; endif; ?>><?php echo e(ucfirst($status)); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
    <div class="form-group" style="grid-column: span 2;">
        <label class="form-label" for="description">Description</label>
        <textarea class="input" id="description" name="description" rows="4" required><?php echo e(old('description', $record?->description)); ?></textarea>
    </div>
    <div class="form-group" style="grid-column: span 2;">
        <label class="form-label" for="action_taken">Action Taken</label>
        <input class="input" type="text" id="action_taken" name="action_taken" value="<?php echo e(old('action_taken', $record?->action_taken)); ?>">
    </div>
</div>
<?php /**PATH C:\laragon\www\southend\resources\views\admin\discipline\_form.blade.php ENDPATH**/ ?>