@section('title', __('general.page_settings_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('general.top_menu_item_general')], ['label' => __('general.page_settings_h1')], ]; /** * One row per network so the markup is written once. The columns mix * formats on purpose: some hold a full URL, others a handle or a number, * which is what the hint under each field explains. */ $socialFields = [ ['name' => 'social_facebook', 'label' => 'Facebook', 'icon' => 'fa-facebook', 'hint' => __('general.settings_hint_url')], ['name' => 'social_instagram', 'label' => 'Instagram', 'icon' => 'fa-instagram', 'hint' => __('general.settings_hint_handle')], ['name' => 'social_whatsapp', 'label' => 'WhatsApp', 'icon' => 'fa-whatsapp', 'hint' => __('general.settings_hint_phone')], ['name' => 'social_youtube', 'label' => 'YouTube', 'icon' => 'fa-youtube', 'hint' => __('general.settings_hint_url')], ['name' => 'social_twitter', 'label' => 'X / Twitter', 'icon' => 'fa-x-twitter', 'hint' => __('general.settings_hint_handle')], ['name' => 'social_tiktok', 'label' => 'TikTok', 'icon' => 'fa-tiktok', 'hint' => __('general.settings_hint_handle')], ['name' => 'social_telegram', 'label' => 'Telegram', 'icon' => 'fa-telegram', 'hint' => __('general.settings_hint_handle')], ['name' => 'social_twitch', 'label' => 'Twitch', 'icon' => 'fa-twitch', 'hint' => __('general.settings_hint_url')], ['name' => 'social_linkedin', 'label' => 'LinkedIn', 'icon' => 'fa-linkedin', 'hint' => __('general.settings_hint_url')], ['name' => 'social_soundcloud', 'label' => 'SoundCloud', 'icon' => 'fa-soundcloud', 'hint' => __('general.settings_hint_url')], ['name' => 'social_mixcloud', 'label' => 'Mixcloud', 'icon' => 'fa-mixcloud', 'hint' => __('general.settings_hint_url')], ['name' => 'social_pinterest', 'label' => 'Pinterest', 'icon' => 'fa-pinterest', 'hint' => __('general.settings_hint_url')], ['name' => 'social_lastfm', 'label' => 'Last.fm', 'icon' => 'fa-lastfm', 'hint' => __('general.settings_hint_url')], ['name' => 'social_snapchat', 'label' => 'Snapchat', 'icon' => 'fa-snapchat', 'hint' => __('general.settings_hint_handle')], ]; $filled = collect($socialFields)->filter(fn ($f) => ! empty($socialData->{$f['name']}))->count(); @endphp @include('includes/header-novo')
@include('includes.breadcrumb')

{{ __('general.page_settings_h1') }}

{{ __('general.settings_intro') }}

@include('includes.flash')

{{ __('general.settings_block_identity') }}

{{ __('general.settings_block_identity_desc') }}

{{ __('general.label_timezone') }}

{{ __('general.settings_block_contact') }}

{{ __('general.settings_block_contact_desc') }}

{{ __('general.settings_show_map') }} {{ __('general.settings_show_map_desc') }}

{{ __('general.label_social') }}

{{ trans_choice('general.settings_social_filled', $filled, ['n' => $filled, 'total' => count($socialFields)]) }}

@foreach($socialFields as $f) @php $value = old($f['name'], $socialData->{$f['name']}); @endphp @endforeach
@section('scripts') @endsection @include('includes/footer-novo')