@php $coverUrl = $event->coverMedia ? $event->coverMedia->signedPreviewUrl(240) : asset('images/default-cover.jpg'); $dateLabel = \App\Support\FormatSettings::date($event->event_date); $totalPhotos = $media?->count() ?? 0; $mediaCount = ($mediaPaginator ?? null) ? $mediaPaginator->total() : ($media?->count() ?? 0); $totalPhotos = $mediaCount; $hasMatches = $faceSearchReady && ($faceSearchMatchesCount ?? 0) > 0; $guestUploads = $media ? $media->where('is_guest_upload', true) : collect(); $highlights = $media ? $media->where('is_featured', true) : collect(); @endphp
@if ($pinRequired)

{{ $event->name }}

{{ __('Access Gallery') }}

@csrf

{{ __('Please enter the access code provided by the organizer') }}

@error('pin')
{{ $message }}
@enderror
{{ __('Protected by') }} {{ config('app.name', 'SnapNest') }}
@elseif (($faceSearchRequired ?? false) && ! ($faceSearchReady ?? false))

{{ $event->name }}

{{ __('Get Your Photos') }}

@csrf

{{ __('Please capture a selfie to proceed') }}

@elseif($inactive || $expired)

{{ $inactive ? __('Event Inactive') : __('Event Expired') }}

{{ __('This gallery is currently unavailable.') }}

@else

{{ __('Event Gallery') }}

{{ $event->name }}

{{ strtoupper($dateLabel) }} {{ $totalPhotos }} {{ __('PHOTOS') }}
@if($totalPhotos === 0)

{{ __('No Images Found') }}

{{ __('Looks like this gallery is empty or no matches found.') }}

@else {{-- Infinite scroll: load more sentinel --}}
@endif {{-- Empty state: Highlights --}} @if($highlights->isEmpty())

{{ __('No Highlights Yet') }}

{{ __('The photographer hasn\'t selected any highlights for this event yet.') }}

@endif {{-- Empty state: Selections --}}

{{ __('No Selections Yet') }}

{{ __('Tap the heart icon on any photo to add it to your selections.') }}

{{-- All photos loaded indicator --}}

{{ __('All') }} {{ __('photos loaded') }}

@if($event->allow_guest_upload)

{{ __('Upload Photos taken by You') }}

{{ __('Share and Showcase your perspective of the event. Your photos will be added to the Guest Uploads tab.') }}

@endif @if($showBranding ?? true)
{{ __('Powered by') }} {{ config('app.name', 'SnapNest') }}
@endif

{{ __('Upload Photos') }}

{{ __('Select photos and videos to add to the event gallery.') }}

@csrf
{{ __('Click to Select Files') }} {{ __('Up to 10 files, 50MB each') }}
/
{{-- Heart toggle in lightbox --}} {{-- Share button --}} @if($event->allow_public_downloads) {{-- Download --}} {{ __('Download') }} @endif
{{-- Header with preview --}}

{{ __('Share Photo') }}

{{-- Copy Link --}}
{{-- Social Icons --}}

{{ __('Share via') }}

{{-- Facebook --}} {{-- Twitter/X --}} {{-- WhatsApp --}} {{-- Telegram --}} {{-- LinkedIn --}} {{-- Pinterest --}} {{-- Reddit --}} {{-- Email --}}
@endif