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

@@ -25,14 +25,17 @@ class SickLeavesRelationManager extends RelationManager
{
protected static string $relationship = 'sickLeaves';
protected static ?string $title = 'Sick Leaves';
public static function getTitle(\Illuminate\Database\Eloquent\Model $ownerRecord, string $pageClass): string
{
return __("hr.relation_managers.sick_leaves");
}
public function form(Schema $schema): Schema
{
return $schema
->components([
HrForm::leaveDatePicker('start_date', 'Start Date'),
HrForm::leaveDatePicker('end_date', 'End Date'),
HrForm::leaveDatePicker('start_date', __(hr.fields.start_date)),
HrForm::leaveDatePicker('end_date', __(hr.fields.end_date)),
HrForm::leaveDaysDisplay(),
TextInput::make('medical_institution')
->maxLength(255),
@@ -40,7 +43,7 @@ public function form(Schema $schema): Schema
->rows(3)
->columnSpanFull(),
HrForm::fileUpload('document_path')
->label('Medical Document')
->label(__('hr.fields.medical_document'))
->acceptedFileTypes(['application/pdf', 'image/*'])
->maxSize(10240),
]);
@@ -64,7 +67,7 @@ public function table(Table $table): Table
->searchable()
->toggleable(),
IconColumn::make('document_path')
->label('Document')
->label(__('hr.fields.document'))
->boolean()
->trueIcon('heroicon-o-document-check')
->falseIcon('heroicon-o-document'),