'در انتظار بررسی', self::ChangesRequested => 'نیازمند اصلاح', self::Approved => 'تأیید شده', self::Rejected => 'رد شده', }; } public function color(): string { return match ($this) { self::Pending => 'warning', self::ChangesRequested => 'warning', self::Approved => 'success', self::Rejected => 'danger', }; } public function isPending(): bool { return $this === self::Pending; } public function isChangesRequested(): bool { return $this === self::ChangesRequested; } public function isApproved(): bool { return $this === self::Approved; } public function isRejected(): bool { return $this === self::Rejected; } public function canBeResubmitted(): bool { return $this === self::ChangesRequested; } }