<?php $__env->startSection('content'); ?>
    <div class="container-fluid pt-3">
        <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">
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">คันที่</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p ><i class="fas fa-angle-right mr-3"></i> <?php echo e($vehicle->number); ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">ประเภท</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p ><i class="fas fa-angle-right mr-3"></i> <?php echo e($vehicle->type); ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">รถ</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($vehicle->brand." ". $vehicle->model); ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">เกียร์</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p ><i class="fas fa-angle-right mr-3"></i> <?php echo e($vehicle->gear); ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">เลขตัวถัง</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p ><i class="fas fa-angle-right mr-3"></i> <?php echo e($vehicle->body_serial); ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">เลขเครื่องยนต์</p>
                            </div>
                            <div class="ol-sm-9 col-md-10">
                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($vehicle->engine_serial); ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">ลักษณะ / มาตรฐาน</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p><i class="fas fa-angle-right mr-3"></i><?php if($vehicle->characteristic != null): ?>  <?php echo e($vehicle->characteristic); ?> <?php else: ?> - <?php endif; ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">เลขทะเบียน</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e($vehicle->registration_class. " ". $vehicle->registration_number. " " .$vehicle->province); ?></p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-md-2">
                                <p class="showTitle">วันหมดอายุภาษี</p>
                            </div>
                            <div class="col-sm-9 col-md-10">
                                <p><i class="fas fa-angle-right mr-3"></i> <?php echo e(formatDateFromDB($vehicle->tax_expire)); ?></p>
                            </div>
                        </div>
                    </div>  <!-- div card body -->


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

<?php echo $__env->make('layouts.web', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/pongpetch/resources/views/vehicle/show.blade.php ENDPATH**/ ?>