From a5d20daab31e940cf890ade75a44ffcaf3489693 Mon Sep 17 00:00:00 2001 From: "noah.lancien" Date: Thu, 6 Apr 2023 08:54:23 +0000 Subject: [PATCH] Updated Enums --- app/Enums/TicketStatus.php | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/app/Enums/TicketStatus.php b/app/Enums/TicketStatus.php index d764208..08330fa 100644 --- a/app/Enums/TicketStatus.php +++ b/app/Enums/TicketStatus.php @@ -7,17 +7,12 @@ use Kwaadpepper\Enum\BaseEnumRoutable; /** * @method static self new() * @method static self estimateTodo() - * @method static self estimateValidated() - * @method static self estimateDone() - * @method static self toPlan() - * @method static self planned() - * @method static self inprogress() * @method static self waiting() * @method static self waitingValidation() - * @method static self processed() * @method static self recette() * @method static self production() * @method static self archived() + * @method static self takenInAccount() */ class TicketStatus extends BaseEnumRoutable { @@ -31,17 +26,12 @@ class TicketStatus extends BaseEnumRoutable return [ 'new' => 1, 'estimateTodo' => 2, - 'estimateValidated' => 3, - 'toPlan' => 4, - 'planned' => 5, - 'inprogress' => 7, 'waiting' => 9, - 'processed' => 10, 'recette' => 12, 'production' => 13, 'archived' => 15, - 'estimateDone' => 16, 'waitingValidation' => 17, + 'takenInAccount' => 18, ]; } @@ -55,17 +45,12 @@ class TicketStatus extends BaseEnumRoutable return [ 'new' => trans('Nouveau'), 'estimateTodo' => trans('Devis à faire'), - 'estimateValidated' => trans('Devis validé'), - 'estimateDone' => trans('Devis réalisé'), - 'toPlan' => trans('À planifier'), - 'planned' => trans('Planifié'), - 'inprogress' => trans('En cours'), - 'waiting' => trans('En attente'), - 'waitingValidation' => trans('En attente validation'), - 'processed' => trans('Traité'), + 'waiting' => trans('En attente de réponse'), + 'waitingValidation' => trans('En attente de validation'), 'recette' => trans('En recettage'), 'production' => trans('En production'), 'archived' => trans('Archivé'), + 'takenInAccount' => trans('Pris en compte'), ]; } @@ -79,17 +64,12 @@ class TicketStatus extends BaseEnumRoutable return [ 'new' => 'text-danger', 'estimateTodo' => 'text-info', - 'estimateValidated' => 'text-info', - 'estimateDone' => 'text-info', - 'toPlan' => 'text-info', - 'planned' => 'text-info', - 'inprogress' => 'text-dark', 'waiting' => 'text-white bg-danger', 'waitingValidation' => 'text-warning bg-danger', - 'processed' => trans('Traité'), 'recette' => 'text-primary', 'production' => 'text-success', 'archived' => 'text-secondary', + 'takenInAccount' => 'text-info', ]; }