feat: implement template editing functionality and revert approved templates to draft status

This commit is contained in:
hamed
2026-06-19 20:48:44 +03:30
parent fa332f7fa1
commit b686cd1e7d
3 changed files with 67 additions and 6 deletions
+2
View File
@@ -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;