@extends('layouts.nova') @section('meta-description', $meta['description'] ?? '') @push('head') {{ $meta['title'] ?? 'Card Challenges - Skinbase Nova' }} @endpush @section('content')

Nova Cards

{{ $heading }}

{{ $subheading }}

@if(!empty($challengeEntryItems ?? []))

Entries

@auth @if(!empty($challenge ?? null)) @endif @endauth
@foreach($challengeEntryItems as $entry)
@include('cards.partials.tile', ['card' => $entry['card']]) @auth @endauth
@endforeach
@endif
@foreach(($challenges ?? collect()) as $challengeItem)
{{ strtoupper($challengeItem->status) }}

{{ $challengeItem->title }}

@if($challengeItem->featured) Featured @endif
@if($challengeItem->prompt)

{{ $challengeItem->prompt }}

@endif @if($challengeItem->description)

{{ $challengeItem->description }}

@endif
{{ number_format((int) $challengeItem->entries_count) }} entries {{ optional($challengeItem->starts_at)->format('M j, Y') ?: 'Open date TBD' }}
View challenge @auth @endauth
@endforeach
@endsection @push('scripts') @endpush