<?php $__env->startSection('css'); ?>
<link href="<?php echo e(asset('css/bootstrap-select.min.css')); ?>" rel="stylesheet" />
<link href="<?php echo e(asset('css/bootstrap-datepicker.min.css')); ?>" rel="stylesheet" />
<link href="<?php echo e(asset('css/bootstrap-timepicker.min.css')); ?>" rel="stylesheet" />
<link href="<?php echo e(asset('css/jquery.Thailand.min.css')); ?>" rel="stylesheet" />

<link href="<?php echo e(asset('css/icheck-bootstrap.min.css')); ?>" rel="stylesheet" />
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid pt-3">
    <form action="<?php echo e(route('student.store')); ?>"
            novalidate class="<?php echo e(($errors->any()) ? 'was-validated' : 'needs-validation'); ?>"
            method="post"
    >
    <?php echo csrf_field(); ?>
        <div class="row">
            <div class="col-7">
                <div class="card card-outline card-success">
                    <div class="card-header">
                        <h3 class="card-title">ข้อมูลนักเรียน</h3>
                    </div>
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-12 col-md-4">
                                <div class="form-group">
                                    <label for="registerDate">วันที่สมัคร <span class="text-red">*</span></label>
                                    <div class="input-group mb-3">
                                        <input type="text" class="form-control" id="registerDate" name="registerDate" 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 = ['registerDate'];
$__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-sm-12 col-md-4">
                                <div class="form-group">
                                    <label for="branch">สาขาที่สมัคร <span class="text-red">*</span></label>
                                    <select id="branch" name="branch" class="selectpicker show-menu-arrow form-control" title="--เลือก--" required>
                                        <?php $__currentLoopData = $branchs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $indexKey => $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($branch->code); ?>"><?php echo e($branch->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                    <?php $__errorArgs = ['branch'];
$__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-sm-12 col-md-4">
                                <div class="form-group">
                                    <label for="idCard">เลขที่บัตรประชาชน/พาสปอต <span class="text-red">*</span></label>
                                    <input type="text" class="form-control" id="idCard" name="idCard" placeholder="เลขที่บัตรประาชาชน 13 หลัก หรือ พาสปอต" required>
                                    <?php $__errorArgs = ['idCard'];
$__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">
                            <div class="col-2">
                                <div class="form-group">
                                    <label for="title">คำนำหน้า <span class="text-red">*</span></label>
                                    <input type="text" class="form-control" id="title" name="title" placeholder="คำนำหน้า" required>
                                    <?php $__errorArgs = ['title'];
$__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="firstname">ชื่อ <span class="text-red">*</span></label>
                                    <input type="text" class="form-control" id="firstname" name="firstname" placeholder="ชื่อ" required>
                                    <?php $__errorArgs = ['firstname'];
$__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="lastname">นามสกุล <span class="text-red">*</span></label>
                                    <input type="text" class="form-control" id="lastname" name="lastname" placeholder="นามสกุล" required>
                                    <?php $__errorArgs = ['lastname'];
$__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="nickname">ชื่อเล่น</label>
                                    <input type="text" class="form-control" id="nickname" name="nickname" placeholder="ชื่อเล่น">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-4">
                                <div class="form-group">
                                    <label for="birthdate">วันเกิด <span class="text-red">*</span></label>
                                    <div class="input-group mb-3">
                                        <input type="text" class="form-control datepiacker" id="birthdate" name="birthdate" 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 = ['birthdate'];
$__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="age">อายุ</label>
                                    <input type="text" class="form-control" id="age" name="age" disabled>
                                </div>
                            </div>
                            <div class="col-2">
                                <div class="form-group">
                                    <label for="race">เชื้อชาติ</label>
                                    <input type="text" class="form-control" id="race" name="race" placeholder="เชื้อชาติ">
                                </div>
                            </div>
                            <div class="col-2">
                                <div class="form-group">
                                    <label for="nationality">สัญชาติ</label>
                                    <input type="text" class="form-control" id="nationality" name="nationality" placeholder="สัญชาติ">
                                </div>
                            </div>
                            <div class="col-2">
                                <div class="form-group">
                                    <label for="religion">ศาสนา</label>
                                    <input type="text" class="form-control" id="religion" name="religion" placeholder="ศาสนา">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-12">
                                <div class="form-group">
                                    <label for="address">ที่อยู่ตามบัตรประชาชน <span class="text-red">*</span></label>
                                    <input type="text" class="form-control" id="address" name="address" placeholder="ที่อยู่" required>
                                    <?php $__errorArgs = ['address'];
$__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">
                            <div class="col-4">
                                <div class="form-group">
                                    <label for="district">ตำบล / แขวง <span class="text-red">*</span></label>
                                    <input type="text" name="district" id="district" class="form-control" placeholder="ตำบล / แขวง" required>
                                    <?php $__errorArgs = ['district'];
$__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="amphoe">อำเภอ / เขต <span class="text-red">*</span></label>
                                    <input type="text" name="amphoe" id="amphoe" class="form-control" placeholder="อำเภอ / เขต" required>
                                    <?php $__errorArgs = ['amphoe'];
$__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="province">จังหวัด <span class="text-red">*</span></label>
                                    <input type="text" name="province" id="province" class="form-control" placeholder="จังหวัด" required>
                                    <?php $__errorArgs = ['province'];
$__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">
                            <div class="col-6">
                                <div class="form-group">
                                    <label for="phone1">หมายเลขโทรศัพท์ 1 <span class="text-red">*</span></label>
                                    <input type="number"
                                            class="form-control"
                                            id="phone1"
                                            name="phone1"
                                            placeholder="หมายเลขโทรศัพท์"
                                            oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
                                            maxlength="10"
                                            required>
                                    <?php $__errorArgs = ['phone1'];
$__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="phone2">หมายเลขโทรศัพท์ 2</label>
                                    <input type="number"
                                            class="form-control"
                                            id="phone2"
                                            name="phone2"
                                            placeholder="หมายเลขโทรศัพท์"
                                            oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
                                            maxlength="10">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-5">
                <div class="card card-outline card-success">
                    <div class="card-header">
                        <h3 class="card-title">ข้อมูลทั่วไป</h3>
                    </div>
                    <div class="card-body">

                        <div class="row">
                            <div class="col-sm-12 col-md-6">
                                <div class="form-group">
                                    <label for="refName">บุคคลที่ติดต่อได้ในกรณีฉุกเฉิน</label>
                                    <input type="text" class="form-control" id="refName" name="refName" placeholder="ชื่อ - นามสกุล">
                                    <?php $__errorArgs = ['refName'];
$__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-sm-12 col-md-6">
                                <div class="form-group">
                                    <label for="phone1">หมายเลขโทรศัพท์</label>
                                    <input type="number"
                                            class="form-control"
                                            id="refPhone"
                                            name="refPhone"
                                            placeholder="หมายเลขโทรศัพท์"
                                            oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
                                            maxlength="10">
                                    <?php $__errorArgs = ['refPhone'];
$__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>
                        <hr />
                        <div class="row">
                            <div class="col-sm-12 col-md-12">
                                <div class="form-group">
                                    <label>มีใบอนุญาตขับขี่หรือไม่ <span class="text-red">*</span></label>
                                    <div>
                                        <div class="icheck-nephritis icheck-inline">
                                            <input type="radio" id="noLicense" name="license" value="ไม่มี" checked>
                                            <label for="noLicense">ไม่มีใบอนุญาต</label>
                                        </div>
                                        <div class="icheck-nephritis icheck-inline">
                                            <input type="radio" id="noTest" name="license" value="มี">
                                            <label for="noTest">มีใบอนุญาต</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <hr />
                        <div class="row">
                            <div class="col-sm-12 col-md-12">
                                <div class="form-group">
                                    <label for="knowSchool">รู้จักโรงเรียนได้อย่างไร</label>
                                    <input type="text" class="form-control" id="knowSchool" name="knowSchool" placeholder="รู้จักโรงเรียนได้อย่างไร จากไหน">
                                </div>
                            </div>
                        </div>
                        <hr />
                        <div class="row">
                            <div class="col-sm-12 col-md-12">
                                <div class="form-group">
                                    <label for="knowSchool">หมายเหตุ</label>
                                    <input type="text" class="form-control" id="note" name="note" placeholder="หมายเหตุ">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div> <!-- div row -->
        <!-- Course section -->
        <div class="row">
            <!-- Course section -->
            <div class="col-7">
                <div class="card card-outline card-success">
                    <div class="card-header">
                        <h3 class="card-title">หลักสูตรที่เรียน</h3>
                    </div>
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-12 col-md-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="purpose" value="เพิ่มประสบการณ์" required>
                                            <label for="driveOnly">เพิ่มประสบการณ์</label>
                                        </div>
                                        <div class="icheck-nephritis icheck-inline">
                                            <input class="purpose" type="radio" id="driveTest" name="purpose" value="เรียนและสอบ">
                                            <label for="driveTest">เรียนและสอบ</label>
                                        </div>
                                        <div class="icheck-nephritis icheck-inline">
                                            <input class="purpose" type="radio" id="testOnly" name="purpose" value="เก็บชั่วโมงเพื่อสอบ">
                                            <label for="testOnly">เก็บชั่วโมงเพื่อสอบ</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-12">
                                <div class="form-group">
                                    <label for="course">หลักสูตร <span class="text-red">*</span></label>
                                    <select id="course" name="course" class="selectpicker show-menu-arrow form-control" title="--เลือก--" required>
                                        <?php $__currentLoopData = $courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $indexKey => $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($course->id."-".($course->price + $course->optional_price)."-".$course->hour."-".$course->type); ?>"><?php echo e("[". $course->type ."] ". $course->name ." (".$course->gear.") , ราคา : ". number_format(($course->price + $course->optional_price), 0 , '.'    , ','   )." บาท"); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                    <?php $__errorArgs = ['course'];
$__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">
                            <div class="col-6">
                                <div class="form-group">
                                    <label for="examDate">วันที่อบรมกฎจราจรและสอบใบขับขี่ <span class="text-red">*</span></label>
                                    <div class="input-group mb-3">
                                        <input disabled type="text" class="form-control datepiacker" id="examDate" name="examDate" placeholder="วันที่สอบ" autocomplete="off">
                                        <div class="input-group-append">
                                            <span class="input-group-text"><i class="far fa-calendar-alt"></i></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-6">
                                <div class="form-group">
                                    <label for="examTime">เวลา <span class="text-red">*</span></label>
                                    <div class="input-group mb-3">
                                        <input disabled type="text" class="form-control datepiacker" id="examTime" name="examTime" placeholder="เวลาที่สอบ" autocomplete="off">
                                        <div class="input-group-append">
                                            <span class="input-group-text"><i class="far fa-clock"></i></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Billing section -->
            <div class="col-5">
                <div class="card card-outline card-success">
                    <div class="card-header">
                        <h3 class="card-title">การชำระเงิน</h3>
                    </div>
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-12 col-md-8">
                                <div class="form-group">
                                    <label for="discount">ส่วนลด (ถ้ามี)</label>
                                    <input type="text" class="form-control" id="discount" name="discount" placeholder="ข้อมูลส่วนลด">
                                </div>
                            </div>
                            <div class="col-sm-12 col-md-4">
                                <div class="form-group">
                                    <label for="discountAmount">จำนวนเงิน</label>
                                    <input type="text" class="form-control" id="discountAmount" name="discountAmount" placeholder="ข้อมูลส่วนลด">
                                </div>
                            </div>
                        </div>
                        <hr />
                        <div class="row">
                            <div class="col-4">
                                <div class="form-group">
                                    <label for="totalCost">ยอดชำระ</label>
                                    <input type="text" class="form-control" id="totalCost" name="totalCost" disabled>
                                </div>
                            </div>
                            <div class="col-4">
                                <div class="form-group">
                                    <label for="pay">จำนวนที่ชำระ <span class="text-red">*</span></label>
                                    <input type="number" class="form-control" id="pay" name="pay" required>
                                    <?php $__errorArgs = ['pay'];
$__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="remain">คงเหลือต้องชำระ</label>
                                    <input type="text" class="form-control" id="remain" name="remain" disabled>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-6">
                                <div class="form-group">
                                    <label for="method">รูปแบบการชำระ <span class="text-red">*</span></label>
                                    <select id="method" name="method" class="selectpicker show-menu-arrow form-control" title="--เลือก--" required>
                                        <option value="เงินสด">เงินสด</option>
                                        <option value="โอน">โอนผ่านบัญชี</option>
                                        <option value="บัตรเครดิต">บัตรเครดิต</option>
                                    </select>
                                    <?php $__errorArgs = ['method'];
$__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="payTime" class="modal-label-card float-left mb-2">เวลาที่ชำระ <span class="text-red">*</span></label>
                                    <div class="input-group mb-3">
                                        <input type="text" class="form-control" id="payTime" name="payTime" 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 = ['payTime'];
$__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>
            </div>
        </div>
        <!-- Booking section -->
        <div class="row">
            <div class="col-12">
                <div class="card card-outline card-success">
                    <div class="card-header">
                        <h3 class="card-title">ตารางเรียน</h3>
                    </div>
                    <div class="card-body">
                        <?php for($x = 1; $x <= 5; $x++): ?>
                        <!-- 1 -->
                        <div class="row" id="bookingRow<?php echo e($x); ?>">
                            <div class="col-1">
                                <div class="form-group text-center">
                                    <label for="drive<?php echo e($x); ?>">ครั้งที่ <?php echo e($x); ?></label>
                                    <div class="icheck-nephritis">
                                        <input type="checkbox" id="drive<?php echo e($x); ?>" name="drive<?php echo e($x); ?>" value="1">
                                        <label for="drive<?php echo e($x); ?>"></label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-1">
                                <div class="form-group">
                                    <label for="gear<?php echo e($x); ?>">เกียร์ <span class="text-red">*</span></label>
                                    <select id="gear<?php echo e($x); ?>" name="gear<?php echo e($x); ?>" class="selectpicker show-menu-arrow form-control" title="--เลือก--" disabled required>
                                      <option value="ออโต้">ออโต้</option>
                                      <option value="ธรรมดา" >ธรรมดา</option>
                                    </select>
                                    <?php $__errorArgs = ['gear<?php echo e($x); ?>'];
$__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<?php echo e($x); ?>">วันที่ <span class="text-red">*</span></label>
                                    <div class="input-group mb-3">
                                        <input type="text" class="form-control" id="date<?php echo e($x); ?>" name="date<?php echo e($x); ?>" placeholder="ครั้งที่ <?php echo e($x); ?>" autocomplete="off" disabled required>
                                        <div class="input-group-append">
                                            <span class="input-group-text"><i class="far fa-calendar-alt"></i></span>
                                        </div>
                                    </div>
                                    <?php $__errorArgs = ['date<?php echo e($x); ?>'];
$__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<?php echo e($x); ?>">เวลาเริ่ม <span class="text-red">*</span></label>
                                    <select id="starttime<?php echo e($x); ?>" name="starttime<?php echo e($x); ?>" class="selectpicker show-menu-arrow form-control" title="--เลือก--" disabled 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<?php echo e($x); ?>'];
$__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="hour<?php echo e($x); ?>">รายวิชา<span class="text-red">*</span></label>
                                    <select id="hour<?php echo e($x); ?>" name="hour<?php echo e($x); ?>" class="selectpicker show-menu-arrow form-control" title="--เลือก--" disabled required>
                                    </select>
                                    <?php $__errorArgs = ['hour<?php echo e($x); ?>'];
$__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<?php echo e($x); ?>">เวลาสิ้นสุด</label>
                                    <input type="text" class="form-control" id="endtime<?php echo e($x); ?>" name="endtime<?php echo e($x); ?>" placeholder="เวลาสิ้นสุด" readonly>
                                    <?php $__errorArgs = ['endtime<?php echo e($x); ?>'];
$__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<?php echo e($x); ?>">รถ <span class="text-red">*</span></label>
                                    <select id="vehicle<?php echo e($x); ?>" name="vehicle<?php echo e($x); ?>" class="selectpicker show-menu-arrow form-control" title="--เลือก--" disabled required>
                                    </select>
                                    <?php $__errorArgs = ['vehicle<?php echo e($x); ?>'];
$__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>
                        <?php endfor; ?>
                    </div>
                </div>
            </div>
        </div>

        

        <!-- button -->
        <div class="row">
            <div class="col-12">
                    <div class="row mt-1 mb-3">
                        <div class="col-12">
                            <div style="float:left">
                                <a href="<?php echo e(route('student.index')); ?>" class="btn btn-outline-secondary"><i class="fas fa-chevron-left"></i> ย้อนกลับ</a>
                            </div>
                            <div style="float: right">
                                <button type="reset" class="btn btn-outline-secondary" value="reset">ล้างข้อความ</button>
                                
                                
                                <button type="submit" class="btn btn-success ml-2" value="add-student">เพิ่มนักเรียน</button>
                            </div>
                        </div>
                    </div>
            </div>
        </div>

    </form>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('footerscript'); ?>
<script src="<?php echo e(asset('js/bootstrap-select.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/bootstrap-datepicker.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/bootstrap-datepicker.th.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/bootstrap-timepicker.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/JQL.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/typeahead.bundle.js')); ?>"></script>
<script src="<?php echo e(asset('js/jquery.Thailand.min.js')); ?>"></script>
<script src="<?php echo e(asset('js/student.js')); ?>"></script>
<script src="<?php echo e(asset('js/custom.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.web', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\system-test.pongpetrdriving.com\resources\views/student/create.blade.php ENDPATH**/ ?>