{{-- 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. --}}

{{ __('checkout.account_title') }}

@if ($account['verified'])
{{ __('checkout.account_verified', ['phone' => $account['verified']['phone']]) }}

{{ $account['existing'] ? __('checkout.account_existing_note', ['name' => $account['existing']->name]) : __('checkout.account_created_note') }}

@elseif ($account['pending'])

{{ __('checkout.account_pending', ['target' => $account['pending']['masked']]) }}

@else

{{ __('checkout.account_sub') }}

{{ __('checkout.account_hint') }}

@endif
@endunless