update customer's account

This commit is contained in:
Omair Saleh
2023-02-15 15:46:01 +08:00
parent 30fe0d29e0
commit fa4e16a721
@@ -29,9 +29,14 @@ class WalletTransactionResource extends JsonResource
break;
case 1:
$booking = Transaction::where('payment_reference', $this->bill_no)->first()->owner;
$marking = $booking ? $booking->marking : null;
$description = 'Payment For booking refs.'. $marking ? '<a href="'.route('booking.details', $marking).'">'.$marking.'</a>' : 'Please ask Tech Support';
if(!$booking) {
$description = 'Payment for unknown booking, please contact tech support.';
break;
}
$marking = $booking->marking;
$description = 'Payment For booking refs.'.'<a href="'.route('booking.details', $marking).'">'.$marking.'</a>';
break;
case 11:
$description = 'Debit Voucher for '.$this->payment_reference;