@extends('layouts.app') @section('admin_title', 'Allocate Codings') @section('content')
@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
Allocate Codings to: {{ $universityName }} / {{ $collegeName }} / {{ $departmentName }} / {{ $batchName }} || {{ $courseName }} / {{ $moduleName }} / {{ $topicName }} / {{ \Carbon\Carbon::parse($selectedDate)->format('d M Y') }}
@csrf
@if($codings->count() > 0)
@csrf @foreach(['uname','cname','dept','batch','coursename','module','topic'] as $filter) @endforeach @include('admin.coding.partials.allocate_table_rows', [ 'codings' => $codings, 'allocatedIds' => $allocatedIds, 'serialStart' => $codings->firstItem(), 'isPastDate' => $isPastDate ])
S.No Title Level @if(!$isPastDate) Select All @else Allocated @endif
@include('admin.pagination.allocate_coding_pagination', ['codings' => $codings])

@if(!$isPastDate)
@endif
@else

No Coding Questions found for this selection.

@endif
@endsection