diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 2e4e13af..ade5e91a 100755 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -488,9 +488,10 @@ $routes->get("getBackToEnrolledDetails", "EmployeeRestController::getBackToEnrol //BDSReports $routes->group("/bdsReport", ["filter" => "authMVC"], function ($routes) { - $routes->match( ['get', 'post'], 'irba_report','BDSReportController::irba_report'); + $routes->match( ['get', 'post'], 'irba_report','BDSReportController::irba_report'); $routes->get('insurer_wise_data/(:any)','BDSReportController::Insurer_wise_Data/$1'); $routes->get('bap_wise_data/(:any)','BDSReportController::Bap_Wise_Data/$1'); + $routes->match( ['get', 'post'], 'renewal_report','BDSReportController::renewalReport'); }); diff --git a/app/Controllers/BDSReportController.php b/app/Controllers/BDSReportController.php index 1fdc4b6a..62866e3c 100644 --- a/app/Controllers/BDSReportController.php +++ b/app/Controllers/BDSReportController.php @@ -896,4 +896,25 @@ class BDSReportController extends AdminController // return []; // } // } + + // ---------------RENEWAL REPORT----------------------------------------------------------------------------------- + + + public function renewalReport() + { + if ($this->request->is('get')) { + + $default_start = new \DateTime(); + $data['default_end'] = $default_start->format('d-m-Y'); + $data['default_start'] = $default_start->modify('-60 days')->format('d-m-Y'); + $data['page_name'] = "Renewal Report"; + return $this->loadLayout('renewal_search', $data); + + } else { + + $data['page_name'] = "Renewal Report"; + $html = view('bds_renewal_report_list', $data); + return $this->respond(['status' => true, 'html' => $html], 200); + } + } } diff --git a/app/Views/bds_renewal_report_list.php b/app/Views/bds_renewal_report_list.php new file mode 100644 index 00000000..e69de29b diff --git a/app/Views/irda_bap_client_report_list.php b/app/Views/irda_bap_client_report_list.php index 3f31a226..69414819 100644 --- a/app/Views/irda_bap_client_report_list.php +++ b/app/Views/irda_bap_client_report_list.php @@ -20,6 +20,17 @@ table.dataTable tbody td { .right-align-input { text-align: right; } + +.right-align-input:nth-child(4n+1), +.right-align-input:nth-child(4n+2) { + background-color: #f9f9f9; /* Light gray shade */ +} + +.right-align-input:nth-child(4n+3), +.right-align-input:nth-child(4n+4) { + background-color: #ffffff; /* White shade */ +} +