{{-- trsexm/_partials/data_table.blade.php DataTable listing for trsexm. Used by: trsexm/list.blade.php --}} @php use App\Enums\ExamStatus; @endphp
@foreach ($table_detail as $i => $item) @php $rowClass = ''; if ($item->is_past) { $rowClass = 'row-past'; } elseif ($item->is_today) { $rowClass = 'row-today'; if ($item->status == ExamStatus::ON_PROGRESS->value) { $rowClass .= ' row-progress'; } } @endphp @endforeach
Action No Training Name Test Type Schedule TRN ID Status Absent Bank Question
@if (!empty($item->is_locked_due_to_past)) @elseif ($item->action_label == 'Progress') @elseif($item->action_label == 'Setting') @if (!$item->is_absen) @else @endif @elseif($item->action_label == 'Detail') @endif {{ $i + 1 }} {{ $item->training_name }} @php $testType = \App\Enums\TestType::tryFrom($item->test_type); @endphp @if ($testType) {{ $testType->label() }} @else - @endif {{ $item->schedule }} @if($item->is_today) Today @endif {{ $item->trn_id }} @if (!empty($item->is_locked_due_to_past)) Locked @elseif ($item->status == ExamStatus::ON_PROGRESS->value) Progress @elseif($item->status == ExamStatus::SCHEDULED->value) Scheduled @elseif($item->status == ExamStatus::FINISHED->value) Complete @endif @if ( empty($item->is_locked_due_to_past) && ($item->control_type ?? null) === 'TIMER' && ( ( ($item->status ?? null) === ExamStatus::SCHEDULED->value && !empty($item->start_time_full) ) || ( ($item->status ?? null) === ExamStatus::ON_PROGRESS->value && !empty($item->end_time_full) ) ) )
{{ ($item->status ?? null) === ExamStatus::SCHEDULED->value ? 'Starts: 0d 00:00:00' : 'Remaining: 0d 00:00:00' }} @endif
@if ($item->absent != '-') {{ $item->absent }} @else - @endif {{ $item->bank_question_title }}