From 254b1667f7e2d53deb6295c42b6e113eb9bd2a90 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 24 Aug 2022 16:13:45 +0800 Subject: [PATCH] manual payments list --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index a06ba1d2..c6c92fd7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -362,7 +362,7 @@ Route::get('/wallets/active', function(){ }); Route::get('/payments/manual', function(){ - $payments = Transaction::where('type', TransactionType::PAYMENT)->where('owner_type', Booking::class)->get(); + $payments = Transaction::where('type', TransactionType::PAYMENT)->whereIn('payment_method', [\App\Classes\ValueObjects\Constants\PaymentMethodType::CASH, \App\Classes\ValueObjects\Constants\PaymentMethodType::BA, \App\Classes\ValueObjects\Constants\PaymentMethodType::CHEQUE])->where('owner_type', Booking::class)->get(); echo ''; foreach ($payments as $payment){