@extends('master') @section('style') @endsection @section('content')

Mi carrito

@php $total = 0.00; @endphp @if(!empty($cart))
¡Tu carro tiene {{count($cart)}} ítems!
@foreach ($cart as $x => $item) @php $total = $total + $item['ListingPrice']*$item['Quantity']; $max_item = 1; if(!empty($item['SubOfferID']) and $item['SubOfferID']>0){ if(!empty($item['NumberItemsAvailable']) and $item['NumberItemsAvailable']>0){ if($item['NumberItemsAvailable'] > $item['NumberItemsSold']){ $available = $item['NumberItemsAvailable'] - $item['NumberItemsSold']; if($available >= $item['MaxSoldPerCustomer']){ $max_item = $item['MaxSoldPerCustomer']; }else{ $max_item = $available; } } }else{ $max_item = $item['MaxSoldPerCustomer']; } }else{ $max_item = $item['MaxSoldPerCustomer']; } @endphp @endforeach
Título Precio   Cantidad Subtotal
product
{{$item['MerchantName']}} {{$item['Title']}} @if(!empty($item['SubGroupLevel1'])) ({{$item['SubGroupLevel1']}} @if(!empty($item['SubGroupLevel2'])) | {{$item['SubGroupLevel2']}} @endif @if(!empty($item['SubGroupLevel3'])) | {{$item['SubGroupLevel3']}} @endif @if(!empty($item['SubGroupDate'])) | {{$item['SubGroupDate']}} @endif @if(!empty($item['SubGroupTime'])) | {{$item['SubGroupTime']}}@endif) @endif
Eliminar S/. {{number_format($item['ListingPrice'], 2, '.', '')}} S/. {{number_format($item['ListingPrice']*$item['Quantity'], 2, '.', '')}}
Total : S/.{{number_format($total, 2, '.', '')}}
@endif @endsection @section('scripts') @endsection