update customer's account

This commit is contained in:
Omair Saleh
2023-02-15 15:36:46 +08:00
parent 1359b92982
commit a33584961a
@@ -28,7 +28,8 @@ class WalletTransactionResource extends JsonResource
$description = 'Credit Voucher for '.$this->payment_reference;
break;
case 1:
Log::info($marking = Transaction::where('payment_reference', $this->bill_no)->first());
$booking = Transaction::where('payment_reference', $this->bill_no)->first()->owner;
if (!$booking) Log::info(Transaction::where('payment_reference', $this->bill_no)->first());
$marking = Transaction::where('payment_reference', $this->bill_no)->first()->owner->marking;
$description = 'Payment For booking refs.'.'<a href="'.route('booking.details', $marking).'">'.$marking.'</a>';
break;