{{-- The address an invoice is issued to. Asked wherever an account is opened, because everything downstream needs it and none of it can be guessed: the tax rate is chosen from the country and state, the invoice PDF prints the address, e-invoicing sends it to the tax authority, and a domain registration is refused without a valid registrant address. Left to the profile page it is simply never filled in, and the first invoice goes out wrong. Expects: $countries (code => name); optionally $client for existing values, $gridClass for the two-column class the host page styles, and showPhone=false where the page has its own phone field. --}} @php($addr = $client ?? null) @php($grid = $gridClass ?? 'form-grid-2') @if($showCountry ?? true)
@error('country')
{{ $message }}
@enderror
@endif
@error('address1')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@error('postcode')
{{ $message }}
@enderror
{{-- A seller bound by the Turkish invoicing rules needs the buyer's phone, and checkout required it (CartController::validateBillingAddress) without ever asking for it: no guest could finish an order. Reported by ENA Hosting. A page with a phone field of its own passes showPhone=false. --}} @if(\App\Support\BillingIdentity::turkish() && ($showPhone ?? true))
@error('phone_number')
{{ $message }}
@enderror
@endif @if(\App\Support\BillingIdentity::turkish()) {{-- Where the seller is bound by the Turkish invoicing rules the buyer has to be typed: a company by trade title, tax office and tax number, a private person by national ID. Elsewhere the tax number below is enough. --}}
@error('client_type')
{{ $message }}
@enderror
@error('national_id')
{{ $message }}
@enderror
@error('company_name')
{{ $message }}
@enderror
@error('tax_office')
{{ $message }}
@enderror
@endif
@error('state')
{{ $message }}
@enderror
{{ __('common.form.tax_id_hint') }} @error('tax_id')
{{ $message }}
@enderror