<?php $__env->startSection('css'); ?>
<link href="<?php echo e(asset('css/bootstrap-select.min.css')); ?>" rel="stylesheet" />
<link href="<?php echo e(asset('css/sweetalert2.min.css')); ?>" rel="stylesheet" />
<link href="<?php echo e(asset('css/bootstrap-datepicker.min.css')); ?>" rel="stylesheet" />
<link href="<?php echo e(asset('css/icheck-bootstrap.min.css')); ?>" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.1.2/css/tempusdominus-bootstrap-4.min.css" integrity="sha512-PMjWzHVtwxdq7m7GIxBot5vdxUY+5aKP9wpKtvnNBZrVv1srI8tU6xvFMzG8crLNcMj/8Xl/WWmo/oAP/40p1g==" crossorigin="anonymous" />
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container-fluid pt-3">
        <div class="row mb-3">
            <div class="col-12">
                <a href="<?php echo e(route('pdf.registration', $student->sid)); ?>" target="_blank" class="btn btn-sm btn-outline-secondary"><i class="fas fa-file-alt"></i> พิมพ์ใบสมัคร</a>
                <a href="<?php echo e(route('pdf.receipt', $student->sid)); ?>" target="_blank" class="btn btn-sm btn-outline-secondary ml-2"><i class="fas fa-print"></i> พิมพ์ใบเสร็จ</a>
                <a href="<?php echo e(route('pdf.schedule', $student->sid)); ?>" target="_blank" class="btn btn-sm btn-outline-secondary ml-2"><i class="fas fa-calendar-alt"></i> พิมพ์ใบนัดหมาย</a>
                <a href="<?php echo e(route('pdf.student', $student->sid)); ?>" target="_blank" class="btn btn-sm btn-outline-secondary ml-2"><i class="fas fa-id-card"></i> พิมพ์บัตรประจำตัว</a>
                <a href="<?php echo e(route('pdf.evaluation', $student->sid)); ?>" target="_blank" class="btn btn-sm btn-outline-secondary ml-2"><i class="fas fa-file-alt"></i> แบบประเมินผู้สอน</a>
            </div>
        </div>
        <div class="row">
            <div class="col-6">
                <div class="card card-outline card-success">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-12">
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">เลขที่สมัคร</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->code_no."/".$student->code_month."/".$student->code_branch); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">วันที่สมัคร</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e(formatDateFromDB($student->register_date)); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">สาขาที่สมัคร</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->branchName); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">เพศ</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->gender); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">ชื่อ - นามสกุล</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->title.$student->firstname ." ". $student->lastname); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">ชื่อเล่น</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->nickname); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">บัตรประชาชน</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->idcard); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">วันเกิด</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e(formatDateFromDB($student->birthdate)); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">เชื้อชาติ / สัญชาติ</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->race ." / ". $student->nationality); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">ศาสนา</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->religion); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">ที่อยู่</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->address ." ". $student->district ." ". $student->amphoe ." ". $student->province); ?></p>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-3">
                                        <p class="showTitle">หมายเลขโทรศัพท์</p>
                                    </div>
                                    <div class="col-9">
                                        <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->phone_1); ?> <?php if($student->phone_2 != null): ?> , <?php echo e($student->phone_2); ?> <?php endif; ?></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>  <!-- div card body -->

                </div>
            </div>
            <div class="col-6">
                <div class="row">
                    <div class="col-12">
                        <div class="card card-outline card-success">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-12">
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">บุคคลที่ติดต่อกรณีฉุกเฉิน</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->emergency_name); ?></p>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">หมายเลขโทรศัพท์</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->emergency_phone); ?></p>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">ใบอนุญาตขับขี่</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->license_status); ?></p>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">รู้จักโรงเรียนจาก</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->know_school); ?></p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>  <!-- div card body -->
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="card card-outline card-success">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-12">
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">หลักสูตรที่เรียน</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->courseType . " เกียร์: " . $student->gear ." , ". $student->name); ?></p>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">รูปแบบการเรียน</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($student->purpose); ?></p>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">ค่าเรียน</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e(number_format($student->course_cost) ." บาท"); ?></p>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-3">
                                                <p class="showTitle">ส่วนลด</p>
                                            </div>
                                            <div class="col-9">
                                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e(number_format($student->discount) ." บาท"); ?></p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>  <!-- div card body -->
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-6">
                <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-12">
                            <div class="row">
                                <div class="col-3">
                                    <p class="showTitle">อบรมและสอบใบขับขี่</p>
                                </div>
                                <div class="col-9">
                                    <p><i class="fas fa-angle-right mr-3"></i> วันที่&nbsp;&nbsp;<?php if($student->exam_date != null): ?> <?php echo e(formatDateFromDB($student->exam_date)); ?> <?php endif; ?>&nbsp;&nbsp;,&nbsp;&nbsp;เวลา 06.30 - 16.00 น.</p>
                                </div>
                            </div>
                            <?php $__currentLoopData = $bookings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $indexKey => $booking): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="row">
                                <div class="col-3">
                                    <p class="showTitle">ครั้งที่ <?php echo e(($indexKey + 1)); ?></p>
                                </div>
                                <div class="col-9">
                                <p><i class="fas fa-angle-right mr-3"></i> วันที่&nbsp;&nbsp;<?php if($booking->date != null): ?> <?php echo e(formatDateFromDB($booking->date)); ?> <?php endif; ?>&nbsp;&nbsp;,&nbsp;&nbsp;เวลา <?php echo e(formatTimeFromDB($booking->starttime) ." - ". formatTimeFromDB($booking->endtime)); ?> น. &nbsp;&nbsp;&nbsp;&nbsp;( <?php echo e(calHour($booking->starttime, $booking->endtime)); ?> ชั่วโมง )</p>
                                </div>
                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-12 mb-3">
                <div style="float:left">
                    <a href="<?php echo e(route('student.graduated')); ?>" class="btn btn-outline-secondary"><i class="fas fa-chevron-left"></i> ย้อนกลับ</a>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('footerscript'); ?>
<script src="<?php echo e(asset('js/sweetalert2.min.js')); ?>"></script>
<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="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.1.2/js/tempusdominus-bootstrap-4.min.js" integrity="sha512-2JBCbWoMJPH+Uj7Wq5OLub8E5edWHlTM4ar/YJkZh3plwB2INhhOC3eDoqHm1Za/ZOSksrLlURLoyXVdfQXqwg==" crossorigin="anonymous"></script>
<script src="<?php echo e(asset('js/booking.js')); ?>"></script>
<script src="<?php echo e(asset('js/custom.js')); ?>"></script>
<?php if(session('feedback')): ?>
<script>
    Swal.fire({
                text: '<?php echo e(session('feedback')); ?>',
                icon: 'success',
                confirmButtonText: 'ตกลง',
                confirmButtonColor: '#62966C'
    })
</script>
<?php endif; ?>
<?php $__env->stopSection(); ?>

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