<!-- Modal -->
<div class="modal fade" style="display:none;" id="examModal" tabindex="-1" aria-labelledby="examModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="examModalLabel">เลื่อนวันสอบใบขับขี่</h5>
            </div>
            <form action="{{ route('home.updateExam') }}"
                id="examFrm"
                novalidate class="{{ ($errors->any()) ? 'was-validated' : 'needs-validation' }}"
                method="post">
                @csrf
                <input type="hidden" name="studentID" id="studentID">
                <input type="hidden" name="enrollID" id="enrollID">
            <div class="modal-body">
                <div class="row">
                    <div class="col-12">
                        <div class="form-group">
                            <p>นักเรียน : <span id="student"></span></p>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-12">
                        <div class="form-group">
                            <label for="examDate">วันที่อบรมและสอบใบขับขี่ <span class="text-red">*</span></label>
                            <div class="input-group mb-3">
                                <input type="text" class="form-control" id="examDate" name="examDate" placeholder="วันที่อบรมและสอบใบขับขี่" autocomplete="off" required>
                                <div class="input-group-append"><span class="input-group-text"><i class="far fa-calendar-alt"></i></span></div>
                            </div>
                            @error('examDate')
                            <div class="text-danger">{{  $message }}</div>
                            @enderror
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">ปิด</button>
                <button type="submit" id="payBtn" class="btn btn-success">ตกลง</button>
            </div>
            </form>
        </div>
    </div>
</div>
