Skip to content

Commit

Permalink
fix: report labels
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Oct 15, 2024
1 parent d843d62 commit 3dc6604
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ protected function afterCreate(): void
$job::dispatch($this->record, $data);
}

protected function getTitle(): string
{
return ucfirst(__('report.label.plural'));
}

protected function getBreadcrumbs(): array
{
return [];
}

protected function getFormSchema(): array
{
return [
Expand Down Expand Up @@ -161,6 +171,11 @@ protected function getFormSchema(): array
];
}

protected function getCreatedNotificationTitle(): ?string
{
return null;
}

protected function getFormActions(): array
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ protected function getTableQuery(): Builder
return ReportResource::getEloquentQuery();
}

protected function getTableHeading(): string
{
return __('report.header.list');
}

protected function getTableColumns(): array
{
return [
Expand Down
2 changes: 1 addition & 1 deletion lang/ro/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],

'header' => [
'list' => 'Rapoarte',
'list' => 'Toate rapoartele',
'coming_soon' => 'Disponibile în curând.',
],

Expand Down

0 comments on commit 3dc6604

Please sign in to comment.