{{-- Optional customer account card for guest checkout. Rendered twice: once inside the checkout page and once as the HTML body of the JSON answers used when the browser posts the steps without a reload, so the card markup only ever lives here. Expects $account from CheckoutController::accountState(). --}} @unless ($account['customer']) {{-- The card sits inside the checkout form but posts to its own endpoints through the `form` attribute, because forms cannot nest. --}}
{{ $account['existing'] ? __('checkout.account_existing_note', ['name' => $account['existing']->name]) : __('checkout.account_created_note') }}
{{ __('checkout.account_stale') }}
{{ __('checkout.account_pending', ['target' => $account['pending']['masked']]) }}
{{ __('checkout.account_sub') }}
{{ __('checkout.account_hint') }}
@endif