@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

{{ __('labels.reel_preview') }}

{{ __('labels.reel_preview_hint') }}
{{-- Platform Switcher: Android vs iOS --}}
{{-- Status Bar --}} {{-- Top Header overlay --}}
{{ __('labels.watch_buy_reels') }}
{{-- Video Element --}} {{-- Cover Fallback --}} Reel Cover {{-- Placeholder when no media uploaded --}}
{{ __('labels.reel_placeholder_video') }}
{{-- Top and bottom gradients for legibility --}}
{{-- Action buttons right rail --}}
{{ $reel->exists ? number_format((int) $reel->like_count) : '0' }}
0
Share
{{-- Content bottom overlay (Creator, Caption, Product Card) --}}
{{-- Creator Row --}}
@if (!empty($profileAvatar)) Profile @else
{{ strtoupper(substr(str_replace('@', '', $profileName), 0, 1)) }}
Profile @endif
{{ $profileName }} {{ __('labels.original_audio') }}
{{-- Caption --}}

{{ $currentCaption }}

{{-- Product Attachment Pill --}}
Product
{{ __('labels.view_product') }}
{{-- Mockup bezels for devices.css --}}