{{-- trseva/_partials/filter.blade.php Filter card: Period From/To, Training select, Status Evaluasi select. Used by: trseva/list.blade.php --}} @php use App\Enums\EvaluationStatus; $scoreTypeLabel = match($filter['score_type'] ?? '') { 'with' => 'With Score', 'without' => 'Without Score', default => null, }; $statusLabel = null; @endphp
Evaluation Data Filter
Filter Active: @if (!empty($filter['period_from']) || !empty($filter['period_to'])) Periode: {{ $filter['period_from'] ?: '-' }} s/d {{ $filter['period_to'] ?: '-' }} @endif @if ($statusLabel) Status: {{ $statusLabel }} @endif @if ($scoreTypeLabel) Tipe: {{ $scoreTypeLabel }} @endif @if (!($filter['period_from'] ?? null) && !($filter['period_to'] ?? null) && !$statusLabel && !$scoreTypeLabel && !($filter['id_trs_trn'] ?? null)) No active filter @endif @if ($filter['id_trs_trn'] ?? null) Selected Training @endif