<!-- Modal -->
<div class="modal fade" style="display:none;" id="examDateModal" tabindex="-1" aria-labelledby="examDateModalLabel" 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="examDateModalLabel">เลื่อนวันที่อบรมและสอบใบขับขี่</h5>
            </div>
            <form action="<?php echo e(route('student.exam', $student->eid)); ?>"
                id="examFrm"
                novalidate class="<?php echo e(($errors->any()) ? 'was-validated' : 'needs-validation'); ?>"
                method="post">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>
            <div class="modal-body">
                <input type="hidden" id="logStudentExam" name="logStudent" value="<?php echo e($student->title.strip_tags($student->firstname)." ".strip_tags($student->lastname)); ?>" >
                <div class="row">
                    <div class="col-6">
                        <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" <?php if($student->exam_date != ""): ?> value="<?php echo e(formatDateFromDB($student->exam_date)); ?>" <?php endif; ?> 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>
                            <?php $__errorArgs = ['examDate'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="text-danger"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>
                    <div class="col-6">
                        <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" <?php if($student->exam_time != ""): ?> value="<?php echo e($student->exam_time); ?>" <?php endif; ?> id="examTime" name="examTime" placeholder="เวลาที่อบรมและสอบใบขับขี่" autocomplete="off" required>
                                <div class="input-group-append"><span class="input-group-text"><i class="far fa-clock"></i></span></div>
                            </div>
                            <?php $__errorArgs = ['examDate'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="text-danger"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-secondary" data-dismiss="modal">ปิด</button>
                <button type="submit" id="payBtnExam" class="btn btn-success">ตกลง</button>
            </div>
            </form>
        </div>
    </div>
</div>
<?php /**PATH /home/brigheyu/domain/system.pongpetrdriving.com/resources/views/student/modal_exam.blade.php ENDPATH**/ ?>