From 15fde00db0fb4ff74efeb0072a1984906127bb1a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 12:47:46 +0800 Subject: [PATCH] list po pending approval --- routes/web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/web.php b/routes/web.php index b1c3ee69..ef22321c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -19,6 +19,7 @@ Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('p Route::get('/po-approval', function(){ $invoices = InvoiceStatuses::distinct()->get(['invoice_id'])->pluck('invoice_id'); + $invoices = \App\Invoice::all(); dd($invoices); echo "

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

"; foreach ($invoices as $invoice){