@php $currentVideo = $reel->exists && $reel->video_url ? $reel->video_url : null; $currentCover = $reel->exists && $reel->cover_url ? $reel->cover_url : null; $currentCaption = old('caption', $reel->caption); $platform = $platform ?? 'admin'; $profileName = ''; $profileAvatar = ''; if ($platform === 'seller') { $profile = \App\Models\WatchBuyProfile::where('seller_id', auth()->user()->seller()?->id)->first(); $profileName = $profile ? '@' . $profile->username : '@' . (auth()->user()->name ?? 'seller'); $profileAvatar = $profile?->avatar_url ?? ''; } else { $profile = isset($selectedProfile) && $selectedProfile ? $selectedProfile : $reel->profile; if ($reel->source?->value === 'admin_direct') { $profileName = '@Official'; } elseif ($profile) { $profileName = '@' . $profile->username; $profileAvatar = $profile->avatar_url ?? ''; } else { $profileName = '@Creator'; } } @endphp
{{ $currentCaption }}
{{-- Product Attachment Pill --}}