translate base
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user