<!-- Modal -->
<div class="modal fade" id="vehicleBookingModal" tabindex="-1" aria-labelledby="vehicleBookingModalLabel" role="dialog" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title-card" id="vehicleBookingModalLabel">จองเวลาเรียน</h5>
            </div>
            <form action="<?php echo e(route('calendar.vehicle_booking')); ?>"
                id="vehicleBookFrm"
                novalidate class="vehicleBookFrm1 <?php echo e(($errors->any()) ? 'was-validated' : 'needs-validation'); ?>"
                method="post">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="vehicle" id="vehicle" >
                <input type="hidden" name="type" id="type" >
                <input type="hidden" name="vdate" id="vdate" >
                <input type="hidden" name="time" id="time" >
            <div class="modal-body">
                <div class="row">
                    <div class="col-12">
                        <label class="modal-label-card float-left mb-2">วันที่ : <span id="spanDate"></span></label>
                    </div>
                </div>
                <div class="row">
                    <div class="col-12">
                        <label class="modal-label-card float-left mb-2">เวลาเริ่ม : <span id="spanStarttime"></span></label>
                    </div>
                </div>
                <div class="row mt-2">
                    <div class="col-12">
                        <div class="form-group">
                            <label>รูปแบบการเรียน <span class="text-red">*</span></label>
                            <div>
                                <div class="icheck-nephritis icheck-inline">
                                    <input class="purpose" type="radio" id="driveOnly" name="purposeBooking" value="เพิ่มประสบการณ์" required>
                                    <label for="driveOnly">เพิ่มประสบการณ์</label>
                                </div>
                                <div class="icheck-nephritis icheck-inline">
                                    <input class="purpose" type="radio" id="driveTest" name="purposeBooking" value="เรียนและสอบ">
                                    <label for="driveTest">เรียนและสอบ</label>
                                </div>
                                <div class="icheck-nephritis icheck-inline">
                                    <input class="purpose" type="radio" id="testOnly" name="purposeBooking" value="เก็บชั่วโมงเพื่อสอบ">
                                    <label for="testOnly">เก็บชั่วโมงเพื่อสอบ</label>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row mt-2">
                    <div class="col-12">
                        <div class="form-group">
                            <label for="studentBooking" class="modal-label-card float-left mb-2">นักเรียน <span class="text-red">*</span></label>
                            <select id="studentBooking" name="studentBooking" class="selectpicker show-menu-arrow form-control" title="--เลือก--" data-live-search="true" data-size="20" data-container="body" required>
                            </select>
                            <?php $__errorArgs = ['studentBooking'];
$__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 class="row mt-2">
                    <div class="col-12">
                        <div class="form-group">
                            <label for="moduleBooking" class="modal-label-card float-left mb-2">รายวิชา <span class="text-red">*</span></label>
                            <select id="moduleBooking" name="moduleBooking" class="selectpicker show-menu-arrow form-control" title="--เลือก--" data-container="body" required>
                            </select>
                            <?php $__errorArgs = ['moduleBooking'];
$__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="payBtn" class="btn btn-success">ตกลง</button>
            </div>
            </form>
        </div>
    </div>
</div>
<!-- End modal -->
<?php /**PATH /home/admin2/web/system.pongpetrdriving.com/public_html/resources/views/calendar/modal_vehicle_booking.blade.php ENDPATH**/ ?>