From 405de462039c314baa9ca730cf224d97cbd5e812 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 12:02:06 +0800 Subject: [PATCH] list pending po pending approval --- routes/web.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index d1ad6f9d..a83d270d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,6 @@ name('password.request'); Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset'); + +Route::get('/po-approval', function(){ + $invoices = InvoiceStatuses::where('status', 'pending'); + foreach ($invoices as $invoice){ + echo $invoice->invoice->booking->id; + } +})->name('po.approval'); + Route::get('/old-invoices', function(){ $bookings = \App\Booking::where('status', 6)->whereHas('purchaseOrder', function($q){ $q->whereNotNull('image_path'); @@ -30,7 +39,8 @@ Route::get('/old-invoices', function(){ } echo "


"; } -})->name('home'); +})->name('invoice.old'); + Route::group(['middleware' => ['role:admin']], function() { Route::get('bulkBookings', function () { return view('booking.bulkBooking');