diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 8302c53430bb..d43cacf6f043 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -314,9 +314,9 @@ class Payment extends BaseModel return $this->createClientDate($this->date, $this->client->timezone()->name)->format($date_format->format); } - public static function badgeForStatus(int $status): string + public function badgeForStatus(): string { - switch ($status) { + switch ($this->status_id) { case self::STATUS_PENDING: return '