Eshop-Laravel/storage/framework/views/7e31cf869f1155311f6245bdb41960a587189784.php
2019-10-18 12:25:37 +03:00

33 lines
No EOL
1.5 KiB
PHP

<?php $__env->startSection('main_content'); ?>
<?php
$sum =0;
?>
<?php $__currentLoopData = unserialize($order[0]->data); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="item">
<div class="row d-flex align-items-center">
<div class="col-6">
<div class="d-flex align-items-center">
<img width="90" src="<?php echo e(asset('images') . '/'. $value['attributes']['img']); ?>" alt="..." class="img-fluid">
<div class="title"><a href="detail.html">
<h6><?php echo e($value['name']); ?></h6>
<span class="text-muted">Size: Large</span></a></div>
</div>
</div>
<div class="col-2"><span>$<?php echo e($value['price']); ?></span></div>
<div class="col-2"><?php echo e($value['quantity']); ?></div>
<div class="col-2 text-right"><span>$<?php echo e($totle = $value['price'] * $value['quantity']); ?></span>
</div>
</div>
</div>
<?php
$sum = $sum +$totle;
?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<h2>Total :$ <?php echo e($sum); ?> + $10 shipping = <span style="color:purple"> $<?php echo e($sum + 10); ?></span></h2>
<a href="<?php echo e(url('cms/getUserOrders/' . $order[0]->user_id)); ?>">Go Back</a>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('cms.cms-master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>