@extends('frontend.layouts.app') @section('content') @php use Carbon\Carbon; $now = Carbon::now(); $registrationNotStarted = $now->lt($contest->registration_start); $registrationOpen = $now->between($contest->registration_start, $contest->registration_end); $registrationEnded = $now->gt($contest->registration_end); $quizLive = $now->between($contest->quiz_start_time, $contest->quiz_end_time); @endphp

{{ $contest->title }}

Home / Contests / {{ $contest->title }}

{{ $contest->title }}
{{ $contest->category->name }} @if ($contest->quiz_status == 0) Upcoming @elseif($contest->quiz_status == 1) Live @elseif($contest->quiz_status == 2) Completed @elseif($contest->quiz_status == 3) Waiting @endif

{{ $contest->title }}

{{-- --}}
Entry Fee @if ($contest->entry_fee > 0) ₹{{ number_format($contest->entry_fee, 2) }} @else Free @endif
Prize Pool ₹{{ number_format($contest->prize_pool ?? 0, 2) }}
Questions {{ $contest->questions_count ?? 0 }}
Duration {{ $durationMinutes !== null ? $durationMinutes . ' Minutes' : '-' }}
Participants {{ $contest->registrations()->count() }} @if ($contest->max_participants) / {{ $contest->max_participants }} @endif
Registration Starts {{ $contest->registration_start->format('d M Y h:i A') }}
Registration Ends {{ $contest->registration_end->format('d M Y h:i A') }}
Quiz Starts {{ $contest->quiz_start_time->format('d M Y h:i A') }}
Quiz Ends {{ $contest->quiz_end_time->format('d M Y h:i A') }}
@if ($registrationNotStarted)
Registration Starts In

@elseif($registrationOpen) @guest Login to Register @else @if ($alreadyRegistered) @else
@csrf
@endif @endguest @elseif($quizLive) @if ($alreadyRegistered) @if ($quizSubmitted) @if ($showResultAfterQuiz) View Result @else @endif @else Play Now @endif @else Quiz is Live @endif @elseif($registrationEnded) Registration Closed @else View Result @endif
{{-- @if ($registrationNotStarted)
Registration Starts In

@elseif($registrationOpen) @guest Login to Register @else @if ($alreadyRegistered ?? false) @else
@csrf
@endif @endguest @elseif($quizLive) @if ($alreadyRegistered ?? false) @if (!empty($quizSubmitted)) @if (!empty($showResultAfterQuiz)) View Result @else @endif @else Play Now @endif @else Quiz is Live @endif @elseif($registrationEnded) Registration Closed @else View Result @endif --}}
Important Notice:
The contest will start automatically when more than 50% of the maximum participants have registered. If the required participation is not reached at the scheduled start time, the contest will remain in Waiting status until more participants join or the admin starts the contest.

Contest Description

{!! $contest->description !!}

Rules & Instructions

  • Register before registration ends.
  • Each participant can join only once.
  • Keep a stable internet connection.
  • Late submissions are not accepted.
  • Organizer's decision will be final.
Prize Distribution
@forelse($contest->prizes as $prize) @empty @endforelse
Rank Range Prize / Rank Total
{{ $prize->range_label }} ₹{{ number_format($prize->prize_amount, 2) }} ₹{{ number_format($prize->total_amount, 2) }}
No prizes added.
{{-- --}} {{-- --}} @endsection