@extends('layouts.app') @section('content')

{{ $contest->title }}

{!! $contest->description !!}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • • {{ $error }}
  • @endforeach
@endif

Participate Now

{{-- DATE VALIDATIONS FIRST --}} @if($contestNotStarted)
Contest has not started yet.
@elseif($contestEnded)
Contest has ended.
@elseif($participationNotStarted)
Participation has not started yet.
@elseif($participationEnded)
Participation is closed.
@elseif($maxReached)
Contest is full. No more entries allowed.
@else {{-- Multi submission info --}} @if($contest->is_allow_multiple_submission)
You can submit multiple entries in this contest. @if($contest->max_entries_per_contact) Maximum entries per user: {{ $contest->max_entries_per_contact }} @else Unlimited entries allowed @endif
@endif
@csrf {{-- Name --}}
requires_name ? 'required' : '' }}> @error('full_name')

{{ $message }}

@enderror
{{-- Email --}}
requires_email ? 'required' : '' }}> @error('email')

{{ $message }}

@enderror
{{-- Phone --}}
requires_phone ? 'required' : '' }}> @error('phone')

{{ $message }}

@enderror
@endif
@endsection