update customer's account

This commit is contained in:
Omair Saleh
2023-02-15 15:40:59 +08:00
parent a33584961a
commit e70fa3d5c2
@@ -29,8 +29,8 @@ class WalletTransactionResource extends JsonResource
break;
case 1:
$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;
$marking = $booking ? $booking->marking : null;
$description = 'Payment For booking refs.'.'<a href="'.route('booking.details', $marking).'">'.$marking.'</a>';
break;
case 11: