@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 = '
S.No. | Description | Code File | Solution File |
---|