@extends('master') @section('main_content') @if (count($cart) != 0) @php $sum = 0; @endphp CheckoutYou currently have {{count($cart)}} item(s) in your basket Home Checkout Address Delivery Method Payment Method Order Review Product/Erase Price Quantity Unit Price @foreach ($cart as $product) {{ $product['name'] }}Size: {{$product['attributes']['size']}} ${{$product['price']}} {{$product['quantity']}} ${{$totle = $product['price'] * $product['quantity'] }} @php $sum = $sum +$totle; @endphp @endforeach Total ${{$sum}} Back to Shop Place an order Order Summary Shipping and additional costs are calculated based on values you have entered Order Subtotal ${{$sum}} Shipping and handling$10.00 Tax$0.00 Total${{$sum + 10}} @else nothing to show get in to the Shop @endif @endsection
You currently have {{count($cart)}} item(s) in your basket
Shipping and additional costs are calculated based on values you have entered
nothing to show get in to the Shop