File tree Expand file tree Collapse file tree
src/Filament/Resources/PropertyValueResource/Pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 'updated ' => 'Property value updated successfully. ' ,
5555 'deleted ' => 'Property value deleted successfully. ' ,
5656 ],
57+
58+ 'pages ' => [
59+ 'title ' => [
60+ 'with_property ' => 'Values for: :property ' ,
61+ 'default ' => 'Property Values ' ,
62+ ],
63+ 'breadcrumbs ' => [
64+ 'properties ' => 'Properties ' ,
65+ 'list ' => 'List ' ,
66+ ],
67+ ],
5768];
Original file line number Diff line number Diff line change 5454 'updated ' => 'Vrednost lastnosti je bila uspešno posodobljena. ' ,
5555 'deleted ' => 'Vrednost lastnosti je bila uspešno izbrisana. ' ,
5656 ],
57+
58+ 'pages ' => [
59+ 'title ' => [
60+ 'with_property ' => 'Vrednosti za: :property ' ,
61+ 'default ' => 'Vrednosti lastnosti ' ,
62+ ],
63+ 'breadcrumbs ' => [
64+ 'properties ' => 'Lastnosti ' ,
65+ 'list ' => 'Seznam ' ,
66+ ],
67+ ],
5768];
Original file line number Diff line number Diff line change 22
33namespace Eclipse \Catalogue \Filament \Resources \PropertyValueResource \Pages ;
44
5+ use Eclipse \Catalogue \Filament \Resources \PropertyResource ;
56use Eclipse \Catalogue \Filament \Resources \PropertyValueResource ;
67use Eclipse \Catalogue \Models \Property ;
78use Filament \Actions ;
@@ -36,11 +37,25 @@ protected function getHeaderActions(): array
3637 }
3738
3839 public function getTitle (): string
40+ {
41+ return $ this ->property
42+ ? __ ('eclipse-catalogue::property-value.pages.title.with_property ' , ['property ' => $ this ->property ->name ])
43+ : __ ('eclipse-catalogue::property-value.pages.title.default ' );
44+ }
45+
46+ public function getBreadcrumbs (): array
3947 {
4048 if ($ this ->property ) {
41- return "Values for: {$ this ->property ->name }" ;
49+ return [
50+ PropertyResource::getUrl ('index ' ) => __ ('eclipse-catalogue::property-value.pages.breadcrumbs.properties ' ),
51+ null => $ this ->property ->name ,
52+ request ()->url () => __ ('eclipse-catalogue::property-value.pages.breadcrumbs.list ' ),
53+ ];
4254 }
4355
44- return 'Property Values ' ;
56+ return [
57+ PropertyValueResource::getUrl ('index ' ) => __ ('eclipse-catalogue::property-value.pages.title.default ' ),
58+ request ()->url () => __ ('eclipse-catalogue::property-value.pages.breadcrumbs.list ' ),
59+ ];
4560 }
4661}
You can’t perform that action at this time.
0 commit comments