hide old invoices from test user

This commit is contained in:
omair saleh
2020-09-29 14:43:30 +08:00
parent d1d481efcf
commit 1aed74f134
+1 -1
View File
@@ -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) {