translate base

This commit is contained in:
Mekan1206 committed 2026-07-31 18:08:08 +05:00
1 parent a794dacd39
commit 581cb8241c
413 files changed
+9087 -428

No files matched your search

@@ -19,7 +19,7 @@ public static function configure(Schema $schema): Schema
->required()
->maxLength(255),
TextInput::make('email')
->label('Email address')
->label(__('hr.fields.email_address'))
->email()
->required()
->maxLength(255)
@@ -34,7 +34,14 @@ public static function configure(Schema $schema): Schema
->relationship('department', 'name')
->searchable()
->preload()
->label('Department (for managers)'),
->label(__('hr.fields.department_for_managers')),
Select::make('locale')
->label(__('hr.fields.locale'))
->options(collect(config('hr.supported_locales'))
->mapWithKeys(fn (string $locale): array => [$locale => config('hr.locale_labels')[$locale]])
->all())
->required()
->default(config('hr.default_locale')),
Select::make('roles')
->relationship('roles', 'name')
->multiple()
@@ -13,7 +13,7 @@ public static function configure(Schema $schema): Schema
->components([
TextEntry::make('name'),
TextEntry::make('email')
->label('Email address'),
->label(__('hr.fields.email_address')),
TextEntry::make('email_verified_at')
->dateTime()
->placeholder('-'),
@@ -24,7 +24,7 @@ public static function configure(Schema $schema): Schema
->dateTime()
->placeholder('-'),
TextEntry::make('department.name')
->label('Department')
->label(__('hr.fields.department'))
->placeholder('-'),
]);
}
@@ -18,7 +18,7 @@ public static function configure(Table $table): Table
TextColumn::make('name')
->searchable(),
TextColumn::make('email')
->label('Email address')
->label(__('hr.fields.email_address'))
->searchable(),
TextColumn::make('email_verified_at')
->dateTime()
@@ -4,6 +4,7 @@
namespace App\Filament\Resources\Users;
use App\Enums\NavigationGroup;
use App\Filament\Resources\Users\Pages\CreateUser;
use App\Filament\Resources\Users\Pages\EditUser;
use App\Filament\Resources\Users\Pages\ListUsers;
@@ -17,6 +18,7 @@
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
use UnitEnum;
class UserResource extends Resource
{
@@ -24,7 +26,7 @@ class UserResource extends Resource
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUsers;
protected static string|\UnitEnum|null $navigationGroup = 'System';
protected static string|UnitEnum|null $navigationGroup = NavigationGroup::System;
protected static ?int $navigationSort = 2;