list po pending approval

This commit is contained in:
omair saleh
2020-09-29 12:43:21 +08:00
parent d03f531fc6
commit 06c9382bcb
+1 -1
View File
@@ -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::distinct()->get();
$invoices = InvoiceStatuses::distinct()->get(['invoice_id'])->pluck('invoice_id');
dd($invoices);
echo "<h1>Total PO Pending Approval:<b>".count($invoices)."</b></h1>";
foreach ($invoices as $invoice){