list pending po pending approval

This commit is contained in:
omair saleh
2020-09-29 12:03:41 +08:00
parent 73e77cdc5e
commit 438c2dec58
+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::where('status', 'pending');
$invoices = InvoiceStatuses::where('status', 'pending')->get();
dd(count($invoices));
foreach ($invoices as $invoice){
echo $invoice->invoice->booking->id;