finalize detail page except NDS and squencing
This commit is contained in:
@@ -50,12 +50,7 @@ class DashboardController extends Controller
|
||||
|
||||
public function summary()
|
||||
{
|
||||
$dateFrom = Carbon::now()->subDays(7)->toDateString();
|
||||
$dateTo = Carbon::now()->toDateString();
|
||||
|
||||
$data = $this->service->summaryCards($dateFrom, $dateTo);
|
||||
|
||||
return response()->json($data);
|
||||
return response()->json($this->service->summaryCards());
|
||||
}
|
||||
|
||||
|
||||
@@ -148,21 +143,22 @@ class DashboardController extends Controller
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public function sentinelMap(Request $request)
|
||||
{
|
||||
$range = $this->getEpiRange($request);
|
||||
// public function sentinelMap(Request $request)
|
||||
|
||||
if (!$range) {
|
||||
return response()->json(['error' => 'Missing epiweek range'], 400);
|
||||
}
|
||||
// {
|
||||
// $range = $this->getEpiRange($request);
|
||||
|
||||
$data = $this->service->sentinelMap(
|
||||
$range['startYear'],
|
||||
$range['startWeek'],
|
||||
$range['endYear'],
|
||||
$range['endWeek']
|
||||
);
|
||||
// if (!$range) {
|
||||
// return response()->json(['error' => 'Missing epiweek range'], 400);
|
||||
// }
|
||||
|
||||
return response()->json($data);
|
||||
}
|
||||
// $data = $this->service->sentinelSites(
|
||||
// $range['startYear'],
|
||||
// $range['startWeek'],
|
||||
// $range['endYear'],
|
||||
// $range['endWeek']
|
||||
// );
|
||||
|
||||
// return response()->json($data);
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user