@extends('layouts.app') @section('title', 'Checkout') @section('content')

Checkout

Shipping Information
@csrf
@error('shipping_address')
{{ $message }}
@enderror
@error('billing_address')
{{ $message }}
@enderror
Payment Method
@foreach($paymentMethods as $method)
@endforeach
Order Notes (Optional)
Order Summary
@foreach($cartItems as $productId => $item)
{{ substr($item['product']->name, 0, 20) }} x{{ $item['quantity'] }} {{ \App\Support\Currency::symbol() }}{{ number_format($item['total'], 2) }}
@endforeach
Subtotal: {{ \App\Support\Currency::symbol() }}{{ number_format($subtotal, 2) }}
Shipping: {{ \App\Support\Currency::symbol() }}{{ number_format($shipping, 2) }}

Total: {{ \App\Support\Currency::symbol() }}{{ number_format($subtotal + $shipping, 2) }}
@endsection