@if($contests->count()) @php $favContests = Auth::user()->favContests ?? []; $favContestsIds = []; foreach ($favContests as $key => $favContest) { $favContestsIds[] = $favContest->contest_id; } @endphp
image
{{$context->title ?? 'Try your chance at winning'}}

{{$context->sub_title ?? 'Current Contest'}}

{!! $context->description ?? '

Participants buy tickets and lots are drawn to determine the winners.

' !!}
@foreach ($contests as $key => $contest)
@if(!empty($contest->images[0]->path) && Storage::exists($contest->images[0]->path)) {{$contest->title.' Banner Image'}} @else image @endif
contest no:

{{$contest->contest_no}}

{{$contest->title}}
${{$contest->price}}

ticket price

@endforeach
@if(count($contests) >= 6) @endif
@endif