From cdf554308e5d82a575b3aa5ba95bd6736839baa8 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 11:06:38 +0800 Subject: [PATCH] x1 and x2 reports --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index aa484f86..5d2301c9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -21,7 +21,7 @@ Route::get('/', 'WelcomeController@index'); Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.request'); Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset'); Route::get('/report/x1', function(){ - $bookings = Booking::where('admin_status', '>=', 3)->where('term', 'x1'); + $bookings = Booking::where('admin_status', '>=', 3)->where('term', 'x1')->get(); $months = $bookings->groupBy(function($item) { return $item->created_at->format('Y-m-d'); });