<?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>

        <!-- 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">
                            
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </section>
        <!-- section close -->

        <section id="section-cars">
            <div class="container">
                <div class="row align-items-center">

                    <?php $__empty_1 = true; $__currentLoopData = $cars; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $car): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php
                            $images = $car->images->toArray();
                            $path = $images[0]['image_path'];
                        ?>
                        <div class="col-lg-4">
                            <div class="de-item mb30">
                                <div class="d-img">
                                    <img src="<?php echo e(asset('car_images/' .  $path)); ?>" class="img-fluid"
                                        alt="">
                                </div>
                                <div class="d-info">
                                    <div class="d-text">
                                        <h4><?php echo e(mb_strtoupper($car->brand->name) . ' ' . mb_strtoupper($car->modele->name)); ?>


                                            <div class="d-item_like">
                                                <i class="fa fa-heart"></i><span>21</span>
                                            </div>
                                            <div class="d-atr-group">
                                                <span class="d-atr"><img src="website/images/icons/1.svg"
                                                        alt=""><?php echo e($car->number_of_places); ?></span>
                                                <span class="d-atr d-none"><img src="website/images/icons/2.svg"
                                                        alt="">2</span>
                                                <span class="d-atr"><img src="website/images/icons/3.svg"
                                                        alt=""><?php echo e($car->number_of_doors); ?></span>
                                                <span class="d-atr d-none"><img src="website/images/icons/4.svg"
                                                        alt="">SUV</span>
                                            </div>
                                            <div class="d-price">
                                                Prix par jour
                                                <span><?php echo e(number_format($car->price, 0, ',', ' ') . ' XOF'); ?></span>
                                                <a class="btn-main"
                                                    href="<?php echo e(route('car.details', $car->id)); ?>">Reserver</a>
                                            </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <p class="text-center text-danger">Aucun véhicule de ce type n'est disponible pour l'instant</p>
                    <?php endif; ?>


                </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 C:\laragon\www\baby-rent\resources\views/frontoffice/search.blade.php ENDPATH**/ ?>