mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix smc profile can't load bug
This commit is contained in:
@@ -27,7 +27,8 @@ class WalletTransactionResource extends JsonResource
|
||||
$description = 'Credit Voucher for '.$this->payment_reference;
|
||||
break;
|
||||
case 1:
|
||||
$marking = Transaction::where('payment_reference', $this->bill_no)->first()->owner->marking;
|
||||
$bill = Transaction::where('payment_reference', $this->bill_no)->first();
|
||||
$marking = $bill ? $bill->owner->marking : 'Unknown';
|
||||
$description = 'Payment For booking refs.'.'<a href="'.route('booking.details', $marking).'">'.$marking.'</a>';
|
||||
break;
|
||||
case 11:
|
||||
|
||||
Reference in New Issue
Block a user