@if($row->instagram_url)
Instagram
@endif
@if($row->facebook_url)
Facebook
@endif
@if($row->youtube_url)
YouTube
@endif
@if($row->twitter_url)
X / Twitter
@endif
@if($row->google_business_url)
Google Maps
@endif
{{-- Dynamic Additional Global Channels --}}
@if(is_array($row->additional_social_links))
@php
$presets = [
'telegram' => ['icon' => 'fa-brands fa-telegram', 'bg' => '#229ED9', 'label' => 'Telegram'],
'linkedin' => ['icon' => 'fa-brands fa-linkedin', 'bg' => '#0A66C2', 'label' => 'LinkedIn'],
'whatsapp' => ['icon' => 'fa-brands fa-whatsapp', 'bg' => '#25D366', 'label' => 'WhatsApp Channel'],
'threads' => ['icon' => 'fa-brands fa-threads', 'bg' => '#000000', 'label' => 'Threads'],
'tripadvisor' => ['icon' => 'fa-solid fa-plane-departure', 'bg' => '#00AA6C', 'label' => 'TripAdvisor'],
'pinterest' => ['icon' => 'fa-brands fa-pinterest', 'bg' => '#E60023', 'label' => 'Pinterest'],
'discord' => ['icon' => 'fa-brands fa-discord', 'bg' => '#5865F2', 'label' => 'Discord'],
'website' => ['icon' => 'fa-solid fa-globe', 'bg' => '#0284c7', 'label' => 'Website'],
];
@endphp
@foreach($row->additional_social_links as $as)
@php
$p = $as['platform'] ?? 'other';
$meta = $presets[$p] ?? ['icon' => 'fa-solid fa-link', 'bg' => '#475569', 'label' => ucfirst($p)];
$u = $as['url'] ?? '';
$lbl = $as['label'] ?? $meta['label'];
$href = str_starts_with($u, 'http') ? $u : 'https://' . $u;
@endphp
@if($u)
{{ $lbl }}
@endif
@endforeach
@endif