@php
$iconChoices = [
'facebook' => ['label' => 'Facebook', 'class' => 'fa fa-facebook', 'tone' => '#1877f2'],
'fb' => ['label' => 'Facebook', 'class' => 'fa fa-facebook', 'tone' => '#1877f2'],
'twitter' => ['label' => 'Twitter', 'class' => 'fa fa-twitter', 'tone' => '#1da1f2'],
'tw' => ['label' => 'Twitter', 'class' => 'fa fa-twitter', 'tone' => '#1da1f2'],
'instagram' => ['label' => 'Instagram', 'class' => 'fa fa-instagram', 'tone' => '#e4405f'],
'ig' => ['label' => 'Instagram', 'class' => 'fa fa-instagram', 'tone' => '#e4405f'],
'youtube' => ['label' => 'YouTube', 'class' => 'fa fa-youtube-play', 'tone' => '#ff0000'],
'yt' => ['label' => 'YouTube', 'class' => 'fa fa-youtube-play', 'tone' => '#ff0000'],
'linkedin' => ['label' => 'LinkedIn', 'class' => 'fa fa-linkedin', 'tone' => '#0a66c2'],
'in' => ['label' => 'LinkedIn', 'class' => 'fa fa-linkedin', 'tone' => '#0a66c2'],
'pinterest' => ['label' => 'Pinterest', 'class' => 'fa fa-pinterest', 'tone' => '#e60023'],
'pin' => ['label' => 'Pinterest', 'class' => 'fa fa-pinterest', 'tone' => '#e60023'],
'whatsapp' => ['label' => 'WhatsApp', 'class' => 'fa fa-whatsapp', 'tone' => '#25d366'],
'wa' => ['label' => 'WhatsApp', 'class' => 'fa fa-whatsapp', 'tone' => '#25d366'],
'telegram' => ['label' => 'Telegram', 'class' => 'fa fa-telegram', 'tone' => '#0088cc'],
'tg' => ['label' => 'Telegram', 'class' => 'fa fa-telegram', 'tone' => '#0088cc'],
'tiktok' => ['label' => 'TikTok', 'class' => 'fa fa-music', 'tone' => '#000000'],
'snapchat' => ['label' => 'Snapchat', 'class' => 'fa fa-snapchat-ghost', 'tone' => '#fffc00'],
'discord' => ['label' => 'Discord', 'class' => 'fa fa-comments', 'tone' => '#5865f2'],
'github' => ['label' => 'GitHub', 'class' => 'fa fa-github', 'tone' => '#181717'],
];
@endphp
{{-- Existing icons (stacked cards — keeps each form valid HTML) --}}
@if(count($socials))
@foreach($socials as $s)
@php $meta = $iconChoices[strtolower((string) $s->icon)] ?? ['label' => $s->icon, 'class' => 'fa fa-share-alt', 'tone' => '#3b6df0']; @endphp
@endforeach
@else
{{ __('No social icons yet — add the first one below.') }}
@endif
{{-- Add new icon --}}
{{ __('Add a new social icon') }}