diff --git a/routes/web.php b/routes/web.php index aa9a39a9..7a11b705 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1273,6 +1273,7 @@ Route::get('/payment-and-billing-2', function () { Route::get('/show-all-extra-payments', function () { ini_set('memory_limit', '-1'); ini_set('max_execution_time', 0); + $transactionCounter = 0; $invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE) ->where('status', ApprovalStatus::COMPLETED) @@ -1302,6 +1303,7 @@ Route::get('/show-all-extra-payments', function () { if (($paidAmount <= $invoice->amount) || ($paidAmount - $invoice->amount < 0.01)) { continue; } + $transactionCounter += 1; echo ''; echo '' . $invoice->type . ''; @@ -1312,6 +1314,8 @@ Route::get('/show-all-extra-payments', function () { echo ''; } echo ''; + + echo'
Total: ' . $transactionCounter; }); Route::get('/segments', function (Request $request) {