From 23b4ddb29c0fc69599917da781ef9ed853eaf52a Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Sat, 20 Dec 2025 16:49:41 -0500 Subject: [PATCH] feat: add breadcrumbs to service cancellation pages --- .../Pages/CreateServiceCancellation.php | 10 ++++++++++ .../Pages/EditServiceCancellation.php | 10 ++++++++++ .../Pages/ListServiceCancellations.php | 9 +++++++++ 3 files changed, 29 insertions(+) diff --git a/app/Admin/Resources/ServiceCancellationResource/Pages/CreateServiceCancellation.php b/app/Admin/Resources/ServiceCancellationResource/Pages/CreateServiceCancellation.php index 13ed08713..5aa5ce5de 100644 --- a/app/Admin/Resources/ServiceCancellationResource/Pages/CreateServiceCancellation.php +++ b/app/Admin/Resources/ServiceCancellationResource/Pages/CreateServiceCancellation.php @@ -3,9 +3,19 @@ namespace App\Admin\Resources\ServiceCancellationResource\Pages; use App\Admin\Resources\ServiceCancellationResource; +use App\Admin\Resources\ServiceResource; use Filament\Resources\Pages\CreateRecord; class CreateServiceCancellation extends CreateRecord { protected static string $resource = ServiceCancellationResource::class; + + public function getBreadcrumbs(): array + { + return [ + ServiceResource::getUrl('index') => 'Services', + ServiceCancellationResource::getUrl('index') => 'Cancellations', + '#' => 'Create', + ]; + } } diff --git a/app/Admin/Resources/ServiceCancellationResource/Pages/EditServiceCancellation.php b/app/Admin/Resources/ServiceCancellationResource/Pages/EditServiceCancellation.php index 269e8799e..b263fbab6 100644 --- a/app/Admin/Resources/ServiceCancellationResource/Pages/EditServiceCancellation.php +++ b/app/Admin/Resources/ServiceCancellationResource/Pages/EditServiceCancellation.php @@ -3,6 +3,7 @@ namespace App\Admin\Resources\ServiceCancellationResource\Pages; use App\Admin\Resources\ServiceCancellationResource; +use App\Admin\Resources\ServiceResource; use Filament\Actions; use Filament\Resources\Pages\EditRecord; @@ -16,4 +17,13 @@ class EditServiceCancellation extends EditRecord Actions\DeleteAction::make(), ]; } + + public function getBreadcrumbs(): array + { + return [ + ServiceResource::getUrl('index') => 'Services', + ServiceCancellationResource::getUrl('index') => 'Cancellations', + '#' => 'Edit', + ]; + } } diff --git a/app/Admin/Resources/ServiceCancellationResource/Pages/ListServiceCancellations.php b/app/Admin/Resources/ServiceCancellationResource/Pages/ListServiceCancellations.php index 24867411b..fb1b8b8fe 100644 --- a/app/Admin/Resources/ServiceCancellationResource/Pages/ListServiceCancellations.php +++ b/app/Admin/Resources/ServiceCancellationResource/Pages/ListServiceCancellations.php @@ -3,6 +3,7 @@ namespace App\Admin\Resources\ServiceCancellationResource\Pages; use App\Admin\Resources\ServiceCancellationResource; +use App\Admin\Resources\ServiceResource; use Filament\Actions; use Filament\Resources\Pages\ListRecords; @@ -16,4 +17,12 @@ class ListServiceCancellations extends ListRecords Actions\CreateAction::make(), ]; } + + public function getBreadcrumbs(): array + { + return [ + ServiceResource::getUrl('index') => 'Services', + '#' => 'Cancellations', + ]; + } }