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

@@ -27,7 +27,10 @@ class BonusesRelationManager extends RelationManager
{
protected static string $relationship = 'bonuses';
protected static ?string $title = 'Bonuses';
public static function getTitle(\Illuminate\Database\Eloquent\Model $ownerRecord, string $pageClass): string
{
return __("hr.relation_managers.bonuses");
}
public function form(Schema $schema): Schema
{
@@ -61,7 +64,7 @@ public function table(Table $table): Table
->date()
->sortable(),
TextColumn::make('bonus_type')
->label('Type')
->label(__('hr.fields.type'))
->badge()
->color(fn (BonusType $state): string => $state->color())
->formatStateUsing(fn (BonusType $state): string => $state->label())
@@ -75,7 +78,7 @@ public function table(Table $table): Table
])
->filters([
SelectFilter::make('bonus_type')
->label('Type')
->label(__('hr.fields.type'))
->options(BonusType::class),
TrashedFilter::make(),
])