manual payments list

This commit is contained in:
omair saleh
2022-08-24 16:13:45 +08:00
parent 3d28673242
commit 254b1667f7
+1 -1
View File
@@ -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 '<table>';
foreach ($payments as $payment){