translate base
This commit is contained in:
21
app/Enums/NavigationGroup.php
Normal file
21
app/Enums/NavigationGroup.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
enum NavigationGroup: string implements HasLabel
|
||||
{
|
||||
case Organization = 'organization';
|
||||
case Employees = 'employees';
|
||||
case LeaveManagement = 'leave_management';
|
||||
case Records = 'records';
|
||||
case System = 'system';
|
||||
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return __('hr.navigation.' . $this->value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user