File: /home/armgroup/libs/storage/framework/views/b9ea500053bb48da5e5e7abd24068b902b142c1e.php
<?php $__env->startSection('header'); ?>
<link rel="stylesheet" href="<?php echo e(asset('css/cart.css')); ?>"/>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="container-fluid body-content my-5">
<div class="row">
<div class="col-12 p-0">
<h2 class="text-center">
<span>سبد خرید</span>
</h2>
</div>
</div>
<hr>
<div class="row">
<div class="col-lg-9 col-md-8 col-12 pl-xl-0 pl-lg-0 pl-md-0 p-r-mob">
<div class="card">
<div class="card-body">
<?php $__currentLoopData = $carts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$product = $products->find($cart->id);
?>
<div class="row">
<div class="col-md-3 col-3 p-0">
<a class="d-block text-center"
href="<?php echo e(route('products.show', $product->slug)); ?>">
<img src="<?php echo e(asset($product->image)); ?>"
alt="<?php echo e($product->name); ?>"
class="img-fluid"
style="width:100px; height: 100px;">
</a>
</div>
<div class="col-md-9 col-9 p-0">
<div class="d-block crd-pro-name">
<h5><?php echo e($product->name); ?></h5>
</div>
<?php if(count($cart->options)): ?>
<div class="d-block mt-1 crd-pro-name-option">
<span class="fas fa-list cart-icon"></span> <?php echo e($cart->options['name']); ?>
</div>
<?php endif; ?>
<div class="d-block mt-1 crd-pro-name-option">
<span class="far fa-save cart-icon"></span> موجود در انبار <?php echo e(settings('title')); ?>
</div>
<div class="d-block mt-1 crd-pro-name-option">
<span class="fas fa-shipping-fast cart-icon"></span>
<?php if($product->sending_days > 0): ?>
ارسال از <?php echo e($product->sending_days); ?> روزکاری دیگر
<?php else: ?>
ارسال فوری
<?php endif; ?>
</div>
<?php
if (! isset($_instance)) {
$html = \Livewire\Livewire::mount('frontend.cart.index', ['price' => $cart->price,'qty' => $cart->qty,'rowId' => $cart->rowId,'withoutSpecial' => $cart->name])->html();
} elseif ($_instance->childHasBeenRendered($cart->rowId)) {
$componentId = $_instance->getRenderedChildComponentId($cart->rowId);
$componentTag = $_instance->getRenderedChildComponentTagName($cart->rowId);
$html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
$_instance->preserveRenderedChild($cart->rowId);
} else {
$response = \Livewire\Livewire::mount('frontend.cart.index', ['price' => $cart->price,'qty' => $cart->qty,'rowId' => $cart->rowId,'withoutSpecial' => $cart->name]);
$html = $response->html();
$_instance->logRenderedChild($cart->rowId, $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
</div>
</div>
<?php if (! ($loop->last)): ?> <hr> <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
<div class="col-lg-3 col-md-4 col-12 pr-xl-0 pr-lg-0 pr-md-0 c-col-cost p-r-mob">
<div class="card">
<div class="card-body">
<div class="row align-items-center">
<div class="col-6 text-start">
<b>جمع سبد خرید</b>
</div>
<div class="col-6 text-end">
<span class="card-total-cost">
<b style="font-size: 18px;" id="total-price"><?php echo e($total); ?></b>
</span>
<small>تومان</small>
</div>
<div class="col-12 text-start pt-3">
<small class="text-justify">هزینهی ارسال در ادامه بر اساس آدرس، زمان و نحوهی ارسال انتخابی شما محاسبه و به این مبلغ اضافه خواهد شد</small>
</div>
</div>
<div class="row mt-2">
<div class="col-12 p-0">
<div class="d-block">
<a href="<?php echo e(route('addresses.index')); ?>" class="btn btn-danger form-control sweet-btn">ادامه فرآیند خرید</a>
</div>
</div>
</div>
</div>
</div>
<div class="mt-4">
<p class="text-muted">کالاهای موجود در سبد شما ثبت و رزرو نشدهاند، برای ثبت سفارش مراحل بعدی را تکمیل کنید.</p>
</div>
<?php if(settings('shipping-free-price')): ?>
<div class="card mt-4">
<div class="card-body">
<div class="row">
<div class="col-7">
<b>ارسال رایگان سفارش</b>
<p class="text-muted pt-2">سفارشهای بالای <?php echo e(number_format(settings('shipping-free-price'))); ?> تومان</p>
</div>
<div class="col-5">
<img src="<?php echo e(asset('images/defaults/shipping.png')); ?>"
alt="ارسال رایگان">
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/masomi/armshop/resources/views/frontend/cart/index.blade.php ENDPATH**/ ?>