@php // Type-aware wording — a sport/match or regular video is NOT a song. $isSong = $video->isAudioOnly() || $video->type === 'music'; $noun = $isSong ? 'song' : ($video->type === 'match' ? 'match' : 'video'); $cta = $isSong ? 'Listen now' : 'Watch now'; $icon = $isSong ? '🎵' : '▶'; // 🎵 vs ▶ $byLabel = $isSong ? 'Artist' : ($video->type === 'match' ? 'Posted by' : 'Channel'); @endphp {{-- Icon --}}
{!! $icon !!}

{{ $sender->name }} shared a {{ $noun }} with you

They thought you'd enjoy this on {{ config('app.name') }}.

@if($personalMessage) {{-- Personal note --}}
{{ $personalMessage }}
@endif {{-- Cover --}}
@if($video->thumbnail) {{ $shareTitle }} @else @endif
{{-- Details --}}
@if($video->formatted_duration) @endif
{{-- CTA --}}

{{ $sender->name }} sent you this link from {{ config('app.name') }}. If you weren't expecting it, you can safely ignore this email.