@php $date1=date_create(date("M j, Y")); $date2=date_create($hackathon->start_time); $date = null; $diff=date_diff($date1,$date2)->format("%R%a"); $class = ''; if($diff > 0){ $class = 'upcoming'; $date = $hackathon->start_time; }else{ $date2=date_create($hackathon->end_time); $diff=date_diff($date1,$date2)->format("%R%a"); if($diff > 0){ $class = 'live'; $date = $hackathon->end_time; }else{ $class = 'expired'; } } @endphp @php $metas = ''.$hackathon->title.'' @endphp @extends('master') @section('main_content')
{!! $hackathon->about !!}
{!! $hackathon->problem_statement !!}
@php $fileCount = 0; @endphp @if($hackathon->test_file) @endif @if ($hackathon->train_file) @endif @if ($hackathon->sample_submission) @endif
{{++$fileCount}} Test File Download
{{++$fileCount}} Train File Download
{{++$fileCount}} Sample Submission Download
{!! $hackathon->evaluation !!}

S.No. Description Code File Solution File
Rank User Points Score
1 Mark 10 1000
2 Emma 8 900
3 Sophia 6 8000
@endsection