Perbaikan menu Operator
This commit is contained in:
@@ -77,6 +77,11 @@ final class ShortSemester
|
||||
'aktif' => $active->contains((int) $p->idperiode) ? 'Ya' : 'Tidak',
|
||||
'kelas' => (int) ($classes[(int) $p->idperiode] ?? 0),
|
||||
'tone' => $active->contains((int) $p->idperiode) ? 'success' : null,
|
||||
'form' => [
|
||||
'thakad' => trim($p->thakad), 'semester' => (int) $p->semester,
|
||||
'mulai' => $p->mulai === null ? '' : Carbon::parse($p->mulai)->toDateString(),
|
||||
'selesai' => $p->selesai === null ? '' : Carbon::parse($p->selesai)->toDateString(),
|
||||
],
|
||||
])
|
||||
->filter(fn (array $r): bool => $q === '' || str_contains(mb_strtolower($r['nama'].' '.$r['kode']), $q))
|
||||
->values();
|
||||
|
||||
Reference in New Issue
Block a user