diff --git a/routes/web.php b/routes/web.php index b79fadc0..7b215bb8 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,7 +18,8 @@ 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')->groupBy('invoice_id')->get(); + $invoices = InvoiceStatuses::where('status', 'pending')->get(); + dd($invoices); echo "

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

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