From 85cefc3adfad59cba8168d4682acacf064fa9184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Mon, 30 Sep 2024 10:35:18 +0100 Subject: [PATCH] wip --- app/Filament/Resources/PointTypeResource.php | 4 ++-- .../Pages/{ListPointTypes.php => ManagePointTypes.php} | 4 ++-- app/Services/Filter.php | 2 ++ lang/ro.json | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) rename app/Filament/Resources/PointTypeResource/Pages/{ListPointTypes.php => ManagePointTypes.php} (90%) diff --git a/app/Filament/Resources/PointTypeResource.php b/app/Filament/Resources/PointTypeResource.php index d7a567b..dcf055f 100644 --- a/app/Filament/Resources/PointTypeResource.php +++ b/app/Filament/Resources/PointTypeResource.php @@ -91,7 +91,7 @@ public static function getRelations(): array public static function getPages(): array { return [ - 'index' => Pages\ListPointTypes::route('/'), + 'index' => Pages\ManagePointTypes::route('/'), ]; } @@ -100,6 +100,6 @@ public static function getPages(): array */ public static function isDiscovered(): bool { - return false; + return false; } } diff --git a/app/Filament/Resources/PointTypeResource/Pages/ListPointTypes.php b/app/Filament/Resources/PointTypeResource/Pages/ManagePointTypes.php similarity index 90% rename from app/Filament/Resources/PointTypeResource/Pages/ListPointTypes.php rename to app/Filament/Resources/PointTypeResource/Pages/ManagePointTypes.php index 9008949..123940c 100644 --- a/app/Filament/Resources/PointTypeResource/Pages/ListPointTypes.php +++ b/app/Filament/Resources/PointTypeResource/Pages/ManagePointTypes.php @@ -8,10 +8,10 @@ use App\Models\ServiceType; use Filament\Actions; use Filament\Resources\Components\Tab; -use Filament\Resources\Pages\ListRecords; +use Filament\Resources\Pages\ManageRecords; use Illuminate\Database\Eloquent\Builder; -class ListPointTypes extends ListRecords +class ManagePointTypes extends ManageRecords { protected static string $resource = PointTypeResource::class; diff --git a/app/Services/Filter.php b/app/Services/Filter.php index 6a532fa..e5a4fe4 100644 --- a/app/Services/Filter.php +++ b/app/Services/Filter.php @@ -14,6 +14,8 @@ class Filter 'repairs', 'reuse', 'waste_collection', + 'donations', + 'other', 'materials', 'can', 'status', diff --git a/lang/ro.json b/lang/ro.json index caa919d..4f9cf3a 100644 --- a/lang/ro.json +++ b/lang/ro.json @@ -40,6 +40,8 @@ "filter.point_type.repairs": "Tip punct reparații", "filter.point_type.reuse": "Tip punct reutilizare", "filter.point_type.waste_collection": "Tip punct colectare", + "filter.point_type.donations": "Tip punct donații", + "filter.point_type.other": "Tip alt punct", "filter.characteristics.other": "Caracteristici punct", "filter.characteristics.donations": "Caracteristici punct donații",