{{-- Data Table Card --}}
{{ $cardTitle ?? ('List ' . $title_menu) }}

{{ $cardSubtitle ?? 'Pastikan absensi selesai sebelum ujian dimulai agar peserta bisa mengikuti proses berikutnya.' }}


@foreach (($rows ?? $table_detail) as $i => $s) @endforeach
Action No TRN ID Training Name Training Type Test Type Date Time Location Department Total Participants Absent Status
@if ($s->exam_started) @elseif ($s->status_absensi === 'NIHIL') @elseif ($s->status_absensi === 'HADIR') @else @endif {{ $i + 1 }} {{ $s->id_trs_trn }} {{ $s->training_name }} @if ((int) ($s->with_score ?? 0) === 1)
WITH SCORE
@else
WITHOUT SCORE
@endif
@if ($s->has_pre_test) PRE TEST @endif @if ($s->has_post_test) POST TEST @endif @if (!$s->has_pre_test && !$s->has_post_test) - @endif {{ \Carbon\Carbon::parse($s->date)->format('d/m/Y') }} {{ $s->time_start }} - {{ $s->time_end }} {{ $s->location }} {{ $s->department }} {{ $s->total_peserta }} @if ($s->total_tidak_hadir !== null && $s->total_tidak_hadir > 0) {{ $s->total_tidak_hadir }} @else - @endif @if ($s->status_absensi === 'NIHIL') NIHIL @elseif ($s->status_absensi === 'HADIR') Attended @else Not Attended @endif