<?php
    $status = [
        '1' => [
            'title' => 'Diponible',
            'class' => 'text-primary',
        ],
        '2' => [
            'title' => 'text-danger',
            'class' => ' badge-success',
        ],
    ];

    $typePart = [
        '1' => 'CNI',
        '2' => 'PASSSPORT',
    ];
?>
<?php if (isset($component)) { $__componentOriginal663168764e84b179f6ae40fec2a00491 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal663168764e84b179f6ae40fec2a00491 = $attributes; } ?>
<?php $component = App\View\Components\Frontoffice\FrontLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('frontoffice.front-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Frontoffice\FrontLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>

    <div class="no-bottom no-top zebra" id="content">
        <div id="top"></div>
        <input type="hidden" value="<?php echo e($car->price); ?>" id="carPriceID">

        <!-- section begin -->
        <section id="subheader" class="jarallax text-light">
            <img src="<?php echo e(asset('website/images/background/2.jpg')); ?>" class="jarallax-img" alt="">
            <div class="center-y relative text-center">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12 text-center">
                            <h1><?php echo e(mb_strtoupper($car->brand->name) . ' ' . mb_strtoupper($car->modele->name)); ?></h1>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </section>
        <!-- section close -->

        <section id="section-car-details">
            <?php if(session('success')): ?>
                <div class="alert alert-success text-center">
                    <?php echo e(session('success')); ?>

                </div>
            <?php endif; ?>
            <div class="container">
                <div class="row g-5">
                    <div class="col-lg-8">
                        <div id="slider-carousel" class="owl-carousel">
                            <div class="item">
                                <?php
                                    $images = $car->images;
                                ?>
                                <img src="<?php echo e(asset('car_images/' . $images[0]['image_path'])); ?>" class="img-fluid"
                                    alt="">
                            </div>
                            <?php $__currentLoopData = $images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($key != 0): ?>
                                    <img src="<?php echo e(asset('car_images/' . $image->image_path)); ?>" class="img-fluid"
                                        alt="">
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>

                    <div class="col-lg-4">

                        <div class="de-price text-center bg-danger">
                            <span class="text-uppercase text-white">Prix du véhicule / Jour</span>
                            <h4 class="text-white"><?php echo e(number_format($car->price, 0, ',', ' ') . ' XOF'); ?></h4>
                        </div>

                        <h3 class="text-center mt-3 text-primary">
                            <?php echo e(mb_strtoupper($car->brand->name) . ' ' . mb_strtoupper($car->modele->name)); ?></h3>

                        <h4>Spécifications techniques</h4>
                        <div class="de-spec">

                            <div class="d-row">
                                <span class="d-title">Marque</span>
                                <spam class="d-value text-uppercase"><?php echo e(ucfirst($car->brand->name)); ?></spam>
                            </div>

                            <div class="d-row">
                                <span class="d-title">Modèle</span>
                                <spam class="d-value text-uppercase"><?php echo e(ucfirst($car->modele->name)); ?></spam>
                            </div>

                            <div class="d-row">
                                <span class="d-title">Nombre de place</span>
                                <spam class="d-value"><?php echo e($car->number_of_places); ?> Place(s)</spam>
                            </div>

                            <div class="d-row">
                                <span class="d-title">Type de véhicule</span>
                                <spam class="d-value"><?php echo e(ucfirst($car->cartype->name)); ?></spam>
                            </div>


                            <div class="d-row">
                                <span class="d-title">Transmission</span>
                                <spam class="d-value"><?php echo e(ucfirst($car->transmissiontype->name)); ?></spam>
                            </div>


                            <div class="d-row">
                                <span class="d-title">Type de carburant</span>
                                <spam class="d-value"><?php echo e(ucfirst($car->fueltype->name)); ?></spam>
                            </div>


                            <div class="d-row">
                                <span class="d-title">Couleur</span>
                                <spam class="d-value"><?php echo e($car->color->name); ?></spam>
                            </div>


                            <div class="d-row">
                                <span class="d-title">Disponibilité</span>
                                <spam class="d-value <?php echo e($status[$car->status]['class']); ?>">
                                    <?php echo e($status[$car->status]['title']); ?></spam>
                            </div>

                        </div>

                    </div>
                </div>

                <div class="">
                    <div class="de-box mb25">
                        


                        <form id="" method="post" action="<?php echo e(route('reservation.customer')); ?>">
                            <?php echo csrf_field(); ?>
                            <input type="hidden" name="rowID" value="0">
                            <input type="hidden" name="car_id" value="<?php echo e($car->id); ?>">

                            <!--begin::-->
                            <div class="fv-row mb-2 row">
                                <div class="col-md-4">
                                    <!--begin::Label-->
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Véhicules</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    
                                    <input class="form-control form-control-solid"
                                        value="<?php echo e(mb_strtoupper($car->brand->name) . ' ' . mb_strtoupper($car->modele->name)); ?>" />
                                    <!--end::-->
                                </div>

                                <div class="col-md-4">
                                    <!--begin::Label-->
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Date debut</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid attr_date"
                                        placeholder="Date et heure de debut" id="start" name="start"
                                        value="" />
                                    <!--end::Input-->
                                    <?php if($errors->has('start')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('start')); ?></div>
                                    <?php endif; ?>
                                </div>

                                <div class="col-md-4">
                                    <!--begin::Label-->
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Date fin</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid attr_date"
                                        placeholder="Date et heure de fin" id="end" name="end"
                                        value="" />
                                    <!--end::Input-->
                                    <?php if($errors->has('end')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('end')); ?></div>
                                    <?php endif; ?>
                                </div>

                            </div>
                            <!--end::-->

                            <!--begin::-->
                            <div class="fv-row mb-2 row">
                                <div class="col-md-3">
                                    <!--begin::Label-->
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Prénoms</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid" placeholder="" name="first_name"
                                        value="" />
                                    <!--end::Input-->
                                    <?php if($errors->has('first_name')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('first_name')); ?></div>
                                    <?php endif; ?>
                                </div>
                                <div class="col-md-3">
                                    <!--begin::Label-->
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Nom</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid" placeholder="" name="last_name"
                                        value="" />
                                    <!--end::Input-->
                                    <?php if($errors->has('last_name')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('last_name')); ?></div>
                                    <?php endif; ?>
                                </div>
                                <div class="col-md-3">
                                    <!--begin::Label-->
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Téléphone</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid" placeholder="" name="phone"
                                        type="tel" value="" />
                                    <!--end::Input-->
                                    <?php if($errors->has('phone')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('phone')); ?></div>
                                    <?php endif; ?>
                                </div>
                                <div class="col-md-3">
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Adresse</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid" placeholder="" name="address"
                                        value="" />
                                    <!--end::Input-->
                                    <?php if($errors->has('address')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('address')); ?></div>
                                    <?php endif; ?>
                                </div>
                            </div>
                            <!--end::-->

                            <!--begin::-->
                            <div class="fv-row mb-2 row">
                                <div class="col-md-3">
                                    <!--begin::Label-->
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Type de pièce</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <select class="form-select cars" data-control="select2"
                                        data-placeholder="Choisir le type de pièce" name="type_part">
                                        <option></option>
                                        <?php $__empty_1 = true; $__currentLoopData = $typePart; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                            
                                            <option value="<?php echo e($key); ?>"><?php echo e($item); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        <?php endif; ?>
                                    </select>
                                    <!--end::Input-->
                                    <?php if($errors->has('type_part')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('type_part')); ?></div>
                                    <?php endif; ?>
                                </div>

                                <div class="col-md-3">
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Numéro de pièce</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid" placeholder="" name="number_part"
                                        value="" />
                                    <!--end::Input-->
                                    <?php if($errors->has('number_part')): ?>
                                        <div class="text-danger"><?php echo e($errors->first('number_part')); ?></div>
                                    <?php endif; ?>
                                </div>

                                <div class="col-md-3">
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Numéro de permis</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid" placeholder=""
                                        name="number_permit" value="" />
                                    <!--end::Input-->
                                </div>
                                <div class="col-md-3">
                                    <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                        <span class="required">Email</span>
                                        </span>
                                    </label>
                                    <!--end::Label-->
                                    <!--begin::Input-->
                                    <input type="email" class="form-control form-control-solid" placeholder=""
                                        name="email" value="" />
                                    <!--end::Input-->
                                </div>
                            </div>
                            <!--end::-->


                            <!--begin::-->
                            <div class="mb-2 row">
                                <div class="col-md-6">
                                    <div class="form-check form-switch form-check-custom form-check-solid mb-2">
                                        <input class="form-check-input h-20px w-30px" type="checkbox"
                                            id="account" />
                                        <label class="form-check-label text-primary" for="paid">
                                            Je verse un account
                                        </label>
                                    </div>
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid d-none" id="input_account"
                                        placeholder="" name="account" />
                                    <!--end::Input-->
                                </div>
                                <div class="col-md-6">
                                    <div class="form-check form-switch form-check-custom form-check-solid mb-2">
                                        <input class="form-check-input h-20px w-30px" type="checkbox"
                                            id="delivery" />
                                        <label class="form-check-label text-primary" for="paid">
                                            Me faire livrer le véhicule
                                        </label>
                                    </div>
                                    <!--begin::Input-->
                                    <input class="form-control form-control-solid d-none" id="input_delivery"
                                        placeholder="" name="delivery" value="" />
                                    <!--end::Input-->
                                </div>

                            </div>
                            <!--end::-->


                            <div class="form-check form-switch form-check-custom form-check-solid mb-2">
                                <input class="form-check-input h-20px w-30px" type="checkbox" id="paid"
                                    name="is_paid" />
                                <label class="form-check-label text-primary" for="paid">
                                    Je paie la totalité
                                </label>
                            </div>

                            <div class="form-check form-switch form-check-custom form-check-solid mb-2">
                                <input class="form-check-input h-20px w-30px" type="checkbox" id="conductor"
                                    name="conductor" />
                                <label class="form-check-label text-primary" for="paid">
                                    Je désire un conducteur
                                </label>
                            </div>

                            


                            <div class="fv-row mt-2 row">
                                <!--begin::Label-->
                                <label class="d-flex align-items-center fs-5 fw-semibold mb-2">
                                    <span class="required">Total</span>
                                    </span>
                                </label>
                                <!--end::Label-->
                                <!--begin::Input-->
                                <input class="form-control form-control-solid text-end text-primary" id="input_totat"
                                    name="total" type="text" placeholder="0.00" />
                                <!--end::Input-->
                            </div>

                            <div class="ext-center mt-4">
                                <button type="submit" class="btn btn-primary w-100" id="">Reserver</button>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </section>


    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal663168764e84b179f6ae40fec2a00491)): ?>
<?php $attributes = $__attributesOriginal663168764e84b179f6ae40fec2a00491; ?>
<?php unset($__attributesOriginal663168764e84b179f6ae40fec2a00491); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal663168764e84b179f6ae40fec2a00491)): ?>
<?php $component = $__componentOriginal663168764e84b179f6ae40fec2a00491; ?>
<?php unset($__componentOriginal663168764e84b179f6ae40fec2a00491); ?>
<?php endif; ?>
<?php /**PATH /Users/xselservices/Herd/baby-rent/resources/views/frontoffice/detail-car.blade.php ENDPATH**/ ?>