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

@@ -26,7 +26,10 @@ class ExplanationsRelationManager extends RelationManager
{
protected static string $relationship = 'explanations';
protected static ?string $title = 'Explanations';
public static function getTitle(\Illuminate\Database\Eloquent\Model $ownerRecord, string $pageClass): string
{
return __("hr.relation_managers.explanations");
}
public function form(Schema $schema): Schema
{
@@ -43,7 +46,7 @@ class ExplanationsRelationManager extends RelationManager
->rows(4)
->columnSpanFull(),
HrForm::fileUpload('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->acceptedFileTypes(['application/pdf', 'image/*'])
->maxSize(10240),
]);
@@ -64,7 +67,7 @@ class ExplanationsRelationManager extends RelationManager
->limit(50)
->toggleable(),
IconColumn::make('attachment_path')
->label('Attachment')
->label(__('hr.fields.attachment'))
->boolean()
->trueIcon('heroicon-o-paper-clip')
->falseIcon('heroicon-o-minus'),