pending customer po grouped by customer

This commit is contained in:
omair saleh
2020-12-07 12:18:46 +08:00
parent bd270bf356
commit 18f39a7ab2
+1 -1
View File
@@ -75,7 +75,7 @@ Route::group(['middleware' => ['role:admin']], function() {
$bookings = Booking::where('admin_status', 6)->where(function($q){
$q->WhereDoesntHave('invoice')->WhereDoesntHave('purchaseOrder');
})->whereYear('created_at', 2020)->whereMonth('created_at', '>=', 4)->get();
})->whereYear('created_at', '>=', 2020)->whereMonth('created_at', '>=', 4)->get();
$months = $bookings->groupBy(function($item) {
return $item->created_at->format('Y-m');
});