feat: add deposit receipt upload and admin approval/rejection workflow with SMS
This commit is contained in:
+15
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user