Refactor employee management by implementing automatic employee number generation, updating national ID handling, and enhancing localization for gender and nationality fields across various resources. Adjust form components and validation logic to improve user experience and data integrity.
This commit is contained in:
@@ -8,14 +8,14 @@ enum Gender: string
|
||||
{
|
||||
case Male = 'male';
|
||||
case Female = 'female';
|
||||
case Other = 'other';
|
||||
// case Other = 'other';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Male => __('enums.gender.male'),
|
||||
self::Female => __('enums.gender.female'),
|
||||
self::Other => __('enums.gender.other'),
|
||||
// self::Other => __('enums.gender.other'),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ enum Gender: string
|
||||
return match ($this) {
|
||||
self::Male => 'info',
|
||||
self::Female => 'pink',
|
||||
self::Other => 'gray',
|
||||
// self::Other => 'gray',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ enum Gender: string
|
||||
return match ($this) {
|
||||
self::Male => 'heroicon-o-user',
|
||||
self::Female => 'heroicon-o-user',
|
||||
self::Other => 'heroicon-o-users',
|
||||
// self::Other => 'heroicon-o-users',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user