@foreach($recommendations as $competition)
@if($competition->thumbnail_path || $competition->image_url) {{ $competition->name }} @else
@endif @if($competition->is_free)
🎁 FREE Entry
@endif @if($competition->tickets_sold > 0 && $competition->tickets_sold <= 200)
🔥 1 in {{ $competition->tickets_sold }} Chance or better!
@endif
@if($competition->site) {{ $competition->site->name }} @endif @if($competition->category) {{ $competition->category->name }} @endif

{{ $competition->name }}

@if($competition->is_free) FREE @else £{{ number_format($competition->price_per_entry, 2) }} @endif @if($competition->draw_date) @if($competition->draw_date->isToday()) CLOSES TODAY! @elseif($competition->draw_date->isTomorrow()) CLOSES TOMORROW! @else {{ $competition->draw_date->format('d M Y') }} @endif @endif
@if($competition->max_tickets) @php $remaining = max(0, $competition->max_tickets - ($competition->tickets_sold ?? 0)); $pct = $competition->max_tickets > 0 ? (($competition->tickets_sold ?? 0) / $competition->max_tickets) * 100 : 0; @endphp
{{ number_format($remaining) }} left {{ number_format($pct, 0) }}%
@endif View Details
@endforeach