@php $searchField = filter_var($searchField, FILTER_VALIDATE_BOOLEAN); @endphp

{{ $title }}

@if (!empty($addbtn)) {{ $addbtn[0] }} @endif
@if ((empty((array) $filters) && count($filters) > 0) || $searchField == true) @endif @if ($tableCheckedbox) @endif
@foreach ($headers as $index => $header) @endforeach @if (count($data) > 0) @foreach ($data as $row) @foreach ($headers as $index => $header) @endforeach @endforeach @else @endif
@if ($index == 'id' && $tableCheckedbox) {{ $header }} @else {{ $header }} @endif
@if ($index == 'id' && $tableCheckedbox) {{ $row[$index] }} @else @php $viewOnly = isset($row['registration_closed']) && $row['registration_closed'] ? $row['registration_closed'] : false; @endphp @if ($index == 'status' || $index == 'classification') @endif @if ($index == 'active_due_date') @php $dueDate = \Carbon\Carbon::parse($row['active_due_date']); $currentDate = \Carbon\Carbon::now(); $colorClass = $dueDate->isPast() ? 'text-red-500' : 'text-green-500'; @endphp @endif @if ($index == 'action')
@foreach ($actions as $action => $route) @if ($action == 'edit' && !$viewOnly) @elseif ($action == 'edit-schedule') @elseif ($action == 'delete') @elseif ($action == 'view') @elseif ($action == 'view-participating-schools') @elseif ($action == 'pay') @elseif ($action == 'delete-item') @endif @endforeach
@else @if (isset($isDropdown) and in_array($index, $isDropdown)) @else {{ $row[$index] }} @endif @endif @if ($index == 'status' || $index == 'classification')
@endif @endif
No Results Found.
@push('scripts') @endpush