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

Checkout

@csrf
{{-- Shipping & Payment --}}
{{-- Shipping Address --}}

Shipping Address

@if($addresses->count() > 0)
@endif
{{-- Payment Method --}}

Payment Method

{{-- Stripe Card Element --}}
{{-- Order Summary --}}

Order Summary

@foreach($cartItems as $item)

{{ $item->product->name }}

Qty: {{ $item->quantity }}

${{ number_format($item->subtotal, 2) }}

@endforeach
Subtotal${{ number_format($subtotal, 2) }}
@if($discount > 0)
Discount-${{ number_format($discount, 2) }}
@endif
Shipping${{ number_format($shippingCost, 2) }}
Tax (8%)${{ number_format($tax, 2) }}
Total ${{ number_format($total, 2) }}

🔒 Secure checkout powered by Stripe

@endsection @push('scripts') @endpush