feat: implement template editing functionality and revert approved templates to draft status
This commit is contained in:
@@ -72,6 +72,8 @@ class SmsTemplate
|
||||
|
||||
public function submitForReview(): self { $this->status = self::STATUS_PENDING; $this->touch(); return $this; }
|
||||
|
||||
public function revertToDraft(): self { $this->status = self::STATUS_DRAFT; $this->touch(); return $this; }
|
||||
|
||||
public function approve(?string $note = null): self
|
||||
{
|
||||
$this->status = self::STATUS_APPROVED;
|
||||
|
||||
Reference in New Issue
Block a user