{{-- Share buttons. The utm tags show up in your analytics so you can see which network brought the visit. --}} @php $tag = fn (string $src) => $url.(str_contains($url, '?') ? '&' : '?').'utm_source='.$src.'&utm_medium=social&utm_campaign=share'; $links = [ 'WhatsApp' => 'https://wa.me/?text='.rawurlencode($text.' '.$tag('whatsapp')), 'Facebook' => 'https://www.facebook.com/sharer/sharer.php?u='.rawurlencode($tag('facebook')), 'X' => 'https://twitter.com/intent/tweet?text='.rawurlencode($text).'&url='.rawurlencode($tag('x')), 'Telegram' => 'https://t.me/share/url?url='.rawurlencode($tag('telegram')).'&text='.rawurlencode($text), ]; @endphp
Share:@foreach ($links as $label => $href){{ $label }}@endforeach