Yes, add cancelled, pending, and suspended service resources to admin panel

This commit is contained in:
2025-12-20 16:38:46 -05:00
parent 8a108e9604
commit 8f6ee1a7bf
17 changed files with 830 additions and 41 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Admin\Resources\SuspendedServiceResource\Pages;
use App\Admin\Resources\SuspendedServiceResource;
use Filament\Resources\Pages\CreateRecord;
class CreateSuspendedService extends CreateRecord
{
protected static string $resource = SuspendedServiceResource::class;
protected function mutateFormDataBeforeCreate(array $data): array
{
$data['status'] = 'suspended';
return $data;
}
}