From 438c2dec58c92fee50e6d699779963cf53bc2503 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 12:03:41 +0800 Subject: [PATCH] list pending 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 45ff8b2d..951bd092 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'); + $invoices = InvoiceStatuses::where('status', 'pending')->get(); dd(count($invoices)); foreach ($invoices as $invoice){ echo $invoice->invoice->booking->id;