From d7da040674dc66bc31949520a09dc7b07b88cf65 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 12:31:43 +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 7e4393b1..b79fadc0 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::where('status', 'pending')->groupBy('invoice_id')->get(); echo "

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

"; foreach ($invoices as $invoice){ echo "".$invoice->invoice->booking->id."
";