mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
hide old invoices from test user
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user