fix: update gender search logic in StudentsTable to use enum values for improved consistency
This commit is contained in:
parent
aa3bb2ec76
commit
10d90a0297
@ -67,11 +67,11 @@ public static function configure(Table $table): Table
|
||||
$search = strtolower($search);
|
||||
|
||||
if (str_contains('laki-laki', $search)) {
|
||||
$query->orWhere('sex', 'male');
|
||||
$query->orWhere('sex', Sex::Male);
|
||||
}
|
||||
|
||||
if (str_contains('perempuan', $search)) {
|
||||
$query->orWhere('sex', 'female');
|
||||
$query->orWhere('sex', Sex::Female);
|
||||
}
|
||||
}),
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user