@php $state = $challenge->state(); @endphp
{{ $challenge->stateLabel() }}@if ($state === 'live') · ends {{ $challenge->ends_at->format('j M, g:ia') }}@elseif ($state === 'upcoming') · opens {{ $challenge->starts_at->format('j M, g:ia') }}@endif

{{ $challenge->name }}

@if ($challenge->hashtagLabel()){{ $challenge->hashtagLabel() }}@endif @if ($challenge->prize)

Prize: {{ $challenge->prize }}

@endif
@if ($state === 'live') @if ($myEntries->where('status', '!=', \App\Enums\UgcStatus::Rejected)->count() >= max(1, $challenge->max_entries_per_user)) You've entered ✓ @elseif ($joined) Post your entry @elseif (! $reason || ! auth()->check()) @endif @endif {{ number_format($challenge->participants_count) }} joined · {{ number_format($challenge->published_entries_count) }} {{ \Illuminate\Support\Str::plural('entry', $challenge->published_entries_count) }}
@if ($reason && auth()->check() && $state === 'live')

{{ $reason }}

@endif @if ($myEntries->where('status', \App\Enums\UgcStatus::Pending)->isNotEmpty())

Your entry is being reviewed — it'll appear below once approved.

@endif
@if ($winner) Winning look by {{ $winner->byline() }} Winner · {{ $winner->byline() }} @elseif ($challenge->colour) @endif

Entries

@if ($challenge->voting_enabled){{ $challenge->isVotingOpen() ? 'Voting closes '.$challenge->votingCloses()->format('j M, g:ia') : 'Voting closed' }}@endif
@if ($entries->isEmpty()) {{ $state === 'live' ? 'Be the first — join and post your look.' : 'Check back soon.' }} @else
@foreach ($entries as $post) @if ($challenge->voting_enabled) @php $voted = $myVotes->has($post->id); $own = auth()->id() === $post->user_id; @endphp @if ($challenge->isVotingOpen() && ! $own) @else {{ number_format($post->votes_count) }} @endif @endif @endforeach
@if ($hasMore)
@endif @endif