feat: filament for users
This commit is contained in:
@@ -2,9 +2,20 @@
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum WeightGoal: string
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
enum WeightGoal: string implements HasLabel
|
||||
{
|
||||
case LOSE_WEIGHT = 'lose_weight';
|
||||
case MAINTAIN_WEIGHT = 'maintain_weight';
|
||||
case GAIN_WEIGHT = 'gain_weight';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::LOSE_WEIGHT => 'Perdre du poids',
|
||||
self::MAINTAIN_WEIGHT => 'Maintenir le poids',
|
||||
self::GAIN_WEIGHT => 'Prendre du poids',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user