{{ __('Company Settings') }}

{{ __('Company Settings') }}

{{ __('Settings that apply to your whole company, not just your own account.') }}

@if (session('status'))
{{ session('status') }}
@endif @error('backup')
{{ $message }}
@enderror {{-- users.manage is Admin + Manager, a broader gate than settings.manage (Admin only) below — this section is independently gated so a Manager (who lacks settings.manage) can still reach it, instead of the whole page being blank for them. --}} @can('users.manage')

{{ __('Users') }}

{{ __('Add, edit, or deactivate the people who can sign in to your company\'s account.') }}

{{ __('Manage Users') }}
@endcan @can('settings.manage')

{{ __('Branding') }}

{{ __('Shown in place of "Flamnix" in your sidebar, page titles, and emails. Leave blank to keep the default Flamnix branding.') }}

@csrf @method('PATCH') @error('display_name')

{{ $message }}

@enderror
@if ($company->logo_path) {{ __('Current logo') }} @endif

{{ __('JPEG, PNG, WebP, or SVG. Max 2MB.') }}

@error('logo')

{{ $message }}

@enderror

{{ __('Alert Email Recipients') }}

{{ __('Who receives the daily critical digest and weekly summary emails.') }}

@csrf @method('PATCH')

{{ __('Separate multiple addresses with commas. Leave blank to receive no digest emails.') }}

@error('notification_email')

{{ $message }}

@enderror

{{ __('Modules') }}

{{ __('Turn optional feature areas on or off for your company. Turning one off hides it from the sidebar and blocks its pages.') }}

@csrf @method('PATCH') @php $checkedModules = old('modules', collect($manageableModules)->filter(fn ($m) => $company->hasModule($m))->map->value->all()); @endphp
@foreach ($manageableModules as $module) @endforeach

{{ __('Backup & Restore') }}

{{ __('Download a full backup of your company\'s data, or restore from a previous backup file.') }}

{{ __('Download Backup') }}

{{ __('Exports all of your company\'s vehicles, drivers, trips, documents, inventory, and maintenance records as a JSON file.') }}

{{ __('Download Backup') }}

{{ __('Restore from Backup') }}

{{ __('This will permanently overwrite your company\'s current data with the contents of the backup file.') }}

@csrf @error('backup')

{{ $message }}

@enderror
{{-- Restore confirmation modal --}}

{{ __('Restore from backup?') }}

{{ __('This will permanently delete your company\'s current data and replace it with the contents of the uploaded backup file. This cannot be undone.') }}

@endcan