<?php if(isset($special)): ?>
    <div class="prod_card_row">
        <div class="row">
            <div class="col-lg-5">
                <a href="#">
                    <div class="img_box">
                        <img src="<?php echo e(asset($product->image)); ?>" class="secImg" alt="" />
                    </div>
                </a>
            </div>
            <div class="col-lg-7">
                <div class="card-body">
                    <div class="d-flex justify-content-between align-items-center">
                        <h4 class="prod_name fs-2 fw-bold"> <?php echo e($product->title); ?> </h4>
                        <button type="button" style="cursor: pointer" onclick="favorite(this)" data-id="<?php echo e($product->id); ?>" class="fav_butn butn sm_butn white_butn">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/heart.svg" class="icon icon15" alt="" />
                        </button>
                    </div>
                    <div class="price_box d-flex align-items-center my-2">
                        <span class="color-primary">  <b><?php echo e($product->price); ?> <?php echo e(__('web.sar')); ?> </b></span>
                    </div>

                    <?php if(count($product->sizes)): ?>
                        <div class="sizes_box">
                            <h6 class="text-center fs-5 fw-bold mb-2"><?php echo e(__('web.sizes')); ?></h6>
                            <div class="sizes_radios d-flex flex-wrap justify-content-center">
                                <?php $__currentLoopData = $product->sizes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php echo $__env->make('web.pages.components.products.size',['size'=>$row,'product'=>$product,'type'=>($type ?? '')], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                        <button type="button" onclick="sizeProduct(this)" product-id="<?php echo e($product->id); ?>" action-id="<?php echo e(route('web.product.details',$product->id)); ?>" class="butn w-100 mt-2 cart_butn">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/cart-2.svg" class="icon me-2" alt="" /> <?php echo e(__('web.add_to_cart')); ?>

                        </button>
                    <?php else: ?>
                        <button type="button" style="cursor: pointer" onclick="addToCart(this)" count-id="1" data-id="<?php echo e($product->id); ?>" class="butn w-100 mt-2 cart_butn">
                            <img src="<?php echo e(url('')); ?>/assets/web/images/icons/cart-2.svg" class="icon me-2" alt="" /> <?php echo e(__('web.add_to_cart')); ?>

                        </button>
                    <?php endif; ?>


                </div>
            </div>
        </div>
    </div>
<?php else: ?>
    <div class="prod_card">
        <div class="img_box">
            <a href="<?php echo e(route('web.product.details',$product->id)); ?>">
                <img src="<?php echo e(asset($product->image)); ?>" class="secImg" alt="" />
            </a>
            <?php if(count($product->sizes)): ?>
                    <button type="button" onclick="sizeProduct(this)" product-id="<?php echo e($product->id); ?>" action-id="<?php echo e(route('web.product.details',$product->id)); ?>" class="butn white_butn cart_butn">
                        <img src="<?php echo e(url('')); ?>/assets/web/images/icons/cart-2.svg" class="icon me-2" alt="" /> <?php echo e(__('web.show_product')); ?>

                    </button>
                    <div class="sizes_box">
                        <h6 class="text-center fs-5 fw-bold mb-2"><?php echo e(__('web.sizes')); ?></h6>
                        <div class="sizes_radios d-flex flex-wrap justify-content-center">
                            <?php $__currentLoopData = $product->sizes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php echo $__env->make('web.pages.components.products.size',['size'=>$row,'product'=>$product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
            <?php else: ?>
                <button type="button" style="cursor: pointer" onclick="addToCart(this)" count-id="1" data-id="<?php echo e($product->id); ?>"  class="butn white_butn cart_butn">
                    <img src="<?php echo e(url('')); ?>/assets/web/images/icons/cart-2.svg" class="icon me-2" alt="" /> <?php echo e(__('web.add_to_cart')); ?>

                </button>
            <?php endif; ?>
            <span class="rate_badge"> <i class="fa-solid fa-star"></i> <?php echo e($product->rate); ?> </span>
            <?php if($product->cost_discount): ?>
                <?php echo $__env->make('web.pages.components.products.offer',['product'=>$product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
        </div>
        <div class="card-body">
            <div class="d-flex justify-content-between align-items-center">
                <h4 class="prod_name fs-2 fw-bold"> <?php echo $product->title; ?> </h4>
                <button type="button" style="cursor: pointer" onclick="favorite(this)" data-id="<?php echo e($product->id); ?>" class="fav_butn butn sm_butn white_butn <?php echo e(auth()->user()?->favorited($product->id) ? 'active': ''); ?>">
                    <img src="<?php echo e(url('')); ?>/assets/web/images/icons/heart.svg" class="icon" alt="" />
                </button>
            </div>
            <div class="price_box d-flex align-items-center mt-3">
                <span class="color-primary">  <b> <?php echo $__env->make('web.pages.components.products.cost',['product'=>$product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>  </b></span>
            </div>

        </div>
    </div>
<?php endif; ?>
<?php /**PATH /Applications/MAMP/htdocs/flower/resources/views/web/pages/components/products/card.blade.php ENDPATH**/ ?>