= isset($tpa['front_card']) && !empty($tpa['front_card']) ? $tpa['front_card'] : '( Upload Your Front card Image )' ?>
@@ -210,7 +210,7 @@
-
+
= isset($tpa['back_card']) && !empty($tpa['back_card']) ? $tpa['back_card'] : '( Upload Your Back card Image )' ?>
@@ -230,7 +230,7 @@
-
+
diff --git a/app/Views/tpa_branch.php b/app/Views/tpa_branch.php
index 0ca3769e..00683a57 100755
--- a/app/Views/tpa_branch.php
+++ b/app/Views/tpa_branch.php
@@ -29,10 +29,10 @@
max-height: 80vh;
}
-
+
@@ -241,8 +241,8 @@
@@ -250,13 +250,11 @@
@@ -451,7 +453,7 @@ $(document).ready(function () {
myModal.hide();
// $('#add_branch').hide();
// $('#branch_table').show();
- $('.btnBack').hide();
+ // $('.btnBack').hide();
// $('#btnBranchAdd').show();
},
error: function (xhr, status, error) {
@@ -587,75 +589,163 @@ $(document).ready(function () {
-function appendContactHtml(contact = false, reset = false) {
+// function appendContactHtml(contact = false, reset = false) {
- console.log('appendContactHtml function called ')
- contactCount++;
+// console.log('appendContactHtml function called ')
+// contactCount++;
+
+// var container = document.getElementById('container');
+// var uniqueId = Date.now().toString();
+
+// var html = `
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+// `;
+
+// if(reset == false){
+// console.log(reset)
+// container.insertAdjacentHTML('beforeend', html);
+// storeButtonId(uniqueId + '_add');
+
+// if (contactCount >= 3) {
+// hideStoredAddButtons();
+// }
+// }
+
+// }
+
+function renumberContacts() {
+ var contacts = document.querySelectorAll('.contact-block');
+
+ contacts.forEach(function(contact, index) {
+ let title = contact.querySelector('.modal-subtitle');
+ if (title) {
+ title.textContent = "Contact " + (index + 1); // auto numbering
+ }
+ });
+
+ contactCount = contacts.length; // keep global in sync
+}
+
+
+ function appendContactHtml(contact = false, reset = false) {
+ console.log('appendContactHtml function called ');
var container = document.getElementById('container');
var uniqueId = Date.now().toString();
var html = `
-