translate base

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

View File

@@ -29,7 +29,10 @@ class DisciplinaryReportsRelationManager extends RelationManager
{
protected static string $relationship = 'disciplinaryReports';
protected static ?string $title = 'Disciplinary Reports';
public static function getTitle(\Illuminate\Database\Eloquent\Model $ownerRecord, string $pageClass): string
{
return __("hr.relation_managers.disciplinary_reports");
}
public function form(Schema $schema): Schema
{
@@ -50,7 +53,7 @@ class DisciplinaryReportsRelationManager extends RelationManager
->required()
->native(false),
HrForm::fileUpload('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->acceptedFileTypes(['application/pdf', 'image/*'])
->maxSize(10240),
]);
@@ -73,12 +76,12 @@ class DisciplinaryReportsRelationManager extends RelationManager
->formatStateUsing(fn (DisciplinarySeverity $state): string => $state->label())
->sortable(),
IconColumn::make('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->boolean()
->trueIcon('heroicon-o-paper-clip')
->falseIcon('heroicon-o-minus'),
TextColumn::make('creator.name')
->label('Created By')
->label(__('hr.fields.created_by'))
->toggleable(),
])
->filters([