list po's pending approval

This commit is contained in:
omair saleh
2020-09-29 12:15:14 +08:00
parent 94803a5009
commit 445a6bff17
+1
View File
@@ -19,6 +19,7 @@ Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('p
Route::get('/po-approval', function(){
$invoices = InvoiceStatuses::where('status', 'pending')->get();
echo "<h1>Total PO Pending Approval:<b>".count($invoices)."</b></h1>";
foreach ($invoices as $invoice){
echo "<a target='_blank' href='https://exchange.cief-malaysia.com/booking/".$invoice->invoice->booking->id."/upload-invoice'>".$invoice->invoice->booking->id."</a><br>";
}