@php $socialIconPaths = [ 'Facebook' => '', 'Instagram' => '', 'YouTube' => '', 'TikTok' => '', ]; $socialIconWrapper = ($design ?? 'amanah') === 'modern' ? 'mdn-socials' : 'flex flex-wrap gap-3 mt-4'; $socialIconLink = ($design ?? 'amanah') === 'modern' ? '' : 'inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/30 text-white transition hover:bg-white/10'; @endphp
@foreach($accounts as $network=>$url) @if(is_string($url) && preg_match('#^https?://#i', $url) && isset($socialIconPaths[$network])) {{ $network }} @endif @endforeach