fetch('index'); } public function list(){ $build = new Order(); $start = now()->modify('-14 days')->format('Y-m-d'); $end_at = now()->format('Y-m-d 23:29:59'); $filter ['daterange'] = request()->get('daterange'); if (!empty($filter['daterange'])) { $arr = explode(' - ', $filter['daterange']); if (trim($arr[0])) { $start = trim($arr[0]); } if (trim($arr[1])) { $end_at = trim($arr[1]) . ' 23:29:59'; } } $build->field([ 'item_title', 'sum(total) total', 'count(id) count', 'sum(performance) performance' ])->group('item_title'); return []; } public function chartData(){ return []; } }