{{ __('settings.title') }}

{{ __('settings.subtitle') }}

{{-- Company / billing profile --}}

{{ __('settings.company_title') }}

{{-- Beside the VAT number, deliberately, because that is the field people mistake it for. A business without a number is an ordinary small business and a consumer with one does not exist, so the two answer different questions: this one decides the fourteen-day right of withdrawal and whether reverse charge can ever apply. Nothing is preselected for a customer nobody has asked yet. --}}
{{ __('settings.customer_type') }}
@foreach ($customerTypes as $type) @endforeach

{{ __('settings.customer_type_hint') }}

@error('customerType')

{{ $message }}

@enderror
@error('billingAddress')

{{ $message }}

@enderror
{{ __('settings.save') }}
{{-- Branding --}} {{-- Own password. There was no way to change one at all — Fortify's updatePasswords feature was switched off. --}}

{{ __('admin_settings.password_title') }}

{{ __('admin_settings.password_sub') }}

{{ __('admin_settings.password_save') }}
{{-- Two-factor. Every action is re-checked server-side against a recent password confirmation — hiding the buttons stops nobody who can post to /livewire/update. --}}

{{ __('settings.twofa_title') }}

{{ $twoFactorOn ? __('settings.twofa_state_on') : __('settings.twofa_state_off') }}

{{ __('settings.twofa_sub') }}

@if (! $passwordConfirmed) {{-- The gate. A signed-in session is not enough to change how the account is protected — the risk is an unlocked machine. --}}

{{ __('settings.twofa_confirm_first') }}

{{ __('settings.twofa_confirm_button') }}
@elseif ($twoFactorOn)
{{ __('settings.twofa_new_codes') }} {{ __('settings.twofa_disable') }}
@elseif ($twoFactorPending)
{!! $twoFactorQr !!}

{{ __('settings.twofa_scan') }}

{{ __('settings.twofa_activate') }}
@else {{ __('settings.twofa_enable') }} @endif @if ($recoveryCodes) {{-- Shown once, on purpose: nobody writes down what they were never shown, and these are the way back in when the phone is gone. --}}

{{ __('settings.twofa_codes_title') }}

{{ __('settings.twofa_codes_hint') }}

    @foreach ($recoveryCodes as $code)
  • {{ $code }}
  • @endforeach
@endif
{{-- Directly under two-factor, because the two answer the same question: who can get into this account, and what can I do about it. --}}
@livewire('sessions')

{{ __('settings.branding_title') }}

{{ __('settings.branding_sub') }}

@error('brandPrimary')

{{ $message }}

@enderror
@error('brandAccent')

{{ $message }}

@enderror
@if ($logo) @elseif ($logoUrl) @else {{ __('settings.brand_default') }} @endif

{{ __('settings.brand_logo_hint') }}

@if ($logoUrl) @endif
@error('logo')

{{ $message }}

@enderror
@if ($branding['is_default'] ?? false)

{{ __('settings.brand_using_default') }}

@endif
{{ __('settings.save') }}
{{-- Package & account lifecycle --}}

{{ __('settings.package_title') }}

@if ($cancellationScheduled)

{{ __('settings.cancel_scheduled_title') }}

{{ __('settings.cancel_scheduled_body', ['date' => $instance?->service_ends_at?->local()->isoFormat('LL')]) }}

@elseif ($hasActivePackage)

{{ __('settings.package_active', ['plan' => $instance ? __('billing.plan.'.$instance->plan) : '—']) }}

{{ __('settings.cancel_cta') }}
@else

{{ __('settings.no_package') }}

@endif {{-- The fourteen-day right of withdrawal. Shown only where it exists: a business customer has none and never sees this block — and the server refuses them again in Settings::withdraw(), because a card that is not rendered has never stopped anybody who can post to /livewire/update. Separate from the cancellation above it, and not a variant of it. A cancellation ends a contract that was validly concluded and keeps the term the customer paid for; a withdrawal unwinds the contract itself, ends the service the same day and sends the money back. --}} @if ($withdrawal->applies && $withdrawal->open)

{{ __('withdrawal.card_title') }}

{{ __('withdrawal.card_sub', [ 'date' => $withdrawal->endsAt->local()->isoFormat('LL'), 'days' => $withdrawal->daysLeft(), ]) }}

{{ __('withdrawal.cta') }}
@endif

{{ __('settings.close_account_title') }}

{{ __('settings.close_account_sub') }}

{{ __('settings.close_cta') }}