@extends('layouts.account') @section('title', __('storefront.account.nav_profile')) @php $wantsInvoice = (bool) old('invoice', filled($customer?->company_name) || filled($customer?->tax_identifier)); $regionOptions = $regions->map(fn ($region) => [ 'value' => $region->name, 'label' => Lang::has("core::states.{$region->name}") ? __("core::states.{$region->name}") : $region->name, ])->all(); @endphp @section('account')

{{ __('storefront.account.nav_profile') }}

{{-- Email: the login itself, so it's changed through its own verified flow --}}

{{ __('storefront.account.email_heading') }}

@csrf @method('PUT') {{-- Details --}}

{{ __('storefront.account.details_heading') }}

{{-- Invoice details, revealed by the checkbox (CSS :has(), no JS). Not `required` in HTML: a hidden required field would block submit, so the server requires them only when the box is ticked. --}}
{{-- Address: one, used as both shipping and billing default --}}

{{ __('storefront.account.address_heading') }}

{{-- Standing opt-in for abandoned-cart reminders (explicit, off by default); checkout starts from it and can change it again. --}}

{{ __('storefront.account.emails_heading') }}

{{ __('storefront.account.save') }}
{{-- Delete account --}}

{{ __('storefront.account.delete_heading') }}

{{ __('storefront.account.delete_text') }}

{{ __('storefront.account.delete') }}
@endsection