<?php $__env->startSection('styles'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('header'); ?>
    <?php echo $__env->make('includes.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="row mt-4">
    <?php echo $__env->make('includes.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div class="col-md-6">
            <img class="card-img-top" height="200" width="150" src="<?php echo e(URL::to('images/'.$product->file)); ?>" alt="Produit">
        </div>
        <div class="col-md-6 mt-4">
            <h5 class="card-title"><?php echo e($product->name); ?></h5>
            <p class="card-text"><?php echo e($product->prix); ?> DH</p>
            <form action="<?php echo e(route('cart.add')); ?>" method="post">
                <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                <div class="qte mb-2">
                    <a href="#" class="btn btn-dark" id="moins">-</a>
                    <input type="text" style="width:8%;text-align:center;padding:5px;" id="qte" name="qte" value="0">
                    <a href="#" class="btn btn-dark" id="plus">+</a>
                    <input type="hidden" name="product_id" value="<?php echo e($product->id); ?>">
                </div>
                <button type="submit" class="btn btn-primary">Ajouter au panier</button>
            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('footer'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('includes.main-layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>