{{ __('admin.settings_title') }}

{{-- Tab Navigation --}}
@csrf @method('PUT') {{-- Tab: Allgemein --}}
{{-- Text-Inputs (app_name etc.) --}} @foreach ($settings as $key => $setting) @if ($setting->type !== 'html' && $setting->type !== 'richtext' && $key !== 'app_favicon' && $key !== 'statistics_enabled')
@endif @endforeach {{-- Favicon --}}
@php $currentFavicon = \App\Models\Setting::get('app_favicon'); @endphp @if ($currentFavicon)
Favicon {{ __('admin.favicon_current') }}
@endif

{{ __('admin.favicon_hint') }}

{{-- Logo Login --}}

{{ __('admin.logo_login_desc') }}

@php $currentLogoLogin = \App\Models\Setting::get('app_logo_login'); @endphp @if ($currentLogoLogin)
Login-Logo
{{ __('admin.logo_current') }}
@endif

{{ __('admin.logo_hint') }}

{{-- Logo App (Navbar) --}}

{{ __('admin.logo_app_desc') }}

@php $currentLogoApp = \App\Models\Setting::get('app_logo_app'); @endphp @if ($currentLogoApp)
App-Logo
{{ __('admin.logo_current') }}
@endif

{{ __('admin.logo_hint') }}

{{-- Richtext-Settings (Slogan mit Mini-Quill) --}} @foreach ($settings as $key => $setting) @if ($setting->type === 'richtext')

{{ __('admin.slogan_hint') }}

{!! app(\App\Services\HtmlSanitizerService::class)->sanitize($setting->value ?? '') !!}
@endif @endforeach
{{-- Tab: E-Mail --}}
@csrf @method('PUT')

{{ __('admin.mail_config_title') }}

{{ __('admin.mail_config_hint') }}

{{-- Versandmethode --}}
{{-- SMTP-Felder --}}
@error('mail_host')

{{ $message }}

@enderror
@error('mail_port')

{{ $message }}

@enderror
@error('mail_username')

{{ $message }}

@enderror
@error('mail_password')

{{ $message }}

@enderror
@error('mail_from_address')

{{ $message }}

@enderror
{{-- SMTP-Test --}}

{{-- Tab: Rechtliches — Multi-Language mit Flaggen --}}
{{-- Sprach-Flaggen-Leiste --}}
{{ __('admin.legal_language_label') }}: @php $localeFlags = ['de' => "\u{1F1E9}\u{1F1EA}", 'en' => "\u{1F1EC}\u{1F1E7}", 'pl' => "\u{1F1F5}\u{1F1F1}", 'ru' => "\u{1F1F7}\u{1F1FA}", 'ar' => "\u{1F1F8}\u{1F1E6}", 'tr' => "\u{1F1F9}\u{1F1F7}"]; $localeNames = ['de' => 'DE', 'en' => 'EN', 'pl' => 'PL', 'ru' => 'RU', 'ar' => 'AR', 'tr' => 'TR']; @endphp @foreach ($availableLocales as $loc) @endforeach
{{-- Impressum pro Sprache --}} @foreach ($availableLocales as $loc) @php $impKey = "impressum_html_{$loc}"; @endphp
{!! app(\App\Services\HtmlSanitizerService::class)->sanitize($localeSettings[$loc]['impressum_html'] ?? '') !!}

{{ __('admin.html_anchor_hint') }}

@endforeach {{-- Datenschutz pro Sprache --}} @foreach ($availableLocales as $loc) @php $dsKey = "datenschutz_html_{$loc}"; @endphp
{!! app(\App\Services\HtmlSanitizerService::class)->sanitize($localeSettings[$loc]['datenschutz_html'] ?? '') !!}

{{ __('admin.html_anchor_hint') }}

@endforeach {{-- Passwort-Reset E-Mail pro Sprache --}} @foreach ($availableLocales as $loc) @php $prKey = "password_reset_email_{$loc}"; @endphp
{!! app(\App\Services\HtmlSanitizerService::class)->sanitize($localeSettings[$loc]['password_reset_email'] ?? '') !!}

{{ __('admin.password_reset_email_hint') }}

@endforeach
{{-- Tab: Event-Defaults --}}

{{ __('admin.event_defaults_description') }}

@php $noCateringTypes = ['away_game', 'meeting']; @endphp
@foreach (['home_game', 'away_game', 'training', 'tournament', 'meeting'] as $eventType)

{{ __("ui.enums.event_type.{$eventType}") }}

@foreach (['players', 'catering', 'timekeepers'] as $field) @php $key = "default_min_{$field}_{$eventType}"; $currentVal = $eventDefaults[$key] ?? null; $isDisabled = in_array($eventType, $noCateringTypes) && in_array($field, ['catering', 'timekeepers']); $label = $eventType === 'meeting' && $field === 'players' ? __('admin.min_users') : __("admin.min_{$field}"); @endphp
@if ($isDisabled)
{{ __('admin.not_applicable') }}
@else @endif
@endforeach
@endforeach
{{-- Tab: Sichtbarkeit (nur Admin) --}} @if (auth()->user()->isAdmin())

{{ __('admin.visibility_description') }}

@php $features = [ 'statistics' => __('admin.visibility_feature_statistics'), 'catering_history' => __('admin.visibility_feature_catering_history'), ]; $roles = [ 'coach' => __('ui.enums.user_role.coach'), 'parent_rep' => __('ui.enums.user_role.parent_rep'), ]; @endphp
@foreach ($features as $featureKey => $featureLabel)

{{ $featureLabel }}

@foreach ($roles as $roleKey => $roleLabel) @php $settingKey = "visibility_{$featureKey}_{$roleKey}"; $currentValue = $visibilitySettings[$settingKey]->value ?? '1'; @endphp @endforeach
@endforeach
@endif {{-- Tab: Lizenz & Support (nur Admin) --}} @if (auth()->user()->isAdmin())
{{-- License Key --}}

{{ __('admin.license_title') }}

{{ __('admin.license_description') }}

{{-- Registration Status --}}

{{ __('admin.registration_status') }}

@if ($isRegistered)
{{ __('admin.registration_active') }}

Installation-ID: {{ $installationId }}

@else
{{ __('admin.registration_inactive') }}
@endif
{{-- System Info --}}

{{ __('admin.version_info') }}

App-Version:
{{ config('app.version') }}
PHP:
{{ PHP_VERSION }}
Laravel:
{{ app()->version() }}
Datenbank:
{{ config('database.default') }}
@if ($updateInfo && version_compare($updateInfo['latest_version'] ?? '0', config('app.version'), '>'))

{{ __('admin.update_available', ['version' => $updateInfo['latest_version']]) }}

@if ($updateInfo['changelog'] ?? null)

{{ $updateInfo['changelog'] }}

@endif @if (($updateInfo['download_url'] ?? null) && str_starts_with($updateInfo['download_url'], 'https://')) {{ __('admin.download_update') }} @endif
@endif
@endif {{-- Save/Cancel (sichtbar auf allen Form-Tabs, nicht auf Wartung) --}}
{{ __('ui.cancel') }}
{{-- Registration (außerhalb der Settings-Form, nur auf Lizenz-Tab) --}} @if (auth()->user()->isAdmin() && !$isRegistered)

{{ __('admin.support_not_registered') }}

@csrf
@endif {{-- Tab: Wartung (nur Admin, eigenes Formular) --}} @if (auth()->user()->isAdmin())

{{ __('admin.demo_data_delete_title') }}

{{ __('admin.demo_data_delete_description') }}

{{ __('admin.demo_data_deletes') }}

  • {{ __('admin.stat_users') }} ({{ __('admin.demo_data_except_admin') }})
  • {{ __('admin.nav_teams') }}
  • {{ __('admin.nav_players') }}
  • {{ __('admin.nav_events') }}
  • Kommentare
  • {{ __('admin.nav_locations') }}
  • {{ __('admin.nav_files') }}
  • {{ __('admin.activity_log_title') }}

{{ __('admin.demo_data_keeps') }}

  • {{ __('admin.demo_data_keeps_admin') }}
  • {{ __('admin.nav_settings') }}
  • {{ __('admin.settings_tab_categories') }}

{{ __('admin.demo_data_delete_warning') }}

@csrf @method('DELETE')
{{-- Factory Reset (nur Admin) --}} @if (auth()->user()->isAdmin())

{{ __('admin.factory_reset_title') }}

{{ __('admin.factory_reset_description') }}

{{ __('admin.factory_reset_deletes') }}

  • {{ __('admin.factory_reset_item_users') }}
  • {{ __('admin.factory_reset_item_data') }}
  • {{ __('admin.factory_reset_item_settings') }}
  • {{ __('admin.factory_reset_item_files') }}

{{ __('admin.factory_reset_warning') }}

@csrf @method('DELETE')

{{ __('admin.factory_reset_confirmation_hint') }}

@endif
@endif {{-- Tab: Dateikategorien (eigene Formulare) --}}

{{ __('admin.file_categories_description') }}

@if ($fileCategories->isNotEmpty())
@foreach ($fileCategories as $cat)
@csrf @method('PUT') {{ $cat->files_count }} {{ __('admin.nav_files') }}
@csrf @method('DELETE')
@endforeach
@endif
@csrf
@push('styles') @endpush @push('scripts') @endpush