@php
$isPastDate = \Carbon\Carbon::parse($selectedDate)->isPast() && !\Carbon\Carbon::parse($selectedDate)->isToday();
@endphp
@if($isPastDate)
{{-- Show message for past dates --}}
Allocation date is in the past. You can only view previously allocated questions.
@endif
@if(session('success'))
{{ session('success') }}
@endif
@if($codings->count() > 0)
@else
No Coding Questions found for this selection.
@endif