temp show specific report period

This commit is contained in:
omair saleh
2021-10-11 14:39:30 +08:00
parent f2e944cc0b
commit 3d1fb48cfb
@@ -21,8 +21,8 @@ class MonthlyReportController
public function salesReport(Request $request): JsonResponse {
$today = Carbon::now()->subMonth();
$start_day = 13;
$end_day = 19;
$start_day = 1;
$end_day = 5;
$containers = Container::whereDay('loading_date', '>=', $start_day)->whereDay('loading_date', '<=', $end_day)->whereMonth('loading_date', $today->format('m'))->whereYear('loading_date', $today->format('Y'))->orderBy('loading_date')->get();