diff --git a/app/Enums/CaseStatus.php b/app/Enums/CaseStatus.php index 66e9ddb5..8b5ba5fa 100644 --- a/app/Enums/CaseStatus.php +++ b/app/Enums/CaseStatus.php @@ -17,6 +17,7 @@ enum CaseStatus: string implements HasLabel, HasColor case ACTIVE = 'active'; case MONITORED = 'monitored'; + case INACTIVE = 'inactive'; case CLOSED = 'closed'; case ARCHIVED = 'archived'; @@ -30,7 +31,7 @@ public function getColor(): string|array|null return match ($this) { self::ACTIVE => Color::Green, self::MONITORED => Color::Yellow, - self::CLOSED => Color::Gray, + self::CLOSED, self::INACTIVE => Color::Gray, self::ARCHIVED => Color::Purple, default => Color::Red, }; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/ViewBeneficiary.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/ViewBeneficiary.php index c604fe0b..81741663 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/ViewBeneficiary.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/ViewBeneficiary.php @@ -9,6 +9,7 @@ use App\Enums\CaseStatus; use App\Enums\Ternary; use App\Filament\Organizations\Resources\BeneficiaryResource; +use App\Filament\Organizations\Resources\BeneficiaryResource\Actions\ChangeStatus; use App\Filament\Organizations\Resources\BeneficiaryResource\Actions\ViewDetailsAction; use App\Filament\Organizations\Resources\BeneficiaryResource\Widgets\CaseTeamListWidget; use App\Filament\Organizations\Resources\BeneficiaryResource\Widgets\CloseFileWidget; @@ -86,10 +87,11 @@ protected function getHeaderActions(): array ActionGroup::make([]) ->dropdown(false) ->actions([ - BeneficiaryResource\Actions\ChangeStatus::make('active'), - BeneficiaryResource\Actions\ChangeStatus::make('monitored'), - BeneficiaryResource\Actions\ChangeStatus::make('closed'), - BeneficiaryResource\Actions\ChangeStatus::make('archived'), + ChangeStatus::make('active'), + ChangeStatus::make('monitored'), + ChangeStatus::make('inactive'), + ChangeStatus::make('closed'), + ChangeStatus::make('archived'), ]), ActionGroup::make([]) diff --git a/lang/ro/beneficiary.php b/lang/ro/beneficiary.php index 3bf079a9..f467d20a 100644 --- a/lang/ro/beneficiary.php +++ b/lang/ro/beneficiary.php @@ -461,6 +461,7 @@ 'status' => [ 'active' => 'Deschis', 'monitored' => 'Monitorizare', + 'inactive' => 'Inactiv', 'closed' => 'Închis', 'archived' => 'Arhivat', ], @@ -476,6 +477,7 @@ 'case_actions' => 'Acțiuni caz', 'active' => 'Redeschide caz (dosar curent)', 'monitored' => 'Mută în monitorizare ', + 'inactive' => 'Inactivează caz', 'closed' => 'Închide caz', 'archived' => 'Arhivează caz', 'reactivate' => 'Reactivează caz (dosar nou)',