diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php index 17f028d3..0233504b 100755 --- a/app/Controllers/EmployeeController.php +++ b/app/Controllers/EmployeeController.php @@ -135,6 +135,9 @@ class EmployeeController extends AdminController // dd($this->request->getGet()); $this->myLogger->logme('error', 'list called'); + + $data['page_name'] = "Members"; + $this->loadLayout('employee_list', $data); } @@ -789,6 +792,9 @@ class EmployeeController extends AdminController } $this->myLogger->logme('error', 'list called'); + + $data['page_name'] = "Endorsement"; + $this->loadLayout('endorsement_list', $data); } @@ -833,6 +839,9 @@ class EmployeeController extends AdminController // dd($data); $this->myLogger->logme('error', 'list called'); + + $data['page_name'] = "Enrollment"; + return $this->loadLayout('enrollment_list', $data); } @@ -3042,6 +3051,8 @@ class EmployeeController extends AdminController // print_r($data); die; // } + $data['page_name'] = "Retail Endorsement"; + $this->loadLayout('retail_endorsement_list', $data); } diff --git a/app/Views/employee_list.php b/app/Views/employee_list.php index af1cde66..45ad39a0 100755 --- a/app/Views/employee_list.php +++ b/app/Views/employee_list.php @@ -1,530 +1,501 @@
-
-
-

- Members - - - -

-
-
- -
-
-
- +
+
+
+

+ Filter + + + +

+
+
+ +
+
+
+ +
+ + +
+
+ +
+ + +
+
+ +
+ +
+
+ +
+ + +
+
+ +
+ +
+
+ +
+
- - -
-
- + - - -
-
- -
- -
-
- -
- - -
-
- -
- -
-
- -
- +
- -
+
- +
+ function sendManualEcard(input) { + console.log('sendManualEcard function called'); + + var client_id = $('#clients').val() + var client_branch_id = $('#branch_id').val() + var policy_id = $('#policies').val() + + console.log('input', input); + console.log('client_id', client_id); + console.log('client_branch_id', client_branch_id); + + if (client_id == 0 || client_branch_id == 0 || policy_id == 0) { + Swal.fire({ + title: "warning!", + text: 'Please select the Client, Client Branch and Policy.', + icon: "warning" + }); + + return false + } + + Swal.fire({ + title: "Do you want to send Ecard Mail?", + showDenyButton: true, + showCancelButton: false, + confirmButtonText: "Yes,Send", + denyButtonText: "Don't Send" + }).then((result) => { + + if (result.isConfirmed) { + + $.ajax({ + url: '' + client_id + '/' + client_branch_id + '/' + policy_id, + type: "GET", + dataType: 'json', + success: function(res) { + + console.log('send_manual_ecard', res) + + $('.loader').fadeOut(); + $('.loader-mask').delay(350).fadeOut('slow'); + + if (res.status == false) { + toastr.info(res.message, 'INFO'); + } else { + toastr.success(res.message, 'SUCCESS'); + } + + }, + error: function(xhr, status, error) { + console.error(xhr.responseText); + console.error(status, error); + $('.loader').fadeOut(); + $('.loader-mask').delay(350).fadeOut('slow'); + } + }); + // Swal.fire("Saved!", "", "success"); + } + }); + + } + \ No newline at end of file diff --git a/app/Views/endorsement_list.php b/app/Views/endorsement_list.php index b3f60e9c..de7d908b 100755 --- a/app/Views/endorsement_list.php +++ b/app/Views/endorsement_list.php @@ -15,66 +15,69 @@
-

Endorsement

-
-
-
@@ -333,7 +336,7 @@ var option = $('
-
-
+
- + - + -