From 79934313e90ab4b39843a5e0ea21dbaa2d1daa4b Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 12:35:37 +0800 Subject: [PATCH] allow admin to create po --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 7b215bb8..f2193f39 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::where('status', 'pending')->get(); + $invoices = InvoiceStatuses::all(); dd($invoices); echo "

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

"; foreach ($invoices as $invoice){