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');