From 85c19266f8ed57e463373ba24a9506efa93ba4bc Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 24 Aug 2022 16:21:18 +0800 Subject: [PATCH] manual payments list --- routes/web.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routes/web.php b/routes/web.php index 828f38da..66ddf8d4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -364,9 +364,12 @@ Route::get('/wallets/active', function(){ Route::get('/payments/manual', function(){ $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)->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get(); + $i = 0; echo ''; foreach ($payments as $payment){ + $i++; echo ''; + echo ''; echo ''; echo ''; echo '';
'.$i.''.$payment->documents()->first() ? $payment->documents()->first()->created_at : 'not sure: '.$payment->created_at.''.$payment->owner->marking.''.$payment->amount.'