{{-- Social Share Buttons with proper meta for tracking Usage: --}} @props([ 'url', 'title', 'description' => '', 'image' => '', 'hashtags' => '' ]) @php $encodedUrl = urlencode($url); $encodedTitle = urlencode($title); $encodedDescription = urlencode($description); $shareLinks = [ 'facebook' => "https://www.facebook.com/sharer/sharer.php?u={$encodedUrl}", 'twitter' => "https://twitter.com/intent/tweet?url={$encodedUrl}&text={$encodedTitle}" . ($hashtags ? "&hashtags={$hashtags}" : ''), 'whatsapp' => "https://api.whatsapp.com/send?text={$encodedTitle}%20{$encodedUrl}", 'linkedin' => "https://www.linkedin.com/shareArticle?mini=true&url={$encodedUrl}&title={$encodedTitle}&summary={$encodedDescription}", 'telegram' => "https://t.me/share/url?url={$encodedUrl}&text={$encodedTitle}", 'pinterest' => "https://pinterest.com/pin/create/button/?url={$encodedUrl}&description={$encodedTitle}" . ($image ? "&media=" . urlencode($image) : ''), 'email' => "mailto:?subject={$encodedTitle}&body={$encodedDescription}%0A%0A{$encodedUrl}", ]; @endphp
{{-- Facebook --}} {{-- Twitter/X --}} {{-- WhatsApp --}} {{-- LinkedIn --}} {{-- Telegram --}} {{-- Copy Link --}}