@if (Session::has('posCart')) @php $subtotal = 0; $tax = 0; $shipping = 0; @endphp @forelse (Session::get('posCart') as $key => $cartItem) @php $subtotal += $cartItem['price']*$cartItem['quantity']; $tax += $cartItem['tax']*$cartItem['quantity']; $shipping += $cartItem['shipping']*$cartItem['quantity']; if(Session::get('shipping', 0) == 0){ $shipping = 0; } @endphp @empty @endforelse @endif
{{translate('Product')}} {{translate('QTY')}} {{translate('Price')}} {{translate('Subtotal')}} {{translate('Remove')}}
{{ \App\Product::find($cartItem['id'])->name }} ({{ $cartItem['variant'] }})
{{ single_price($cartItem['price']) }} {{ single_price($cartItem['price']*$cartItem['quantity']) }}

No Product Added