translate base
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Resources\Employees;
|
||||
|
||||
use App\Enums\NavigationGroup;
|
||||
use App\Filament\Resources\Employees\Pages\CreateEmployee;
|
||||
use App\Filament\Resources\Employees\Pages\EditEmployee;
|
||||
use App\Filament\Resources\Employees\Pages\ListEmployees;
|
||||
@@ -36,7 +37,7 @@ class EmployeeResource extends Resource
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUsers;
|
||||
|
||||
protected static string | UnitEnum | null $navigationGroup = 'Employees';
|
||||
protected static string|UnitEnum|null $navigationGroup = NavigationGroup::Employees;
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
@@ -80,9 +81,9 @@ class EmployeeResource extends Resource
|
||||
{
|
||||
/** @var Employee $record */
|
||||
return [
|
||||
'Employee #' => $record->employee_number,
|
||||
'Department' => $record->department?->name ?? '—',
|
||||
'Position' => $record->position?->name ?? '—',
|
||||
__('hr.fields.employee_number') => $record->employee_number,
|
||||
__('hr.fields.department') => $record->department?->name ?? '—',
|
||||
__('hr.fields.position') => $record->position?->name ?? '—',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user