diff --git a/app/Http/Resources/WalletTransactionResource.php b/app/Http/Resources/WalletTransactionResource.php index a498392a..ba4dab81 100644 --- a/app/Http/Resources/WalletTransactionResource.php +++ b/app/Http/Resources/WalletTransactionResource.php @@ -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.'.''.$marking.''; break; case 11: