@extends('layouts.app') @section('title', __('Checkout')) @section('content')
@include('storefront.checkout.partials.checkout-progress', [ 'current' => 'shipping', ])

{{ __('Checkout') }}

{{ __('Enter your delivery information to continue.') }}

{{ __('Back to Cart') }}
@if(session('success')) @endif @if(session('status')) @endif @if(session('error')) @endif @if($errors->any()) @endif {{-- Both checkout creation and shipping-quote refresh use this same form. The quote button changes the destination with "formaction". --}}
@csrf
@include('storefront.checkout.partials.shipping-address-form', [ 'address' => $address, 'countries' => $countries, 'hasPhysicalProducts' => $hasPhysicalProducts, ]) @if($hasPhysicalProducts)
{{ __('Delivery Options') }}

{{ __('Enter or update your address, then refresh the available delivery options.') }}

@if(! empty($quotes)) @include('storefront.checkout.partials.shipping-quotes', [ 'quotes' => $quotes, 'cart' => $cart, ]) @else
{{ __('Shipping options:') }} {{ __('Complete your country and state information, then select Update Delivery Options.') }}
@endif @endif @include('storefront.checkout.partials.cart-review', [ 'cart' => $cart, ])
@include('storefront.checkout.partials.order-summary', [ 'cart' => $cart, 'subtotal' => $subtotal, 'shippingCost' => $shippingCost, 'estimatedTotal' => $estimatedTotal, 'hasPhysicalProducts' => $hasPhysicalProducts, ])
@endsection @push('styles') @endpush @push('scripts') @endpush