From 1aed74f1344d93cc308b84f09f37258cae11da7c Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 29 Sep 2020 14:43:30 +0800 Subject: [PATCH] hide old invoices from test user --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {