diff --git a/routes/web.php b/routes/web.php index d9897191..d1d23a25 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,7 +30,7 @@ Route::get('/po-approval', function(){ })->name('po.approval'); Route::get('/old-invoices', function(){ - $bookings = \App\Booking::where('status', 6)->whereNot('user_id', 1)->whereHas('purchaseOrder', function($q){ + $bookings = \App\Booking::where('status', 6)->where('user_id', '!=', 1)->whereHas('purchaseOrder', function($q){ $q->whereNotNull('image_path'); })->get(); $months = $bookings->groupBy(function($item) {