diff --git a/app/Http/Controllers/Reports/MonthlyReportController.php b/app/Http/Controllers/Reports/MonthlyReportController.php index 2406d197..f112fab2 100644 --- a/app/Http/Controllers/Reports/MonthlyReportController.php +++ b/app/Http/Controllers/Reports/MonthlyReportController.php @@ -17,9 +17,8 @@ use Illuminate\Http\Request; class MonthlyReportController { public function salesReport(Request $request): JsonResponse { - - $from = $request->input('from') ? Carbon::parse($request->input('from')) : Carbon::now()->startOfMonth(); - $to = $request->input('to') ? Carbon::parse($request->input('to')) : Carbon::now()->endOfMonth(); + $from = $request->route('from') ? Carbon::parse($request->route('from')) : Carbon::now()->startOfMonth(); + $to = $request->route('to') ? Carbon::parse($request->route('to')) : Carbon::now()->endOfMonth(); $containers = Container::whereBetween('loading_date', [$from, $to])->orderBy('loading_date')->get(); diff --git a/package.json b/package.json index d5b37663..26b57108 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "v-money": "^0.8.1", "vue": "^2.6.10", "vue-avatar": "^2.1.8", - "vue-bootstrap-datetimepicker": "^5.0.1", "vue-debounce": "^2.6.0", "vue-template-compiler": "^2.6.10", "vue-the-mask": "^0.11.1", diff --git a/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue b/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue index 13680a58..3a9a04ca 100644 --- a/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue +++ b/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue @@ -2,154 +2,181 @@