feat: add deposit receipt upload and admin approval/rejection workflow with SMS

This commit is contained in:
2026-11-08 13:26:28 +03:30
parent 808c272e0c
commit 885e51a79b
6 changed files with 322 additions and 3 deletions
+15 -3
View File
@@ -23,15 +23,27 @@ class Withdraw extends Model
'date_at',
'sts',
'type',
'receipt',
'deposit_identifier',
'reject_reason',
];
protected $appends = [
'receipt_url',
];
public function getReceiptUrlAttribute(): ?string
{
return File::publicUrl($this->receipt);
}
static $STS = [
1 => 'در انتظار واریز',
1 => 'در انتظار تایید',
2 => 'واریز شد',
4 => 'واریز توسط ادمین',
5 => 'پاداش معرفی',
9 => 'سود زیر مجموعه',
3 => 'واریز ناموفق',
3 => 'رد شده',
50 => 'در انتظار ارسال',
51 => 'ارسال شده',
52 => 'لغو شده',
@@ -40,7 +52,7 @@ class Withdraw extends Model
public function customer()
{
return $this->belongsTo('App\Models\Customer')->select(['id', 'name', 'mobile']);
return $this->belongsTo('App\Models\Customer')->select(['id', 'name', 'mobile', 'n_code']);
}
public function address()