@extends('layouts.user_type.auth') @section('pageActions') @if (hasPermission('platformSettings', 'insert')) @endif @endsection @section('platformSettings')
@include('components.alert') @php $psSections = [ ['key' => 'company', 'icon' => 'ri-building-4-line', 'label' => 'Company', 'sub' => 'Name and logo'], ['key' => 'support', 'icon' => 'ri-customer-service-2-line', 'label' => 'Support', 'sub' => 'Where clients reach you'], ['key' => 'mail', 'icon' => 'ri-mail-settings-line', 'label' => 'Mail sender', 'sub' => 'From name and address'], ['key' => 'billing', 'icon' => 'ri-coins-line', 'label' => 'Currency & tax', 'sub' => 'Defaults for new plans'], ['key' => 'alerts', 'icon' => 'ri-alarm-warning-line', 'label' => 'Alerts', 'sub' => 'Backup health threshold'], ]; $psVal = fn ($k) => old($k, $settings[$k] ?? ''); @endphp @if ($errors->any())
Some settings need fixing

{{ $errors->first() }}

@endif
@csrf
{{-- Company --}}
Company
How the platform names itself in the admin console and emails.
@error('company_name'){{ $message }}@enderror
Logo
{{-- Support --}}
Support
Shown to clients who need help, and used as the reply-to address for enquiry replies.
@error('support_email'){{ $message }}@enderror
{{-- Mail sender --}}
Mail sender
The "From" on emails the admin console sends — enquiry replies, website form receipts and campaigns.
@error('mail_from_address'){{ $message }}@enderror

Leave both blank to keep the current sender. A new sender email must be verified with the mail provider (Brevo) first, or emails will be rejected.

{{-- Currency & tax --}}
Currency & tax
Defaults for package prices and subscription invoices.
@error('tax_label'){{ $message }}@enderror
%
@error('default_tax_rate'){{ $message }}@enderror
{{-- Alerts --}}
Alerts
When the sidebar, home page and System Health flag backups as stale.
hours
@error('backup_stale_hours') {{ $message }} @else Raise an alert when no backup has succeeded for this long. Daily backups: 26 hours allows for a late run. @enderror
@if (hasPermission('platformSettings', 'insert'))
Discard changes
@endif
@endsection