query('limit_type', 'quarterly'); $calculationType = $request->query('calculation_type', 'fixed'); $fixedAmountPerMonth = $request->query('fixed_amount_per_month') ? (int) $request->query('fixed_amount_per_month') : 200000; $ratio = $request->query('ratio') ? (float) $request->query('ratio') : 0.05; $year = $request->query('year') ? (int) $request->query('year') : null; $quarter = $request->query('quarter') ? (int) $request->query('quarter') : null; $data = $this->welfareService->getSummary( $limitType, $calculationType, $fixedAmountPerMonth, $ratio, $year, $quarter ); return ApiResponse::handle($data, __('message.fetched')); } }