x1 and x2 reports

This commit is contained in:
omair saleh
2020-12-05 11:06:38 +08:00
parent 8e1edc6eb5
commit cdf554308e
+1 -1
View File
@@ -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');
});