@php $sections = [ ['id' => 'company', 'label' => __('Company Profile'), 'icon' => 'building-office'], ['id' => 'branding', 'label' => __('Branding'), 'icon' => 'swatch'], ['id' => 'documents', 'label' => __('Documents & Defaults'), 'icon' => 'document-text'], ['id' => 'numbering', 'label' => __('Numbering & Currency'), 'icon' => 'banknotes'], ['id' => 'letters', 'label' => __('Letters & Letterhead'), 'icon' => 'document-text'], ['id' => 'financial', 'label' => __('Financial Settings'), 'icon' => 'currency-dollar'], ['id' => 'profit', 'label' => __('Profit & Commission'), 'icon' => 'calculator'], ['id' => 'notifications', 'label' => __('Notifications'), 'icon' => 'bell'], ]; $shortcuts = [ ['href' => route('settings.banking'), 'label' => __('Banking & Currencies'), 'desc' => __('Bank details and rates per currency.'), 'icon' => 'building-office'], ['href' => route('taxes.index'), 'label' => __('Taxes'), 'desc' => __('Manage tax rates and rules.'), 'icon' => 'receipt-percent'], ['href' => route('payment-methods.index'), 'label' => __('Payment Methods'), 'desc' => __('Configure how clients pay you.'), 'icon' => 'credit-card'], ['href' => route('integrations.index'), 'label' => __('Integrations'), 'desc' => __('Connect third-party services.'), 'icon' => 'puzzle-piece'], ['href' => route('email-templates.index'), 'label' => __('Email Templates'), 'desc' => __('Customize the emails clients get.'), 'icon' => 'envelope'], ['href' => route('custom-fields.index'), 'label' => __('Custom Fields'), 'desc' => __('Capture extra document details.'), 'icon' => 'queue-list'], ['href' => route('activity.index'), 'label' => __('Audit Logs'), 'desc' => __('View changes and activity.'), 'icon' => 'clock'], ]; @endphp

{{ __('Workspace Settings') }}

{{ __('Manage your company, preferences and defaults across the workspace.') }}

{{ __('Saved.') }} {{ __('Save Changes') }}

{{ __('Company Profile') }}

{{ __('Your company information as it appears on documents.') }}

{{ __('Recommended: PNG, JPG (400x400px)') }}

{{ __('Branding') }}

{{ __('Customize the look and feel of your documents.') }}

@if ($logo_path) @endif

{{ $company_name ?: __('Your Company') }}

{{ $number_prefix_quote }}-260608001001

{{ __('Sample Customer') }}

{{ $show_currency_code ? $base_currency_code . ' ' : '' }}106.00

{{ __('Documents & Defaults') }}

{{ __('Set default text and terms for your documents.') }}

@if ($teamPaymentMethods->isEmpty() && $gatewayMethods->isEmpty())

{{ __('No payment methods yet.') }} {{ __('Add one') }}.

@else
@foreach ($teamPaymentMethods as $method) @endforeach {{-- Paynow needs a method per currency because each settles into its own bank account, but that is a treasury detail. Here it is one decision — offer online payment or not — and the document's own currency picks which method prints. --}} @if ($gatewayMethods->isNotEmpty()) @endif
@if ($gatewayMethods->isNotEmpty())

{{ __('Paynow covers :currencies. Each document shows only the one matching its own currency.', [ 'currencies' => $gatewayMethods ->flatMap(fn ($m) => array_filter((array) $m->currencies) ?: [$m->fundAccount?->currency_code]) ->filter()->unique()->sort()->implode(', '), ]) }}

@endif @endif

{{ __('Numbering & Currency') }}

{{ __('Manage prefixes and the base currency for your documents.') }}

{{ __('Staff numbers are issued automatically, e.g. :example. Changing this only affects people added from now on.', ['example' => ($number_prefix_employee ?: 'SPE') . '-001']) }}

{{ __('Default share of each completed job\'s gross profit set aside for marketing. Override per job category. 0 = off.') }}

{{ __('Letters & Letterhead') }}

{{ __('Configure the branded letterhead used when writing letters and documents.') }}

{{ __('Printed in the footer of every letterhead page. The page number is added automatically.') }}

{{ __('Page margins (px)') }}

{{ __('Margins apply when the letterhead band is turned off; with the band on, spacing is managed automatically.') }}

{{ __('Financial Settings') }}

{{ __('Set global financial defaults.') }}

@if ($taxes->isEmpty())

{{ __('Create a tax rate') }} {{ __('to use it as a default.') }}

@endif

{{ __('Profit & Commission Policy') }}

{{ __('Drives break-even, the GP hurdle and the commission pool. Nothing here is hardcoded, every report reads these values.') }}

{{ __('Cash Collected = money received. Invoice Value Raised = invoices created.') }}

{{ __('GP Hurdle = Overheads × this. Default 2.') }}

{{ __('Pool = Excess GP × this. Default 20%.') }}

{{ __('What feeds the monthly break-even nut.') }}

@foreach ($overheadSourceOptions as $value => $label) @endforeach

{{ __('Which model accrues commission and drives the Profitability eligibility column. Both stay configurable; only the active one pays out.') }}

@foreach ($commissionModelOptions as $value => $label) @endforeach

{{ __('Notifications') }}

{{ __('Choose what notifications you receive.') }}

{{ __('Client job portal') }}

{{ __('The private link customers use to follow their order, send artwork and approve proofs.') }}

{{ __('Google Drive') }}

{{ __('Keep job files in Drive instead of on this server, so artwork is not limited by disk space and designers can work straight from Drive for Desktop.') }}

@if (! $driveConfigured) {{-- The switch is worse than useless without server credentials: it would look on while every upload quietly fell back to disk. --}}

{{ __('Not connected yet') }}

{{ __('This needs a Google service account and a Shared Drive set up on the server first. Ask your administrator to run "php artisan billpro:drive-check", which prints exactly what is missing.') }}

@endif

{{ __('Leave blank to use the top of the shared drive. To target a folder, open it in Drive and copy the ID from the end of the address bar.') }}

@foreach ($shortcuts as $shortcut)

{{ $shortcut['label'] }}

{{ $shortcut['desc'] }}

@endforeach
@if ($this->canResetData)

{{ __('Danger Zone') }}

{{ __('Irreversible actions. Only the workspace owner can run these.') }}

{{ __('Reset test data') }}

{{ __('Permanently delete all invoices, quotes, jobs, payments, expenses, income, treasury movements, stock and related records for this workspace. Users, settings, currencies and configuration are kept.') }}

{{ __('Reset test data') }}

{{ __('This permanently deletes this workspace\'s transactional data. Users, settings, currencies and configuration are preserved. This cannot be undone.') }}

@error('resetConfirm')

{{ $message }}

@enderror
@endif