@extends('storefront.layout') @section('title', 'Checkout') @section('content') Checkout Review your order, choose how you'll pay, and we'll send payment instructions by email. @foreach ($notices as $n) {{ $n }} @endforeach @if ($errors->any()) @foreach ($errors->all() as $err) {{ $err }} @endforeach @endif @php $defaultShippingAddress = $shippingAddresses->firstWhere('is_default', true) ?? $shippingAddresses->first(); $selectedShippingAddressId = (string) old('shipping_address_id', $defaultShippingAddress?->id ?? ''); $shippingAddressOptions = $shippingAddresses->map(fn ($addr) => [ 'id' => $addr->id, 'contact_name' => $addr->contact_name ?? $customer->company_name, 'phone' => $addr->phone, 'line1' => $addr->line1, 'line2' => $addr->line2, 'city' => $addr->city, 'state' => $addr->state, 'postal_code' => $addr->postal_code, 'country_code' => $addr->country_code, 'is_default' => (bool) $addr->is_default, ])->values(); @endphp @csrf {{-- Shipping --}} Shipping address Choose an address or add a new one. Add address No shipping address on file. Add one here to continue checkout. , , - @if ($canManageAddresses) @endif New shipping address Save it here and it will be selected for this order. Close Contact name Phone Country United States Address line 1 * Address line 2 City * State / Province ZIP / Postal code Make default shipping address Cancel Save and use this address Saving... Delete this address? This removes the saved shipping address from your account. You can add it again later if needed. , Keep address Delete address Deleting... {{-- Payment --}} Payment method Choose ACH, wire, card, or approved payment terms. @foreach ($paymentMethods as $pm) @php $paymentTermsUnavailable = $pm === \App\Enums\PaymentMethod::Invoice && $approvedCreditApplication === null; @endphp @if ($paymentTermsUnavailable) Pay on Terms Apply for business credit to request payment terms. Approval and credit limits are not guaranteed. Apply for payment terms @continue @endif first) required class="mt-1"> {{ $pm === \App\Enums\PaymentMethod::Invoice ? 'NET '.(int) $approvedCreditApplication->approved_terms_days : $pm->getLabel() }} @switch($pm->value) @case('ach') Transfer from a U.S. bank account using the instructions provided. @break @case('wire') Send a bank wire using the instructions provided. @break @case('invoice') Approved for this account, subject to the available credit limit. @break @case('card') Pay now on the secure hosted card payment page. @break @endswitch @endforeach @error('payment_method') {{ $message }} @enderror {{-- Extra fields --}} Promo code (optional) Apply PO number (optional) Notes for our team (optional) {{-- Summary --}} @endsection
Review your order, choose how you'll pay, and we'll send payment instructions by email.
Choose an address or add a new one.
Save it here and it will be selected for this order.
This removes the saved shipping address from your account. You can add it again later if needed.
,
Choose ACH, wire, card, or approved payment terms.
Pay on Terms
Apply for business credit to request payment terms. Approval and credit limits are not guaranteed.
{{ $message }}