allow admin to create po

This commit is contained in:
omair saleh
2020-09-29 12:31:43 +08:00
parent af183e6a22
commit d7da040674
+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')->get();
$invoices = InvoiceStatuses::where('status', 'pending')->groupBy('invoice_id')->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>";