<!-- Modal -->
<div class="modal fade" style="display:none" id="addBookingModal" tabindex="-1" aria-labelledby="addBookingModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-dialog-centered modal-full">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="addBookingModalLabel">  เพิ่มตารางเรียน</h5>
            </div>
            <form action="<?php echo e(route('student.add_booking')); ?>"
                id="modalAddBookingFrm"
                novalidate class="<?php echo e(($errors->any()) ? 'was-validated' : 'needs-validation'); ?>"
                method="post">
                <?php echo csrf_field(); ?>
            <div class="modal-body">
                <input type="hidden" id="sid" name="sid" value="<?php echo e($student->sid); ?>" >
                <input type="hidden" id="logStudent" name="logStudent" value="<?php echo e($student->title.strip_tags($student->firstname)." ".strip_tags($student->lastname)); ?>" >
                <input type="hidden" id="vehicleType" value="<?php echo e($student->courseType); ?>" >
                <input type="hidden" id="purpose" value="<?php echo e($student->purpose); ?>" >
                <input type="hidden" id="enroll" name=enroll value="<?php echo e($student->eid); ?>" >
                <input type="hidden" id="vbid" name=vbid value="0" >
                    <div class="row" id="addBookingRow">
                        <div class="col-1">
                            <div class="form-group">
                                <label for="gear">เกียร์ <span class="text-red">*</span></label>
                                <select id="gear" name="gear" class="selectpicker show-menu-arrow form-control" title="--เลือก--" required>
                                  <option value="ออโต้">ออโต้</option>
                                  <option value="ธรรมดา" >ธรรมดา</option>
                                </select>
                                <?php $__errorArgs = ['gear'];
$__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-2">
                            <div class="form-group">
                                <label for="date">วันที่ <span class="text-red">*</span></label>
                                <div class="input-group mb-3">
                                    <input type="text" class="form-control date" id="date" name="date" 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 = ['date'];
$__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-1">
                            <div class="form-group">
                                <label for="starttime">เวลาเริ่ม <span class="text-red">*</span></label>
                                <select id="starttime" name="starttime" data-size="10" data-container="body" class="selectpicker show-menu-arrow form-control" title="--เลือก--"  required>
                                    <?php for($i = 7; $i < 21; $i++): ?>
                                    <option value="<?php echo e($i); ?>"><?php echo e($i.":00"); ?></option>
                                    <?php endfor; ?>
                                </select>
                                <?php $__errorArgs = ['starttime'];
$__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-4">
                            <div class="form-group">
                                <label for="hour">รายวิชา<span class="text-red">*</span></label>
                                <select id="hour" name="hour" class="selectpicker show-menu-arrow form-control" title="--เลือก--"  required>
                                    
                                </select>
                                <?php $__errorArgs = ['hour'];
$__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-1">
                            <div class="form-group">
                                <label for="endtime">เวลาสิ้นสุด</label>
                                <input type="text" class="form-control" id="endtime" name="endtime" placeholder="เวลาสิ้นสุด" readonly>
                                <?php $__errorArgs = ['endtime'];
$__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-3">
                            <div class="form-group">
                                <label for="vehicle">รถ <span class="text-red">*</span></label>
                                <select id="vehicle" name="vehicle" data-size="10" data-container="body" class="selectpicker show-menu-arrow form-control" title="--เลือก--"  required>
                                </select>
                                <?php $__errorArgs = ['vehicle'];
$__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" class="btn btn-success">เพิ่ม</button>
            </div>
            </form>
        </div>
    </div>
</div>
<?php /**PATH /var/www/html/pongpetch/resources/views/student/modal_add_booking.blade.php ENDPATH**/ ?>