From 9d96042f800cd087013c4a8be6b57da5d1f600bc Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 12:38:52 +0800 Subject: [PATCH] list po pending approval --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 983ce3d5..f55fe921 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,7 +18,7 @@ Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset'); Route::get('/po-approval', function(){ - $invoices = InvoiceStatuses::distinct('invoice_id')->get(); + $invoices = InvoiceStatuses::distinct()->get(['invoice_id']); dd($invoices); echo "

Total PO Pending Approval:".count($invoices)."

"; foreach ($invoices as $invoice){