@extends('layouts.app') @php $displayName = $user->username ?: $user->name; $initial = mb_strtoupper(mb_substr($displayName, 0, 1)); $countryTranslation = $user->country?->translations?->firstWhere('locale', app()->getLocale()) ?? $user->country?->translations?->firstWhere('locale', 'en'); $countryName = $countryTranslation?->name ?: $user->country?->official_name; $linkedAuthProviders = $user->authProviders->keyBy('provider'); $socialAuthConfigured = [ 'google' => filled(config('services.google.client_id')) && filled(config('services.google.client_secret')), 'apple' => filled(config('services.apple.client_id')) && filled(config('services.apple.team_id')) && filled(config('services.apple.key_id')) && (filled(config('services.apple.private_key')) || filled(config('services.apple.private_key_path'))), ]; $visibleSocialProviders = array_values(array_filter( array_keys($socialAuthConfigured), static fn (string $provider): bool => $socialAuthConfigured[$provider] || $linkedAuthProviders->has($provider), )); $sections = [ 'profile' => ['icon' => 'profile', 'label' => __('ui.account_settings_tab_profile')], 'privacy' => ['icon' => 'shield', 'label' => __('ui.account_settings_tab_privacy')], 'security' => ['icon' => 'shield', 'label' => __('ui.account_settings_tab_security')], 'preferences' => ['icon' => 'menu', 'label' => __('ui.account_settings_tab_preferences')], 'account' => ['icon' => 'dashboard', 'label' => __('ui.account_settings_tab_account')], ]; @endphp @section('title', __('ui.account_settings_title').' — Coaster World') @section('content')
{{ __('ui.account_settings_kicker') }}

{{ __('ui.account_settings_title') }}

{{ __('ui.account_settings_intro') }}

{{ __('ui.account_settings_view_profile') }}
@if(session('account_settings_status')) @endif @if(session('security_status')) @endif @if($errors->any()) @endif @if($section === 'profile') @endif @if($section === 'privacy') @endif @if($section === 'security') @endif @if($section === 'preferences') @endif @if($section === 'account') @endif
@endsection