diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php index 8fb1ea0..321770d 100755 --- a/app/Controllers/ClientController.php +++ b/app/Controllers/ClientController.php @@ -1021,7 +1021,12 @@ class ClientController extends AdminController $insurerValue = (string) $this->request->getPost('insurer'); - list($insurerBranchId, $insurerId) = explode('-', $insurerValue); + if ($insurerValue === null || $insurerValue === '') { + $insurerBranchId = null; + $insurerId = null; + } else { + list($insurerBranchId, $insurerId) = explode('-', $insurerValue); + } $data['insurer_branch_id'] = $insurerBranchId; diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php index 5f4e9b2..2e5d202 100755 --- a/app/Controllers/EmployeeController.php +++ b/app/Controllers/EmployeeController.php @@ -114,6 +114,10 @@ class EmployeeController extends AdminController // log_message('error',json_encode($data['employees'])); // Set getData in $data array with the processed $filterData $data['getData'] = $filterData; + + $html = view('employee_data_list', $data); + return $this->respond(['status' => true, 'html' => $html], 200); + } // dd($this->employeeModel->getLastQuery()); diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index 10ff476..4daedd0 100755 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -76,10 +76,10 @@ -
+
diff --git a/app/Views/employee_data_list.php b/app/Views/employee_data_list.php index 1573b67..e3d9a6e 100755 --- a/app/Views/employee_data_list.php +++ b/app/Views/employee_data_list.php @@ -38,6 +38,44 @@ text-align: right; } +.readonly-select { + pointer-events: none; + background-color: #f0f0f0; + color: #666; +} + + + + @@ -141,15 +179,22 @@ @@ -259,14 +304,30 @@ + + + + diff --git a/app/Views/employee_list.php b/app/Views/employee_list.php index 255d827..976e2f6 100755 --- a/app/Views/employee_list.php +++ b/app/Views/employee_list.php @@ -135,31 +135,105 @@ table.dataTable tbody td { - + +