mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
x1 and x2 reports
This commit is contained in:
+2
-2
@@ -21,9 +21,9 @@ 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')->get();
|
||||
$bookings = Booking::where('admin_status', '>=', 3)->where('term', 'x1')->whereYear('created_at', 2020)->get();
|
||||
$months = $bookings->groupBy(function($item) {
|
||||
return $item->created_at->format('Y-m-d');
|
||||
return $item->created_at->format('Y-m');
|
||||
});
|
||||
|
||||
dd($months);
|
||||
|
||||
Reference in New Issue
Block a user