@forelse ($cartItems as $cart) @foreach ($cart->items as $item)
  • {{ $item->name }}

    {{ $item->name }}

    SKU: #{{ $item->sku }}
  • ${{ number_format($item->price ?? 0, 2) }}
  • Qty

  • Total: ${{ number_format($item->total_amount ?? $item->price * $item->quantity, 2) }}
@endforeach @empty

No items in your cart.

@endforelse
@if ($cartItems->isNotEmpty()) @php $cart = $cartItems->first(); @endphp

Delivery/Pickup Options

coupon) ? 'readonly' : '' }} /> {{-- {{ dd($cart) }} --}}
@if (!empty($cart->discount_code))

Applied Coupon: {{ $cart->discount_code }}

@endif
{{--
$100 CAD
HST: $100 CAD
--}}

Order Summary

Order sub-total
${{ number_format($cart->total_amount, 2) }}
Tax
${{ number_format($cart->tax_total, 2) }}
{{-- {{ dd($cart->tax_total) }} --}}
Discount
${{ number_format($cart->discount_amount, 2) }} {{-- {{dd($cart->discount_amount)}} --}}
Order Total
${{ number_format($cart->grand_total, 2) }}
@endif