pending customer po grouped by customer

This commit is contained in:
omair saleh
2020-12-07 12:16:11 +08:00
parent 4408158960
commit 7fc29728b2
+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');
})->whereDate('created_at', '>=', Carbon::parse('01/04/2020'))->get();
})->whereDate('created_at', '>=', Carbon::parse('01/04/2020')->format('Y-m-d'))->get();
$months = $bookings->groupBy(function($item) {
return $item->created_at->format('Y-m');
});