CREATE TABLE `cp4_scriptext` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modul` varchar(99) DEFAULT NULL,
  `name` varchar(99) DEFAULT NULL,
  `body` text DEFAULT NULL,
  `is` varchar(10) DEFAULT '0',
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `level` tinyint(4) NOT NULL DEFAULT 0,
  `parent` int(11) NOT NULL DEFAULT 0,
  `update_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `folder_name` (`modul`(20),`name`),
  KEY `id_folder_slug` (`id`,`modul`(20)),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp4_scriptext` VALUES('1','app','app','// Dom7
\nvar $$ = Dom7;
\n// Theme
\nvar theme = \'auto\';
\nif (document.location.search.indexOf(\'theme=\') >= 0) {
\n  theme = document.location.search.split(\'theme=\')[1].split(\'&\')[0];
\n}
\n// Init App
\nvar app = new Framework7({
\n  id: \'com.app.Fin4\',
\n  root: \'#app\',
\n  theme: \'ios\',
\n  data: function() {
\n    return {
\n      user: {
\n        firstName: \'John\',
\n        lastName: \'Doe\',
\n      },
\n    };
\n  },
\n  methods: {
\n    helloWorld: function() {
\n      app.dialog.alert(\'Hello World!\');
\n    },
\n  },
\n  routes: routes,
\n  popup: {
\n    closeOnEscape: true,
\n  },
\n  sheet: {
\n    closeOnEscape: true,
\n  },
\n  popover: {
\n    closeOnEscape: true,
\n  },
\n  actions: {
\n    closeOnEscape: true,
\n  },
\n  smartSelect: {
\n    pageTitle: \'Select Option\',
\n    openIn: \'popup\',
\n  }
\n});
\n
\n//var introEl = $(\'.page-introduction\')[0]
\n/*
\nvar mainView = app.views.create(\'.view-main\', {
\n  url: \'./index.html\'
\n}); 
\n*/
\nlet user_data_var = JSON.parse(localStorage.getItem(\'f04_user\'));
\nif (user_data_var != null) {
\n  //this.views.main.router.navigate(\'/home/\')
\n  app.views.main.router.navigate(\'/\');
\n
\n} else {
\n  //$(\'.page-introduction\').show();
\n  //introEl.style.display = \'none\'
\n  //this.views.main.router.navigate(\'/intro/\')
\n  app.views.main.router.navigate(\'/intro/\');  
\n}
\n
\n
\nlet item_data = JSON.parse(localStorage.getItem(\'f04_data\'));
\nif (item_data != null) {
\n} else {
\n  var page = 1;
\n  var limit = 10;
\n  let req = {
\n    page,limit
\n  }
\n  if(req) {
\n    //get_item(req);
\n  }
\n}
\n//console.log(item_data)
\n//console.log(user_data_var)
\n
\nsetTimeout(function() {
\n  $(\'.loader-screen\').hide();
\n}, 2000);
\n// check for updates
\n// checkUpdates(appVersion).then(res => {
\n//     if(res.status){
\n//         app.dialog.alert(res.message, \'Update Required!\', () => {
\n//             // open google playstore
\n//             window.open(\'https://skycombabs.com/assets/skycombabs.apk\', \'_system\');
\n//         })
\n//     }
\n// })
\n
\n$$(\'.switch-theme\')[\'on\'](\'click\', function() {
\n  $$(\'.page\')[\'toggleClass\'](\'page-theme-transition\'), $$(\'.page\')[\'transitionEnd\'](function() {
\n    $$(\'.page\')[\'toggleClass\'](\'page-theme-transition\');
\n  }), $$(\'body\')[\'hasClass\'](\'dark\') ? $$(\'.switch-theme i\')[\'text\'](\'moon_stars\') : $$(\'.switch-themex20i\')[\'text\'](\'sun_max\'), $$(\'body\')[\'toggleClass\'](\'dark\');
\n});','js','0','1','0','1747486313');
INSERT INTO `cp4_scriptext` VALUES('2','utils','utils','let base_url = "https://nibrasfincp.azkapersada.com/api/v2/";
\nlet ar={
\n\'relation\':{1:\'Komisaris\',2:\'Direksi\',3:\'Staff\',6:\'Debitur\',7:\'Kreditur\',8:\'Customer\',
\n9:\'Supplier\',10:\'Other\'},
\n\'brand\':{1:\'Samsung\',2:\'Panasonic\',3:\'Sharp\'}
\n};
\n
\n
\nfunction checkConnection(url) {}
\n
\nfunction timeOut(num = 30000) {
\n  setTimeout(() => {
\n    app.preloader.hide();
\n    app.dialog.alert(\'Operation timed out...\', \'Time Out\');
\n  }, num)
\n}
\n
\nfunction promiseTimeout(ms, promise) {
\n  // Create a promise that rejects in <ms> milliseconds
\n  let timeout = new Promise((resolve, reject) => {
\n    let id = setTimeout(() => {
\n      clearTimeout(id);
\n      reject(\'Operation timed out in \' + (ms / 1000) + \'s\')
\n    }, ms)
\n  })
\n  // Returns a race between our timeout and the passed in promise
\n  return Promise.race([
\n    promise,
\n    timeout
\n  ])
\n}
\n
\nString.prototype.replaceAt = function(index, char) {
\n  return this.substr(0, index - 1) + char + this.substr(index + char.length);
\n}
\n
\nfunction copyToClipboard(element) {
\n  var $temp = $("<input>");
\n  $("body").append($temp);
\n  $temp.val($(element).text()).select();
\n  document.execCommand("copy");
\n  $temp.remove();
\n}
\n
\nfunction init_swiper(Id){      
\nvar swiper1 = app.swiper.create(Id, {  
\n  pagination: {
\n    el: \'.swiper-pagination\',
\n    type: \'bullets\',
\n  },
\n    speed: 400,
\n    spaceBetween: 10,
\n    slidesPerView: 1,
\n    autoplay: { delay: 4000, disableOnInteraction:false }
\n  });
\n}','js','0','1','0','1747217421');
INSERT INTO `cp4_scriptext` VALUES('3','app','signout','$$(document).on(\'page:init\', \'.page[data-name="account"]\', function(e) {
\n  $(document).off("click", "#signout").on("click", "#signout", function(e) {
\n  console.log(\'app signout ready\')
\n    e.preventDefault();
\n    localStorage.removeItem(\'f04_user\')
\n    localStorage.removeItem(\'f04_data\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n    window.location.reload()
\n  });
\n})','js','0','2','1','1746835126');

INSERT INTO `cp4_scriptext` VALUES('5','app','password_forgot','$$(document).on(\'page:init\', \'.page[data-name="password_forgot"]\', function(e) {
\n  $(document).off("click", "#password_forgot_button").on("click", "#password_forgot_button", function(e) {
\n  console.log(\'app password_forgot ready\')
\n    e.preventDefault();
\n    var email = $("#emailForgot").val();
\n    let req = {
\n      email
\n    }
\n    if (email) {
\n      password_forgot(req);
\n    } else {
\n      app.dialog.alert("Please enter your email", "Forgot Password Errors");
\n    }
\n  });
\n})','js','0','2','1','1746931155');


INSERT INTO `cp4_scriptext` VALUES('8','app','account_edit','$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', async function (e) {
\n  console.log(\'app account_edit ready\')
\n  var view = app.views.current
\n
\n  let user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n  console.log(user)
\n  if (!user) {
\n      app.views.main.router.navigate(\'/signin/\');
\n      return
\n  }
\n
\n  // Example of how to fill in the form fields with the provided data
\n  document.querySelector(\'input[name="token_3"]\').value = user.sess_token || \'\';
\n  document.querySelector(\'input[name="uuid_3"]\').value = user.uuid || \'\';
\n  document.querySelector(\'input[name="email_3"]\').value = user.data.email || \'\';
\n  document.querySelector(\'input[name="first_name_3"]\').value = user.data.firstname || \'\';
\n  document.querySelector(\'input[name="last_name_3"]\').value = user.data.lastname || \'\';
\n  document.querySelector(\'input[name="phone_3"]\').value = user.data.phone || \'\';
\n})
\n
\n$$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', function(e) {
\n  $(document).off("click", "#account_edit_button").on("click", "#account_edit_button", function(e) {
\n    e.preventDefault();
\n  let user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n
\n    const token=user.sess_token;
\n    const firstname = $(\'input[name="first_name_3"]\').val().trim();
\n    const lastname = $(\'input[name="last_name_3"]\').val().trim();
\n    const phone = $(\'input[name="phone_3"]\').val().trim();
\n    const uuid = $(\'input[name="uuid_3"]\').val().trim();
\n    let req = {
\n      uuid,
\n      token,
\n      firstname,
\n      lastname,
\n      phone
\n    };
\n    if (phone && firstname) {
\n      app.preloader.show();
\n      promiseTimeout(30000, account_edit(req))
\n        .then(res => {
\n          if (res.status) {
\n              app.preloader.hide();
\n              app.dialog.alert(res.message, "Account Updated", () => {
\n              app.views.main.router.navigate(\'/account_edit/\');
\n            });
\n          } else {
\n            app.preloader.hide();
\n            app.dialog.alert(res.message, "Edit Account Errors")
\n          }
\n        }).catch(err => {
\n          //app.preloader.hide();
\n          //app.dialog.alert(err, "Timed Out");
\n          app.views.main.router.navigate(\'/account_edit/\');
\n          app.dialog.alert("Account Updated", "Edit Account");
\n        });
\n    } else {
\n      app.dialog.alert("All fields are required", "Edit Account Errors");
\n    }
\n  });
\n});','js','0','2','1','1747066267');
INSERT INTO `cp4_scriptext` VALUES('9','app','account_delete','$(document).on(\'page:init\', \'.page[data-name="account_delete"]\', async function (e) {
\n  console.log(\'app account_delete ready\')
\n  var view = app.views.current
\n  let user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n  if (!user) {
\n      app.views.main.router.navigate(\'/signin/\');
\n      return
\n  }
\n  // Example of how to fill in the form fields with the provided data
\n  document.querySelector(\'input[name="email_4"]\').value = user.email || \'\';
\n})
\n
\n$$(document).on(\'page:init\', \'.page[data-name="account_delete"]\', function(e) {
\n  $(document).off("click", "#account_delete_button").on("click", "#account_delete_button", function(e) {
\n    e.preventDefault();
\n    let user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n    const reason = $(\'#reason_4\').val();
\n    console.log(reason)
\n    const token=user.sess_token;
\n    const uuid=user.uuid;
\n    let req = {
\n      reason,uuid,token
\n    }
\n    if (reason) {
\n      app.dialog.confirm(\'Are you sure you want to delete your account?\', \'Delete Account\', async function () {
\n        app.preloader.show()
\n        account_delete(req);
\n      })
\n    } else {
\n      app.dialog.alert("Please enter your reason", "Delete Account Errors");
\n    }
\n  });
\n})','js','0','2','1','1747434888');
INSERT INTO `cp4_scriptext` VALUES('10','app','address_add','$$(document).on(\'page:init\', \'.page[data-name="address_add"]\', function(e) {
\n  $(document).off("click", "#address_add_button").on("click", "#address_add_button", function(e) {
\n  console.log(\'app address add click ready\')
\n    e.preventDefault();
\n    let user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n    const label = $(\'#ad_label\').val();
\n    const name = $(\'#ad_name\').val();
\n    const phone = $(\'#ad_phone\').val();
\n    const address = $(\'#ad_address\').val();
\n    const rt = $(\'#ad_rt\').val();
\n    const rw = $(\'#ad_rw\').val();
\n    const no = $(\'#ad_no\').val();
\n    const postcode = $(\'#ad_postcode\').val();
\n    const kel = $(\'#ad_kel\').val();
\n    const kec = $(\'#ad_kec\').val();
\n    const city = $(\'#ad_city\').val();
\n    const gmap = $(\'#ad_gmap\').val();
\n    const remark = $(\'#ad_remark\').val();
\n    const token=user.sess_token;
\n    const uuid=user.uuid;
\n    let req = {
\n      label,name,uuid,token,phone,address,rt,rw,no,postcode,kel,kec,city,gmap,remark
\n    }
\n    if (name && phone && address && no && gmap) {
\n      address_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Add Address Errors");
\n    }
\n  });
\n})','js','0','2','1','1746835018');
INSERT INTO `cp4_scriptext` VALUES('11','app','address','$(document).on(\'page:init\', \'.page[data-name="address"]\', async function (e) {
\n  console.log(\'app address ready\')
\n  var view = app.views.current
\n
\n  let js = JSON.parse(localStorage.getItem(\'f04_user\'));
\n  let dt = js.data.address;
\n  //console.log(dt)
\n  var strHtml = ``;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml += `
\n    <div class="card card-raised" id="adrs_`+dt[i].id+`">
\n      <div class="card-content card-content-padding">
\n        <p><b>`+dt[i].label+` [`+dt[i].name+`, `+dt[i].phone+`]</b></p>
\n        <p>`+dt[i].address+`, `+dt[i].rt+`, `+dt[i].rw+`, `+dt[i].no+`, `+dt[i].kel+`, `+dt[i].kec+`, `+dt[i].city+`, `+dt[i].postcode+`</p>
\n      </div>
\n      <div class="card-footer"><a href="/address_edit/`+dt[i].id+`" class="btn btn-sm btn-warning user_address_edit" data-id="`+dt[i].id+`">Edit</a><a class="btn btn-sm btn-danger user_address_delete" data-id="`+dt[i].id+`">Delete</a></div>
\n    </div>`;
\n  }
\n   strHtml += `
\n   <div class="separator-large"></div>`;  
\n  //console.log(strHtml)
\n  $$("#address_content").html(strHtml);
\n})','js','0','2','1','1746931600');
INSERT INTO `cp4_scriptext` VALUES('12','app','user_address_delete','// Delete useraddress
\n$(document).on(\'click\', \'.user_address_delete\', async function (e) {
\n  console.log(\'app user_address_delete ready\')
\n  const aid = $(e.target).attr(\'data-id\');
\n  const user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n  const token=user.sess_token;
\n  const uuid=user.uuid;
\n  let req = {
\n    uuid,token,aid
\n  }
\n  //console.log(req)  
\n  // confirm dialog
\n  app.dialog.confirm(\'Are you sure you want to delete this address?\', \'Delete Address\', async function () {
\n      app.preloader.show()
\n      if (aid && uuid) {
\n        user_address_delete(req,\'adrs_\'+aid);
\n      } 
\n  })
\n})','js','0','2','1','1746835138');
INSERT INTO `cp4_scriptext` VALUES('13','app','address_edit','$(document).on(\'page:beforein\', \'.page[data-name="address_edit"]\', async function (e) {
\n  console.log(\'app address_edit ready\')
\n  var aid = e.detail.route.params.id
\n  //console.log(aid)
\n  let js = JSON.parse(localStorage.getItem(\'f04_user\'));
\n  let dt = js.data.address;  
\n  for(let i=0;i<dt.length;i++) {
\n    if(dt[i].id==aid) {
\n      document.querySelector(\'#ad_label\').value = dt[i].label || \'\';
\n      document.querySelector(\'#ad_name\').value = dt[i].name || \'\';
\n      document.querySelector(\'#ad_phone\').value = dt[i].phone || \'\';
\n      document.querySelector(\'#ad_address\').value = dt[i].address || \'\';
\n      document.querySelector(\'#ad_rt\').value = dt[i].rt || \'\';
\n      document.querySelector(\'#ad_rw\').value = dt[i].rw || \'\';
\n      document.querySelector(\'#ad_no\').value = dt[i].no || \'\';
\n      document.querySelector(\'#ad_postcode\').value = dt[i].postcode || \'\';
\n      document.querySelector(\'#ad_kel\').value = dt[i].kel || \'\';
\n      document.querySelector(\'#ad_kec\').value = dt[i].kec || \'\';
\n      document.querySelector(\'#ad_city\').value = dt[i].city || \'\';
\n      document.querySelector(\'#ad_gmap\').value = dt[i].gmap || \'\';
\n      document.querySelector(\'#ad_remark\').value = dt[i].remark || \'\';
\n      document.querySelector(\'#ad_id\').value = dt[i].id || \'\';
\n    }
\n  }
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="address_edit"]\', function(e) {
\n  $(document).off("click", "#address_edit_button").on("click", "#address_edit_button", function(e) {
\n    e.preventDefault();
\n    let user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n    const label = $(\'#ad_label\').val();
\n    const name = $(\'#ad_name\').val();
\n    const phone = $(\'#ad_phone\').val();
\n    const address = $(\'#ad_address\').val();
\n    const rt = $(\'#ad_rt\').val();
\n    const rw = $(\'#ad_rw\').val();
\n    const no = $(\'#ad_no\').val();
\n    const postcode = $(\'#ad_postcode\').val();
\n    const kel = $(\'#ad_kel\').val();
\n    const kec = $(\'#ad_kec\').val();
\n    const city = $(\'#ad_city\').val();
\n    const gmap = $(\'#ad_gmap\').val();
\n    const remark = $(\'#ad_remark\').val();
\n    const aid = $(\'#ad_id\').val();
\n    const token=user.sess_token;
\n    const uuid=user.uuid;
\n    let req = {
\n      uuid,token,label,name,phone,address,rt,rw,no,postcode,kel,kec,city,gmap,remark,aid
\n    }
\n    if (name && phone && address && no && gmap) {
\n      address_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Edit Address Errors");
\n    }
\n  });
\n})','js','0','2','1','1747067237');
INSERT INTO `cp4_scriptext` VALUES('14','app','intro','','js','0','2','1','1747865856');
INSERT INTO `cp4_scriptext` VALUES('15','app','home','$(document).on(\'page:beforein\', \'.page[data-name="home"]\', async function (e) {
\n  console.log(\'app home ready, get data\')
\n  let data_action = JSON.parse(localStorage.getItem(\'f05_action\'));
\n  if(data_action!= null) {
\n    //console.log(data_action);
\n  } else {
\n    action();
\n  }
\n  let data_bank = JSON.parse(localStorage.getItem(\'f05_bank\'));
\n  if(data_bank!= null) {
\n    //console.log(data_bank);
\n  } else {
\n    bank();
\n  }
\n  let data_company = JSON.parse(localStorage.getItem(\'f05_company\'));
\n  if(data_company!= null) {
\n    //console.log(data_company);
\n  } else {
\n    company();
\n  }
\n  let data_inventory = JSON.parse(localStorage.getItem(\'f05_inventory\'));
\n  if(data_inventory!= null) {
\n    //console.log(data_inventory);
\n  } else {
\n    inventory();
\n  }
\n  let data_journal = JSON.parse(localStorage.getItem(\'f05_journal\'));
\n  if(data_journal!= null) {
\n    //console.log(data_journal);
\n  } else {
\n    journal();
\n  }
\n  let data_person = JSON.parse(localStorage.getItem(\'f05_person\'));
\n  if(data_person!= null) {
\n    //console.log(data_person);
\n  } else {
\n    person();
\n  }
\n  let data_product = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  if(data_product!= null) {
\n    //console.log(data_product);
\n    
\n  } else {
\n    product();
\n  }
\n  let data_sales = JSON.parse(localStorage.getItem(\'f05_sales\'));
\n  if(data_sales!= null) {
\n    //console.log(data_sales);
\n  } else {
\n    sales();
\n  }
\n  let data_transaction = JSON.parse(localStorage.getItem(\'f05_transaction\'));
\n  if(data_transaction!= null) {
\n    //console.log(data_transaction);
\n  } else {
\n    transaction();
\n  }
\n  let num=2000;
\n  setTimeout(() => {
\n    app.preloader.hide();
\n    view_product_tab();
\n  }, num)  
\n});','js','0','2','1','1747877295');
INSERT INTO `cp4_scriptext` VALUES('16','app','c1','$(document).on(\'page:beforein\', \'.page[data-name="c1"]\', async function (e) {
\n  console.log(\'c1 ready\')
\n  var cId = e.detail.route.params.id
\n  //console.log(cId)
\n  let js = JSON.parse(localStorage.getItem(\'s23_data_item\'));
\n  let dt = js.c1[cId];  
\n  console.log(dt.data)
\n  let strTitle=dt.jenis;
\n  //console.log(strTitle)
\n  $$("#c1_title").html(strTitle);
\n
\n  let strHtml = `
\n    <div class="separator-large"></div>
\n    <div class="container">`;
\n  for(let a=0;a<dt.data.length;a++) {
\n  let el=dt.data[a];
\n    strHtml += `
\n    <div class="row">
\n      <div class="col-50">
\n        <div class="content-item radius-default bg-white">
\n          
\n          <a href="/item/`+cId+`/`+el.id+`/" data-c1="`+cId+`" data-id="`+el.id+`">
\n            
\n            <div class="text-desc">
\n              <p class="title-item">`+el.bobot+`kg</p>
\n              <p class="price-item"><sup>Rp</sup>`+el.price_idr_s+`<sup>Jt</sup></p>
\n              <p class="location-item">
\n                <i class="icon material-symbols-outlined">location_on</i>
\n                `+el.posisi+`
\n              </p>
\n            </div>
\n          </a>
\n        </div>
\n      </div>
\n      <div class="col-50">
\n        <div class="content-item radius-default bg-white">
\n          <a href="" data-transition="f7-dive">
\n            <!--<div class="favorite-symbol active-symbol">
\n              <ion-icon name="heart-outline" role="img" class="md hydrated"></ion-icon>
\n            </div>-->
\n          </a>
\n          <a href="/ads-details/">
\n            <img class="full-width radius-top-only" src="`+el.img+`" alt="`+el.title+`">
\n          </a>
\n        </div>
\n      </div>
\n    </div>`;
\n  }
\n  strHtml += `</div>`;
\n  $$("#c1_content").html(strHtml); 
\n  
\n});','js','1','2','1','1745454275');
INSERT INTO `cp4_scriptext` VALUES('17','app','item','$(document).on(\'page:beforein\', \'.page[data-name="item"]\', async function (e) {
\n  console.log(\'app item ready\')
\n  var iId = e.detail.route.params.id;
\n  var cId = e.detail.route.params.c1;
\n  console.log(iId+\'; \'+cId)
\n  
\n  //console.log(cId)
\n  let js = JSON.parse(localStorage.getItem(\'s23_data_item\'));
\n  let dt2 = js.item.data[iId];  
\n  console.log(dt2)
\n  //console.log(dt)
\n  //console.log(dt.data.length)
\n  let strTitle=dt2.kodeunik;
\n  //console.log(strTitle)
\n  $$("#item_title").html(strTitle);
\n  let strHtml = `
\n    <div class="separator-small"></div>
\n    `;
\n  strHtml +=`
\n<div class="container">
\n  <div class="swiper-container image-slider" id="it345wg">
\n    <div class="swiper-pagination"></div>
\n    <div class="swiper-wrapper" id="dynamic-img"> 
\n    <div class="swiper-slide">
\n      <img src="`+dt2.images[0].url+`" width="100%" style="height:auto;">
\n   </div>
\n    <div class="swiper-slide">
\n      <img src="`+dt2.images[1].url+`" width="100%" style="height:auto;">
\n   </div>
\n    <div class="swiper-slide">
\n      <img src="`+dt2.images[2].url+`" width="100%" style="height:auto;">
\n   </div>
\n    </div>
\n  </div>
\n</div>
\n    `;
\n    strHtml +=`
\n<div class="detail-title mt-2">
\n  <div class="container">
\n   <div class="tag-category">
\n      <span class="mr-2">`+dt2.jenis+`</span> <span>`+dt2.kategori+`</span>
\n   </div>
\n    <p class="price-item"><sup>Rp</sup>`+dt2.price_idr_s+` <sup>juta</sup></p>
\n
\n    <!-- separator -->
\n    <div class="separator-small"></div>
\n   <!-- end separator -->
\n
\n    <p class="title-item title-item-large">`+dt2.title+`</p>
\n    <!-- separator -->
\n
\n    <div class="separator-small"></div>
\n   <!-- end separator -->
\n
\n    <div class="short-info">
\n      <p class="text-small">Published : <span>12 April 2020</span></p>
\n      <p class="text-small">Viewed : <span>560</span></p>
\n   </div>
\n
\n    <!-- separator -->
\n    <div class="separator-small"></div>
\n   <!-- end separator -->
\n
\n    <div class="item-detail-action">
\n      <ul>
\n        <li><a href="#"><ion-icon name="heart-outline" role="img" class="md hydrated"></ion-icon></a></li>
\n        <li><a href="#"><ion-icon name="warning-outline" role="img" class="md hydrated"></ion-icon></a></li>
\n        <li><a href="#"><ion-icon name="share-social-outline" role="img" class="md hydrated"></ion-icon></a></li>
\n     </ul>
\n   </div>
\n
\n    <!-- divider -->
\n    <div class="divider-h"></div>
\n   <!-- end divider -->
\n
\n  </div>
\n</div>
\n    `;
\n    strHtml += `
\n      `;
\n  $$("#item_content").html(strHtml); 
\n  init_swiper(\'#it345wg\');
\n  
\n});','js','1','2','1','1745456599');
INSERT INTO `cp4_scriptext` VALUES('18','utils','login','function login(req) {
\n  app.preloader.show(\'multi\');
\n  localStorage.removeItem(\'f04_user\');
\n  localStorage.removeItem(\'f04_data\');
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'login\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'f04_user\', JSON.stringify({
\n          uuid: res.user.data.uuid,
\n          email: res.user.data.email,
\n          sess_token: res.user.data.token,
\n          data: res.user.data
\n        }))
\n        localStorage.setItem(\'f04_data\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.preloader.hide();
\n        app.views.main.router.navigate(\'/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Login Failed\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747099865');
INSERT INTO `cp4_scriptext` VALUES('19','utils','signup','function signup(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_user\')
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'signup\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'f04_user\', JSON.stringify({
\n          uuid: response.data.uuid,
\n          phone: response.data.phone,
\n          sess_token: response.data.token,
\n          user_name: response.data.fullname
\n        }))
\n        app.preloader.hide();
\n        app.views.main.router.navigate(\'/homepage/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'SignUp Failed\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746834937');
INSERT INTO `cp4_scriptext` VALUES('20','utils','password_forgot','function password_forgot(req) {
\n  return new Promise((resolve, reject) => {
\n    $.ajax({
\n      type: "post",
\n      data: req,
\n      url: base_url + \'password_forgot\',
\n      success: (response) => {
\n        resolve(response);
\n      }
\n    })
\n  })
\n}','js','0','2','2','1745374110');
INSERT INTO `cp4_scriptext` VALUES('21','utils','password_change','function password_change(req) {
\n  return new Promise((resolve, reject) => {
\n    $.ajax({
\n      type: "post",
\n      data: req,
\n      url: base_url + \'password_change\',
\n      success: (response) => {
\n        resolve(response);
\n      }
\n    })
\n  })
\n}','js','0','2','2','1745374086');
INSERT INTO `cp4_scriptext` VALUES('22','utils','account_edit','function account_edit(req) {
\n  app.preloader.show();
\n  //localStorage.removeItem(\'s23_data_user\')
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'account_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'f04_user\', JSON.stringify({
\n          uuid: res.data.uuid,
\n          phone: res.data.phone,
\n          email: res.data.email,
\n          first_name: res.data.firstname,
\n          last_name: res.data.lastname,
\n          full_name: res.data.fullname,
\n          sess_token: res.data.token,
\n          user_name: res.data.fullname
\n        }))
\n        app.preloader.hide();
\n        app.views.main.router.navigate(\'/account_edit/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit Account Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746834865');
INSERT INTO `cp4_scriptext` VALUES('23','utils','account_delete','function account_delete(req) {
\n  app.preloader.show();
\n  //localStorage.removeItem(\'s23_data_user\')
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'account_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.removeItem(\'f04_user\')
\n        app.preloader.hide();
\n        app.views.main.router.navigate(\'/signup/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Delete Account Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746834846');
INSERT INTO `cp4_scriptext` VALUES('24','utils','address_add','function address_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'address_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_user\', JSON.stringify({
\n          uuid: res.data.uuid,
\n          email: res.data.email,
\n          sess_token: res.data.token,
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/address/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add Address Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746834874');
INSERT INTO `cp4_scriptext` VALUES('25','utils','user_address_delete','function user_address_delete(req,elId) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'address_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n          app.preloader.hide();
\n          app.dialog.alert("Address deleted successfully", "Success");
\n          $("#"+elId).remove();
\n          localStorage.setItem(\'f04_user\', JSON.stringify({
\n            uuid: res.data.uuid,
\n            email: res.data.email,
\n            sess_token: res.data.token,
\n            data: res.data
\n          }))
\n      } else {
\n          app.preloader.hide();
\n          app.dialog.alert("Failed to delete address", "Error");
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746834949');
INSERT INTO `cp4_scriptext` VALUES('26','utils','address_edit','function address_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'address_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_user\', JSON.stringify({
\n          uuid: res.data.uuid,
\n          email: res.data.email,
\n          sess_token: res.data.token,
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/address/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add Address Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746834891');
INSERT INTO `cp4_scriptext` VALUES('27','utils','get_item','function get_item(req) {
\n  //console.log(req)
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'get_items_by_jenis\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'s23_data_item\', JSON.stringify({
\n          data: res.data,
\n          item: res.item,
\n          c1: res.c1
\n        }))
\n      } else {
\n        console.log(\'error get data\')
\n      }
\n    }
\n  })
\n}','js','1','2','2','1745456248');
INSERT INTO `cp4_scriptext` VALUES('28','utils','get_item_c1','function get_item_c1(req) {
\n  //console.log(req)
\n  localStorage.removeItem(\'s23_data_c1\')
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'get_c1\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'s23_data_c1\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        console.log(\'error get data\')
\n      }
\n    }
\n  })
\n}','js','1','2','2','1745290501');
INSERT INTO `cp4_scriptext` VALUES('29','app','logout','$$(document).on(\'page:init\', \'.page[data-name="home"]\', function(e) {
\n  $(document).off("click", "#logout").on("click", "#logout", function(e) {
\n    e.preventDefault();
\n    localStorage.removeItem(\'f04_user\');
\n    localStorage.removeItem(\'f04_data\');
\n    localStorage.removeItem(\'f04_action\');
\n    localStorage.removeItem(\'f04_bank\');
\n    localStorage.removeItem(\'f04_company\');
\n    localStorage.removeItem(\'f04_inventory\');
\n    localStorage.removeItem(\'f04_journal\');
\n    localStorage.removeItem(\'f04_person\');
\n    localStorage.removeItem(\'f04_product\');
\n    localStorage.removeItem(\'f04_sales\');
\n    localStorage.removeItem(\'f04_transaction\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n    window.location.reload()
\n  });
\n})','js','0','2','1','1747109202');
INSERT INTO `cp4_scriptext` VALUES('30','utils','action_add','function action_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_action\');  
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'action_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_action\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/action/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add Action Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747022185');
INSERT INTO `cp4_scriptext` VALUES('31','utils','action_edit','function action_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_action\'); 
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'action_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_action\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/action/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit Action Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747022194');
INSERT INTO `cp4_scriptext` VALUES('32','utils','action','function action() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_action\'); 
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'action\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_action\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Action Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747105053');
INSERT INTO `cp4_scriptext` VALUES('33','utils','transaction','function transaction() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_transaction\');
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'transaction\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_transaction\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Transaction Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747104906');
INSERT INTO `cp4_scriptext` VALUES('34','utils','transaction_edit','function transaction_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_transaction\'); 
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'transaction_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_transaction\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/transaction/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit transaction Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746848511');
INSERT INTO `cp4_scriptext` VALUES('35','utils','transaction_add','function transaction_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_transaction\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'transaction_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_transaction\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/transaction/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add transaction Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746848571');
INSERT INTO `cp4_scriptext` VALUES('36','utils','journal','function journal() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_journal\'); 
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'journal\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_journal\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Journal Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747104739');
INSERT INTO `cp4_scriptext` VALUES('37','utils','product_retur','function product_retur(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_product\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'product_retur\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_product\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/product/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Product Retur Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746965864');
INSERT INTO `cp4_scriptext` VALUES('38','utils','journal_edit','function journal_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_journal\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'journal_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_journal\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/journal/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit journal Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746848905');
INSERT INTO `cp4_scriptext` VALUES('39','utils','product_edit','function product_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_product\');  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'product_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_product\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/product/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit product Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747218662');
INSERT INTO `cp4_scriptext` VALUES('40','utils','product_add','function product_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_product\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'product_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_product\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/product/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add product Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746849047');
INSERT INTO `cp4_scriptext` VALUES('41','utils','product','function product() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_product\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'product\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_product\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List product Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747104795');
INSERT INTO `cp4_scriptext` VALUES('42','utils','inventory_add','function inventory_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_inventory\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'inventory_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_inventory\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/inventory/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add inventory Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746849267');
INSERT INTO `cp4_scriptext` VALUES('43','utils','inventory_edit','function inventory_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_inventory\');  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'inventory_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_inventory\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/inventory/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit inventory Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747017111');
INSERT INTO `cp4_scriptext` VALUES('44','utils','inventory','function inventory() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_inventory\');  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'inventory\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_inventory\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List inventory Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747104650');
INSERT INTO `cp4_scriptext` VALUES('45','utils','sales_add','function sales_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_sales\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'sales_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_sales\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/sales/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add sales Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746849466');
INSERT INTO `cp4_scriptext` VALUES('46','utils','sales_edit','function sales_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_sales\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'sales_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_sales\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/sales/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit sales Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746849510');
INSERT INTO `cp4_scriptext` VALUES('47','utils','sales','function sales() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_sales\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'sales\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_sales\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Sales Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747104867');
INSERT INTO `cp4_scriptext` VALUES('48','utils','product_buy','function product_buy(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_product\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'product_buy\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_product\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/product/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add product_trx Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746958663');
INSERT INTO `cp4_scriptext` VALUES('49','utils','product_trx_edit','function product_trx_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_product\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'product_trx_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_product\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/product/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit product_trx Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746849738');
INSERT INTO `cp4_scriptext` VALUES('50','app','product','$(document).on(\'page:init\', \'.page[data-name="product"]\', async function (e) {
\n  console.log(\'app product ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f04_product\'));
\n  let dt = js.data.by_brand;
\n  //console.log(dt)
\n  var strHtml = ``;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml += `<div class="block-title">`+dt[i].brand+`</div>`;
\n    strHtml += `<div class="list media-list  list-outline-ios list-strong-ios list-dividers-ios">
\n      <ul>`;
\n    for(let f=0;f<dt[i].items.length;f++) {
\n    strHtml +=`
\n<li>
\n  <a href="/product_trx/`+dt[i].items[f].id+`" class="item-link item-content">
\n    <div class="item-media"><img style="border-radius: 8px"
\n      src="`+dt[i].items[f].img+`" width="50" /> 
\n    </div>
\n    <div class="item-inner">
\n      <div class="item-title-row">
\n        <div class="item-title">`+dt[i].items[f].name+`</div>
\n        <div class="item-after">`+dt[i].items[f].qty+`</div>
\n      </div>
\n      <div class="item-subtitle">`+dt[i].items[f].item_code+`</div>
\n      <div class="item-text">
\n      `+dt[i].items[f].hpp+`      
\n      </div>
\n    </div>
\n  </a>
\n</li>    `;
\n    }
\n    strHtml +=`</ul>
\n    </div>`;
\n  }
\n   strHtml += ``;  
\n  //console.log(strHtml)
\n  $$("#product_content").html(strHtml);
\n})','js','0','2','1','1747268607');
INSERT INTO `cp4_scriptext` VALUES('51','app','product_trx','$(document).on(\'page:init\', \'.page[data-name="product_trx"]\', async function (e) {
\n  console.log(\'app product detail (trx) ready\')
\n  var i = e.detail.route.params.id;
\n  //console.log(i)
\n  //console.log(pid)
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f04_product\'));
\n  let dt = js.data.by_id[i];
\n  console.log(dt)
\n  var strHtml = `
\n<div class="blog-details">
\n  <div class="container">
\n    <div class="blog-details-header">
\n      <div class="content"> 
\n      <div class="blog-image">
\n        <img src="`+dt.img+`" alt="`+dt.name+`">
\n      </div>
\n      <h6>`+dt.name+`</h6>        
\n      </div>
\n    </div>
\n  </div>
\n</div>`;
\n
\n  strHtml +=`
\n<div class="item-details">
\n  <div class="container">
\n    <ul>  
\n    <li>Brand <span>`+dt.brand+`</span></li>
\n   <li>Code<span>`+dt.item_code+`</span></li>
\n    <li>Qty Last <span>`+dt.qty+`</span></li>
\n   <li>Buy Price<span>`+dt.hpp+`</span></li>
\n   <li>Amount<span>`+dt.amount+`</span></li>
\n </ul>
\n  </div>
\n</div>`;
\nstrHtml+=`
\n  <div class="container">
\n    <a href="/product_sell/`+dt.id+`/4" class="btn btn-xs btn-primary mt-2">Jual Tunai</a>
\n    <a href="/product_sell/`+dt.id+`/7" class="btn btn-xs btn-primary mt-2">Jual Kredit</a>
\n    <a href="/product_retur/`+dt.id+`/8" class="btn btn-xs btn-secondary mt-2">Retur Ke</a>
\n    <a href="/product_retur/`+dt.id+`/9" class="btn btn-xs btn-secondary mt-2">Retur Dari</a>
\n    <a href="/product_buy/`+dt.id+`" class="btn btn-xs btn-info mt-2">Beli</a>
\n    <a href="/product_edit/`+dt.id+`" class="btn btn-xs btn-info mt-2">Edit</a>
\n    <a href="/product_image/`+dt.id+`" class="btn btn-xs btn-danger mt-2">Image</a>
\n  </div>
\n`;
\n  strHtml +=`<div class="block-title">Transaction</div>
\n    <div class="data-table">
\n      <table>
\n        <thead>
\n          <tr>
\n            <th class="label-cell">Date</th>
\n            <th class="numeric-cell">In</th>
\n            <th class="numeric-cell">Out</th>
\n            <th class="numeric-cell">Balance</th>
\n          </tr>
\n        </thead>
\n        <tbody>`;
\n  for(let i=0;i<dt.trx.length;i++) {
\n    strHtml +=`<tr>
\n            <td class="label-cell">`+dt.trx[i].tgl+`</td>
\n            <td class="numeric-cell">`+dt.trx[i].item_in+`</td>
\n            <td class="numeric-cell">`+dt.trx[i].item_out+`</td>
\n            <td class="numeric-cell">`+dt.trx[i].balance+`</td>
\n          </tr>`;
\n  }
\n    strHtml +=`</tbody>
\n      </table>
\n    </div>`;
\n  //console.log(strHtml)
\n  $$("#product_trx_content").html(strHtml);
\n})','js','0','2','1','1747268709');
INSERT INTO `cp4_scriptext` VALUES('52','app','product_buy','$(document).on(\'page:beforein\', \'.page[data-name="product_buy"]\', async function (e) {
\n  console.log(\'app product_buy ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f04_data\'));
\n  let dt= js.data.result.product_byid.data[id];
\n  document.querySelector(\'#a4_id\').value = id || \'\';
\n  document.querySelector(\'#a4_name\').value = dt.name || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_buy"]\', function(e) {
\n  $(document).off("click", "#product_buy_button").on("click", "#product_buy_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#a4_id\').val();
\n    const cat = $(\'#a4_cat\').val();
\n    const inout = $(\'#a4_inout\').val();
\n    const due_days = $(\'#a4_due_days\').val();
\n    const action_at = $(\'#a4_action_at\').val();
\n    const from = $(\'#a4_from\').val();
\n    const invoice = $(\'#a4_invoice\').val();
\n    const descr = $(\'#a4_descr\').val();
\n    const qty = $(\'#a4_qty\').val();
\n    const price = $(\'#a4_price\').val();
\n
\n    let req = {
\n      id,cat,inout,due_days,action_at,from,invoice,descr,qty,price
\n    }
\n    if (id && cat && action_at && qty && price) {
\n      product_buy(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Buy Errors");
\n    }
\n  });
\n})','js','0','2','1','1746963641');
INSERT INTO `cp4_scriptext` VALUES('53','app','product_sell','$(document).on(\'page:beforein\', \'.page[data-name="product_sell"]\', async function (e) {
\n  console.log(\'app product_sell ready\')
\n  var id = e.detail.route.params.id;
\n  var cat = e.detail.route.params.c;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f04_data\'));
\n  let dt= js.data.result.product_byid.data[id];
\n  document.querySelector(\'#a5_id\').value = id || \'\';
\n  document.querySelector(\'#a5_cat\').value = cat || \'\';
\n  document.querySelector(\'#a5_name\').value = dt.name || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_sell"]\', function(e) {
\n  $(document).off("click", "#product_sell_button").on("click", "#product_sell_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#a5_id\').val();
\n    const cat = $(\'#a5_cat\').val();
\n    const inout = $(\'#a5_inout\').val();
\n    const due_days = $(\'#a5_due_days\').val();
\n    const action_at = $(\'#a5_action_at\').val();
\n    const buyer = $(\'#a5_buyer\').val();
\n    const invoice = $(\'#a5_invoice\').val();
\n    const descr = $(\'#a5_descr\').val();
\n    const qty = $(\'#a5_qty\').val();
\n    const price = $(\'#a5_price\').val();
\n
\n    let req = {
\n      id,cat,inout,due_days,action_at,buyer,invoice,descr,qty,price
\n    }
\n    if (id && cat && action_at && qty && price) {
\n      product_sell(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Sell Errors");
\n    }
\n  });
\n})','js','0','2','1','1746964625');
INSERT INTO `cp4_scriptext` VALUES('54','utils','product_sell','function product_sell(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_product\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'product_sell\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_product\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.views.main.router.navigate(\'/product/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Product Sell Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746964957');
INSERT INTO `cp4_scriptext` VALUES('55','app','product_retur','$(document).on(\'page:beforein\', \'.page[data-name="product_retur"]\', async function (e) {
\n  console.log(\'app product_retur ready\')
\n  var id = e.detail.route.params.id;
\n  var cat = e.detail.route.params.c;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f04_data\'));
\n  let dt= js.data.result.product_byid.data[id];
\n  document.querySelector(\'#a6_id\').value = id || \'\';
\n  document.querySelector(\'#a6_cat\').value = cat || \'\';
\n  document.querySelector(\'#a6_name\').value = dt.name || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_retur"]\', function(e) {
\n  $(document).off("click", "#product_retur_button").on("click", "#product_retur_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#a6_id\').val();
\n    const cat = $(\'#a6_cat\').val();
\n    const inout = $(\'#a6_inout\').val();
\n    const action_at = $(\'#a6_action_at\').val();
\n    const to_from = $(\'#a6_to_from\').val();
\n    const invoice = $(\'#a6_invoice\').val();
\n    const descr = $(\'#a6_descr\').val();
\n    const qty = $(\'#a6_qty\').val();
\n    const price = $(\'#a6_price\').val();
\n
\n    let req = {
\n      id,cat,inout,action_at,to_from,invoice,descr,qty,price
\n    }
\n    if (id && cat && action_at && qty && price) {
\n      product_retur(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Retur Errors");
\n    }
\n  });
\n})','js','0','2','1','1746967132');
INSERT INTO `cp4_scriptext` VALUES('56','app','product_edit','$(document).on(\'page:beforein\', \'.page[data-name="product_edit"]\', async function (e) {
\n  console.log(\'app product_edit ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f04_product\'));
\n  let dt= js.data.by_id[id];
\n  console.log(dt)
\n  document.querySelector(\'#a7_id\').value = id || \'\';
\n  document.querySelector(\'#a7_name\').value = dt.name || \'\';
\n  document.querySelector(\'#a7_brand\').value = dt.brand || \'\';
\n  document.querySelector(\'#a7_code\').value = dt.item_code || \'\';
\n  document.querySelector(\'#a7_price\').value = dt.price_per_unit || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_edit"]\', function(e) {
\n  $(document).off("click", "#product_edit_button").on("click", "#product_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#a7_id\').val();
\n    const name = $(\'#a7_name\').val();
\n    const brand = $(\'#a7_brand\').val();
\n    const code = $(\'#a7_code\').val();
\n    const price = $(\'#a7_price\').val();
\n
\n    let req = {
\n      id,name,code,brand,price
\n    }
\n    if (id && name && brand && price) {
\n      product_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1747217934');
INSERT INTO `cp4_scriptext` VALUES('57','app','product_image','$(document).on(\'page:beforein\', \'.page[data-name="product_image"]\', async function (e) {
\n  console.log(\'app product_image ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f04_data\'));
\n  let dt= js.data.result.product_byid.data[id];  
\n  document.querySelector(\'#a8_id\').value = id || \'\';
\n  //console.log(dt)
\n if (dt.img) {
\n   $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-image\', `url(\'${dt.img}\')`)
\n   $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-size\', \'contain\')
\n   $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-position\', \'center\')
\n    $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-repeat\', \'no-repeat\')
\n }  
\n});
\n
\n$(document).on(\'change\', \'input#fileuploadInput\', function (e) {
\n  const file = e.target.files[0]
\n  const reader = new FileReader()
\n  reader.onload = function (e) {
\n    document.querySelector(\'.custom-file-upload label\').style.backgroundImage = `url(\'${e.target.result}\')`
\n    document.querySelector(\'.custom-file-upload label\').style.backgroundSize = \'cover\'
\n  }
\n  reader.readAsDataURL(file)
\n})
\n
\n$(document).on(\'change\', \'input[name="product_image"]\', function (e) {
\n    const file = e.target.files[0];
\n    const reader = new FileReader();
\n    reader.onload = function (event) {
\n        console.log($(\'.custom-file-upload.profile\'));
\n        $(\'.custom-file-upload.profile\')
\n            .find(\'label\')
\n            .css(\'background-image\', `url(\'${event.target.result}\')`)
\n            .css(\'background-size\', \'cover\');
\n    };
\n    if (file) {
\n        reader.readAsDataURL(file);
\n    }
\n});
\n
\n$(document).on(\'click\', \'#save-profile-images\', async function () {
\n  var view = app.views.current
\n  const id = $(\'#a8_id\').val();
\n  const profile_image = $(\'input[name="product_image"]\').prop(\'files\')[0]
\n  let profileBase64 = null
\n  if (profile_image) {
\n    // Wrap the FileReader in a Promise to wait for it to complete
\n    profileBase64 = await new Promise((resolve, reject) => {
\n      const reader = new FileReader()
\n      reader.readAsDataURL(profile_image)
\n      reader.onload = () => resolve(reader.result)
\n      reader.onerror = () => reject(new Error(\'Failed to read image as base64\'))
\n    })
\n    console.log(profileBase64)
\n  }    
\n  if(profileBase64){
\n    let image=profileBase64;  
\n    let req = {
\n      id,image
\n    }
\n    console.log(req)  
\n    try {
\n     app.preloader.show()
\n      let promises = [];
\n      if (req) {
\n          promises.push(product_image(req))
\n     }
\n     const responses = await Promise.all(promises)
\n     app.preloader.hide()
\n    } catch (error) {
\n     app.preloader.hide()
\n      app.dialog.alert(res.message, \'Upload Image Error\');
\n    }     
\n  }       
\n});','js','0','2','1','1747004225');
INSERT INTO `cp4_scriptext` VALUES('58','utils','product_image','function product_image(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'product_image\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        //localStorage.removeItem(\'f04_user\')
\n        app.preloader.hide();
\n        //app.views.main.router.navigate(\'/signup/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Upload Image Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1746976085');
INSERT INTO `cp4_scriptext` VALUES('59','app','company','$(document).on(\'page:init\', \'.page[data-name="company"]\', async function (e) {
\n  console.log(\'app company ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f04_company\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  var strHtml = `
\n<div class="container mt-60">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n  <div class="search-list_company searchbar-found list media-list list-outline-ios list-strong-ios list-dividers-ios">
\n    <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n      <li>
\n      <a href="/company_edit/`+i+`">
\n          <div class="item-inner">
\n            <div class="item-title-row">
\n              <div class="item-title">`+dt[i].name+`</div>
\n              <div class="item-after">`+dt[i].initial+`</div>
\n            </div>
\n            <div class="item-subtitle">`+dt[i].city+`</div>
\n            <div class="item-text">`+dt[i].address+`</div>
\n          </div>
\n      </a>
\n      </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>
\n   `;  
\n  $$("#company_content").html(strHtml);
\n})','js','0','2','1','1747105958');
INSERT INTO `cp4_scriptext` VALUES('60','utils','company_edit','function company_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_company\');  
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'company_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_company\', JSON.stringify({
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/company/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Company Edit Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747106335');
INSERT INTO `cp4_scriptext` VALUES('61','app','company_edit','$(document).on(\'page:beforein\', \'.page[data-name="company_edit"]\', async function (e) {
\n  console.log(\'app company_edit ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f04_company\'));
\n  let dt= js.data[id];
\n  console.log(dt)
\n  document.querySelector(\'#c1_id\').value = dt.id || \'\';
\n  document.querySelector(\'#c1_name\').value = dt.name || \'\';
\n  document.querySelector(\'#c1_initial\').value = dt.initial || \'\';
\n  document.querySelector(\'#c1_nib\').value = dt.nib || \'\';
\n  document.querySelector(\'#c1_npwp\').value = dt.npwp|| \'\';
\n  document.querySelector(\'#c1_address\').value = dt.address || \'\';
\n  document.querySelector(\'#c1_city\').value = dt.city  || \'\';
\n  document.querySelector(\'#c1_postcode\').value = dt.postcode || \'\';
\n  let dt2=ar[\'relation\'];
\n  let sel1_relation =``;
\n  for (let i=8;i<11;i++) {
\n    if(i==dt.relation) {
\n      sel1_relation +=`<option selected value="`+i+`">`+dt2[i]+`</option>`;
\n    } else {
\n      sel1_relation +=`<option value="`+i+`">`+dt2[i]+`</option>`;
\n    }
\n  }
\n  $$("#c1_relation").html(sel1_relation );
\n  
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="company_edit"]\', function(e) {
\n  $(document).off("click", "#company_edit_button").on("click", "#company_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#c1_id\').val();
\n    const name = $(\'#c1_name\').val();
\n    const initial= $(\'#c1_initial\').val();
\n    const nib= $(\'#c1_nib\').val();
\n    const npwp= $(\'#c1_npwp\').val();
\n    const address= $(\'#c1_address\').val();
\n    const city= $(\'#c1_city\').val();
\n    const postcode= $(\'#c1_postcode\').val();
\n    const relation= $(\'#c1_relation\').val();
\n
\n    let req = {
\n      id,name,initial,nib,npwp,address,city,postcode,relation
\n    }
\n    if (id && name) {
\n      company_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Company Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1747175938');
INSERT INTO `cp4_scriptext` VALUES('62','utils','company_add','function company_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_company\');  
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'company_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_company\', JSON.stringify({
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/company/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Company Add Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747173127');
INSERT INTO `cp4_scriptext` VALUES('63','app','company_add','$$(document).on(\'page:init\', \'.page[data-name="company_add"]\', function(e) {
\n  $(document).off("click", "#company_add_button").on("click", "#company_add_button", function(e) {
\n    e.preventDefault();
\n    const name = $(\'#c2_name\').val();
\n    const initial= $(\'#c2_initial\').val();
\n    const nib= $(\'#c2_nib\').val();
\n    const npwp= $(\'#c2_npwp\').val();
\n    const address= $(\'#c2_address\').val();
\n    const city= $(\'#c2_city\').val();
\n    const postcode= $(\'#c2_postcode\').val();
\n    const relation= $(\'#c2_relation\').val();
\n
\n    let req = {
\n      name,initial,nib,npwp,address,city,postcode,relation
\n    }
\n    if (name) {
\n      company_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Company Add Errors");
\n    }
\n  });
\n})','js','0','2','1','1747172934');
INSERT INTO `cp4_scriptext` VALUES('64','app','inventory','$(document).on(\'page:init\', \'.page[data-name="inventory"]\', async function (e) {
\n  console.log(\'app inventory ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f04_data\'));
\n  let dt = js.data.result.inventory.data;
\n  console.log(dt)
\n  var strHtml = `
\n<div class="container mt-60">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n  <div class=" search-list_inventory searchbar-found list media-list list-outline-ios list-strong-ios list-dividers-ios">
\n    <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n      <li>
\n        <a href="/inventory_edit/`+i+`">
\n          <div class="item-inner">
\n            <div class="item-title-row">
\n              <div class="item-title">`+dt[i].name+`</div>
\n              <div class="item-after">`+dt[i].code+`</div>
\n            </div>
\n            <div class="item-subtitle">`+dt[i].qty+` `+dt[i].unit+`</div>
\n            <div class="item-text">Rp.`+dt[i].rp+`, depretiation: `+dt[i].will_age+` year</div>
\n          </div>
\n        </a>
\n      </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>
\n   `;  
\n  $$("#inventory_content").html(strHtml);
\n})','js','0','2','1','1747013367');
INSERT INTO `cp4_scriptext` VALUES('65','app','inventory_edit','$(document).on(\'page:beforein\', \'.page[data-name="inventory_edit"]\', async function (e) {
\n  console.log(\'app inventory_edit ready\')
\n  var i = e.detail.route.params.id;
\n  console.log(i);
\n  let js = JSON.parse(localStorage.getItem(\'f04_data\'));
\n  let dt= js.data.result.inventory.data[i];
\n  console.log(dt)
\n  document.querySelector(\'#i1_id\').value = dt.id || \'\';
\n  document.querySelector(\'#i1_name\').value = dt.name || \'\';
\n  document.querySelector(\'#i1_brand\').value = dt.brand || \'\';
\n  document.querySelector(\'#i1_unit\').value = dt.unit || \'\';
\n  document.querySelector(\'#i1_qty\').value = dt.qty|| \'\';
\n  document.querySelector(\'#i1_remark\').value = dt.remark || \'\';
\n  document.querySelector(\'#i1_will_age\').value = dt.will_age|| \'\';
\n  document.querySelector(\'#i1_price_per_unit\').value = dt.price_per_unit || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="inventory_edit"]\', function(e) {
\n  $(document).off("click", "#inventory_edit_button").on("click", "#inventory_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#i1_id\').val();
\n    const name = $(\'#i1_name\').val();
\n    const brand= $(\'#i1_brand\').val();
\n    const unit= $(\'#i1_unit\').val();
\n    const qty= $(\'#i1_qty\').val();
\n    const remark= $(\'#i1_remark\').val();
\n    const will_age= $(\'#i1_will_age\').val();
\n    const price_per_unit= $(\'#i1_price_per_unit\').val();
\n
\n    let req = {
\n      id,name,brand,unit,qty,remark,will_age,price_per_unit
\n    }
\n    if (id && price_per_unit) {
\n      inventory_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Inventory Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1747017316');
INSERT INTO `cp4_scriptext` VALUES('66','app','user_signout','$$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', function(e) {
\n  $(document).off("click", "#user_signout").on("click", "#user_signout", function(e) {
\n    e.preventDefault();
\n    localStorage.removeItem(\'f04_user\');
\n    localStorage.removeItem(\'f04_data\');
\n    localStorage.removeItem(\'f04_action\');
\n    localStorage.removeItem(\'f04_bank\');
\n    localStorage.removeItem(\'f04_company\');
\n    localStorage.removeItem(\'f04_inventory\');
\n    localStorage.removeItem(\'f04_journal\');
\n    localStorage.removeItem(\'f04_person\');
\n    localStorage.removeItem(\'f04_product\');
\n    localStorage.removeItem(\'f04_sales\');
\n    localStorage.removeItem(\'f04_transaction\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n    window.location.reload()
\n  });
\n})','js','0','2','1','1747108950');
INSERT INTO `cp4_scriptext` VALUES('67','utils','company','function company() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_company\');  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'company\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_company\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Company Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747104678');
INSERT INTO `cp4_scriptext` VALUES('68','utils','person','function person() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_person\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'person\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_person\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Person Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747104977');
INSERT INTO `cp4_scriptext` VALUES('69','utils','bank','function bank() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_bank\'); 
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'bank\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_bank\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Bank Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747105751');
INSERT INTO `cp4_scriptext` VALUES('70','app','bank','$(document).on(\'page:init\', \'.page[data-name="bank"]\', async function (e) {
\n  console.log(\'app bank ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f04_bank\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  strHtml =`
\n  <div class="list media-list list-outline-ios list-strong-ios list-dividers-ios">
\n    <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n        <li>
\n          <a href="/bank_edit/`+i+`" class="item-link item-content">
\n            <div class="item-inner">
\n              <div class="item-title-row">
\n                <div class="item-title">`+dt[i].bank_name+`</div>
\n                <div class="item-after">`+dt[i].account_number+`</div>
\n              </div>
\n              <div class="item-subtitle">`+dt[i].account_name+`</div>
\n              <div class="item-text">`+dt[i].balance+`</div>
\n            </div>
\n          </a>
\n        </li>`;
\n  }
\n    strHtml +=`
\n    </ul>
\n  </div>`;
\n  $$("#bank_content").html(strHtml);
\n})','js','0','2','1','1747115592');
INSERT INTO `cp4_scriptext` VALUES('71','app','bank_edit','$(document).on(\'page:beforein\', \'.page[data-name="bank_edit"]\', async function (e) {
\n  console.log(\'app bank_edit ready\')
\n  var i = e.detail.route.params.id;
\n  console.log(i);
\n  let js = JSON.parse(localStorage.getItem(\'f04_bank\'));
\n  let dt= js.data[i];
\n  console.log(dt)
\n  document.querySelector(\'#b2_id\').value = dt.id || \'\';
\n  document.querySelector(\'#b2_cif\').value = dt.cif || \'\';
\n  document.querySelector(\'#b2_account_name\').value = dt.account_name || \'\';
\n  document.querySelector(\'#b2_bank_name\').value = dt.bank_name || \'\';
\n  document.querySelector(\'#b2_swift_code\').value = dt.swift_code|| \'\';
\n  document.querySelector(\'#b2_account_number\').value = dt.account_number || \'\';
\n  document.querySelector(\'#b2_currency\').value = dt.currency|| \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="bank_edit"]\', function(e) {
\n  $(document).off("click", "#bank_edit_button").on("click", "#bank_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#b2_id\').val();
\n    const cif = $(\'#b2_name\').val();
\n    const account_name= $(\'#b2_account_name\').val();
\n    const bank_name= $(\'#b2_bank_name\').val();
\n    const swift_code= $(\'#b2_swift_code\').val();
\n    const account_number= $(\'#b2_account_number\').val();
\n    const currency= $(\'#b2_currency\').val();
\n
\n    let req = {
\n      id,cif,account_name,bank_name,swift_code,account_number,currency
\n    }
\n    if (id && account_number && bank_name) {
\n      bank_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Bank Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1747117107');
INSERT INTO `cp4_scriptext` VALUES('72','utils','bank_edit','function bank_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_bank\'); 
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'bank_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_bank\', JSON.stringify({
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/bank/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Bank Edit Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747117577');
INSERT INTO `cp4_scriptext` VALUES('73','utils','bank_add','function bank_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_bank\'); 
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'bank_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_bank\', JSON.stringify({
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/bank/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Bank Account Add Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747118435');
INSERT INTO `cp4_scriptext` VALUES('74','app','bank_add','$$(document).on(\'page:init\', \'.page[data-name="bank_add"]\', function(e) {
\n  $(document).off("click", "#bank_add_button").on("click", "#bank_add_button", function(e) {
\n    e.preventDefault();
\n    const cif = $(\'#b3_name\').val();
\n    const account_name= $(\'#b3_account_name\').val();
\n    const bank_name= $(\'#b3_bank_name\').val();
\n    const swift_code= $(\'#b3_swift_code\').val();
\n    const account_number= $(\'#b3_account_number\').val();
\n    const currency= $(\'#b3_currency\').val();
\n
\n    let req = {
\n      cif,account_name,bank_name,swift_code,account_number,currency
\n    }
\n    if (account_number && bank_name) {
\n      bank_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Bank Account Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1747118702');
INSERT INTO `cp4_scriptext` VALUES('75','app','person','$(document).on(\'page:init\', \'.page[data-name="person"]\', async function (e) {
\n  console.log(\'app person ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f04_person\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  strHtml =`
\n  <div class="list media-list list-outline-ios list-strong-ios list-dividers-ios">
\n    <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n        <li>
\n          <a href="/person_edit/`+i+`" class="item-link item-content">
\n            <div class="item-inner">
\n              <div class="item-title-row">
\n                <div class="item-title">`+dt[i].name+`</div>
\n                <div class="item-after">`+dt[i].initial+`</div>
\n              </div>
\n              <div class="item-subtitle">`+dt[i].phone+`</div>
\n              <div class="item-text">`+dt[i].address+`</div>
\n            </div>
\n          </a>
\n        </li>`;
\n  }
\n    strHtml +=`
\n    </ul>
\n  </div>`;
\n  $$("#person_content").html(strHtml);
\n})','js','0','2','1','1747120970');
INSERT INTO `cp4_scriptext` VALUES('76','app','person_edit','$(document).on(\'page:beforein\', \'.page[data-name="person_edit"]\', async function (e) {
\n  console.log(\'app person_edit ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f04_person\'));
\n  let dt= js.data[id];
\n  console.log(dt)
\n  document.querySelector(\'#p9_id\').value = dt.id || \'\';
\n  document.querySelector(\'#p9_name\').value = dt.name || \'\';
\n  document.querySelector(\'#p9_initial\').value = dt.initial || \'\';
\n  document.querySelector(\'#p9_nik\').value = dt.nik || \'\';
\n  document.querySelector(\'#p9_npwp\').value = dt.npwp|| \'\';
\n  document.querySelector(\'#p9_address\').value = dt.address || \'\';
\n  document.querySelector(\'#p9_city\').value = dt.city  || \'\';
\n  document.querySelector(\'#p9_postcode\').value = dt.postcode || \'\';
\n  document.querySelector(\'#p9_email\').value = dt.email || \'\';
\n  document.querySelector(\'#p9_phone\').value = dt.phone || \'\';
\n  //document.querySelector(\'#p9_company_id\').value = dt.company_id || \'\';
\n  let js2 = JSON.parse(localStorage.getItem(\'f04_company\'));
\n  let dt2=js2.data;
\n  let sel9_company =``;
\n  for (let i=0;i<dt2.length;i++) {
\n    if(dt2[i].id==dt.id) {
\n      sel9_company +=`<option selected value="`+dt2[i].id+`">`+dt2[i].name+`</option>`;
\n    } else {
\n      sel9_company +=`<option value="`+dt2[i].id+`">`+dt2[i].name+`</option>`;
\n    }
\n  }
\n  $$("#p9_company_id").html(sel9_company);
\n
\n
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="person_edit"]\', function(e) {
\n  $(document).off("click", "#person_edit_button").on("click", "#person_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#p9_id\').val();
\n    const name = $(\'#p9_name\').val();
\n    const initial= $(\'#p9_initial\').val();
\n    const nik= $(\'#p9_nib\').val();
\n    const npwp= $(\'#p9_npwp\').val();
\n    const address= $(\'#p9_address\').val();
\n    const city= $(\'#p9_city\').val();
\n    const postcode= $(\'#p9_postcode\').val();
\n    const email = $(\'#p9_email\').val();
\n    const phone = $(\'#p9_phone\').val();
\n    const company_id = $(\'#p9_company_id\').val();
\n
\n    let req = {
\n      id,name,initial,nik,npwp,address,city,postcode,email,phone,company_id
\n    }
\n    if (id && name) {
\n      person_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Person Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1747134570');
INSERT INTO `cp4_scriptext` VALUES('77','utils','person_edit','function person_edit(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_person\');  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'person_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_person\', JSON.stringify({
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/person/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Person Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747122696');
INSERT INTO `cp4_scriptext` VALUES('78','app','person_add','$(document).on(\'page:beforein\', \'.page[data-name="person_add"]\', async function (e) {
\n  console.log(\'app person_add ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f04_company\'));
\n  let dt=js.data;
\n  let sel_company =`<option value="0"></option>`;
\n  for (let i=0;i<dt.length;i++) {
\n    sel_company +=`<option value="`+dt[i].id+`">`+dt[i].name+`</option>`;
\n  }
\n  $$("#p8_company_id").html(sel_company);
\n  let dt2=ar[\'relation\'];
\n  let sel2 =``;
\n  for (let i=2;i<11;i++) {
\n    if(dt2[i]) {
\n      sel2 +=`
\n    <li>
\n     <label class="item-checkbox item-checkbox-icon-start item-content">
\n      <input type="checkbox" name="p8_relation" value="`+i+`" />
\n       <i class="icon icon-checkbox"></i>
\n        <div class="item-inner">
\n          <div class="item-title">`+dt2[i]+`</div>
\n        </div>
\n      </label>
\n     </li>`;
\n    }
\n  }
\n  $$("#relation").html(sel2);
\n  
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="person_add"]\', function(e) {
\n  $(document).off("click", "#person_add_button").on("click", "#person_add_button", function(e) {
\n    e.preventDefault();
\n    const name = $(\'#p8_name\').val();
\n    const initial= $(\'#p8_initial\').val();
\n    const nik= $(\'#p8_nik\').val();
\n    const npwp= $(\'#p8_npwp\').val();
\n    const address= $(\'#p8_address\').val();
\n    const city= $(\'#p8_city\').val();
\n    const postcode= $(\'#p8_postcode\').val();
\n    const email = $(\'#p8_email\').val();
\n    const phone = $(\'#p8_phone\').val();
\n    const company_id = $(\'#p8_company_id\').val();
\n    let relations= [];
\n    $(\'input[type="checkbox"]:checked\').each(function() {
\n      relations.push($(this).val());
\n    });
\n    console.log(relations)
\n    let req = {
\n      name,initial,nik,npwp,address,city,postcode,email,phone,company_id,relations
\n    }
\n    if (name) {
\n      person_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Person Add Errors");
\n    }
\n  });
\n})','js','0','2','1','1747205862');
INSERT INTO `cp4_scriptext` VALUES('79','utils','person_add','function person_add(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f04_person\');  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'person_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f04_person\', JSON.stringify({
\n          data: res.data
\n        }))
\n        app.views.main.router.navigate(\'/person/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Person Add Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747205042');
INSERT INTO `cp4_scriptext` VALUES('80','app','product_home_tab','','js','0','2','1','1747271303');
INSERT INTO `cp4_scriptext` VALUES('81','utils','view_product_tab','function view_product_tab() {
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f04_product\'));
\n  if(js) {
\n  //console.log(js)
\n  let dt = js.data.by_brand;
\n  //console.log(dt)
\n  var strHtml = ``;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml += `<div class="block-title">`+dt[i].brand+`</div>`;
\n    strHtml += ``;
\n    for(let f=0;f<dt[i].items.length;f++) {
\n    strHtml +=`
\n<div class="promo-banner">
\n  <div class="container">
\n    <a href="/product_trx/`+dt[i].items[f].id+`">
\n      <div class="content-box">
\n        <div class="content color-white content-left">
\n          <h5 class="title-item color-white">`+dt[i].items[f].name+`</h5>
\n          <p class="text-small">`+dt[i].items[f].hpp+`</p>
\n        </div>
\n        <div class="content content-right">
\n          <div class="button button-icon-large">
\n            <ion-icon name="arrow-forward-outline" role="img" class="md hydrated">
\n            </ion-icon>
\n          </div>
\n        </div>
\n      </div>
\n    </a>
\n  </div>
\n</div>`;
\n    }
\n    strHtml +=``;
\n  }
\n   strHtml += ``;  
\n  //console.log(strHtml)
\n  $$("#product_content_tab").html(strHtml); 
\n  }
\n}','js','0','2','2','1747274212');


CREATE TABLE `cp4_scriptext_old` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modul` varchar(99) DEFAULT NULL,
  `name` varchar(99) DEFAULT NULL,
  `body` text DEFAULT NULL,
  `is` varchar(10) DEFAULT '0',
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `level` tinyint(4) NOT NULL DEFAULT 0,
  `parent` int(11) NOT NULL DEFAULT 0,
  `update_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `folder_name` (`modul`(20),`name`),
  KEY `id_folder_slug` (`id`,`modul`(20)),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp4_scriptext_old` VALUES('1','app','app','// Dom7
\nvar $$ = Dom7;
\n// Theme
\nvar theme = \'auto\';
\nif (document.location.search.indexOf(\'theme=\') >= 0) {
\n  theme = document.location.search.split(\'theme=\')[1].split(\'&\')[0];
\n}
\n// Init App
\nvar app = new Framework7({
\n  id: \'com.app.myfin04\',
\n  root: \'#app\',
\n  theme: \'ios\',
\n  data: function() {
\n    return {
\n      user: {
\n        firstName: \'John\',
\n        lastName: \'Doe\',
\n      },
\n    };
\n  },
\n  methods: {
\n    helloWorld: function() {
\n      app.dialog.alert(\'Hello World!\');
\n    },
\n  },
\n  routes: routes,
\n  popup: {
\n    closeOnEscape: true,
\n  },
\n  sheet: {
\n    closeOnEscape: true,
\n  },
\n  popover: {
\n    closeOnEscape: true,
\n  },
\n  actions: {
\n    closeOnEscape: true,
\n  },
\n  smartSelect: {
\n    pageTitle: \'Select Option\',
\n    openIn: \'popup\',
\n  }
\n});
\n
\n//var introEl = $(\'.page-introduction\')[0]
\n
\nlet user_data_var = JSON.parse(localStorage.getItem(\'f04_user\'));
\nif (user_data_var != null) {
\n  //this.views.main.router.navigate(\'/home/\')
\n  app.views.main.router.navigate(\'/\');
\n  //introEl.style.display = \'visible\'
\n
\n} else {
\n  //$(\'.page-introduction\').show();
\n  //introEl.style.display = \'none\'
\n  //this.views.main.router.navigate(\'/intro/\')
\n  app.views.main.router.navigate(\'/intro/\');  
\n}
\n
\n
\nlet item_data = JSON.parse(localStorage.getItem(\'f04_data\'));
\nif (item_data != null) {
\n} else {
\n  var page = 1;
\n  var limit = 10;
\n  let req = {
\n    page,limit
\n  }
\n  if(req) {
\n    //get_item(req);
\n  }
\n}
\n//console.log(item_data)
\n//console.log(user_data_var)
\n
\n','js','0','1','0','1746835276');
INSERT INTO `cp4_scriptext_old` VALUES('2','utils','utils','let base_url = "https://nibrasfincp.azkapersada.com/api/v2/";
\n
\nfunction checkConnection(url) {}
\n
\nfunction timeOut(num = 30000) {
\n  setTimeout(() => {
\n    app.preloader.hide();
\n    app.dialog.alert(\'Operation timed out...\', \'Time Out\');
\n  }, num)
\n}
\n
\nfunction promiseTimeout(ms, promise) {
\n  // Create a promise that rejects in <ms> milliseconds
\n  let timeout = new Promise((resolve, reject) => {
\n    let id = setTimeout(() => {
\n      clearTimeout(id);
\n      reject(\'Operation timed out in \' + (ms / 1000) + \'s\')
\n    }, ms)
\n  })
\n  // Returns a race between our timeout and the passed in promise
\n  return Promise.race([
\n    promise,
\n    timeout
\n  ])
\n}
\n
\nString.prototype.replaceAt = function(index, char) {
\n  return this.substr(0, index - 1) + char + this.substr(index + char.length);
\n}
\n
\nfunction copyToClipboard(element) {
\n  var $temp = $("<input>");
\n  $("body").append($temp);
\n  $temp.val($(element).text()).select();
\n  document.execCommand("copy");
\n  $temp.remove();
\n}
\n
\nfunction init_swiper(Id){      
\nvar swiper1 = app.swiper.create(Id, {	
\n  pagination: {
\n    el: \'.swiper-pagination\',
\n    type: \'bullets\',
\n  },
\n    speed: 400,
\n    spaceBetween: 10,
\n    slidesPerView: 1,
\n    autoplay: { delay: 4000, disableOnInteraction:false }
\n  });
\n}','js','0','1','0','1746834282');
INSERT INTO `cp4_scriptext_old` VALUES('3','app','signout','$$(document).on(\'page:init\', \'.page[data-name="account"]\', function(e) {
\n  $(document).off("click", "#signout").on("click", "#signout", function(e) {
\n  console.log(\'app signout ready\')
\n    e.preventDefault();
\n    localStorage.removeItem(\'f01_user\')
\n    localStorage.removeItem(\'f01_data\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n    window.location.reload()
\n  });
\n})','js','0','2','1','1746835126');

INSERT INTO `cp4_scriptext_old` VALUES('5','app','password_forgot','$$(document).on(\'page:init\', \'.page[data-name="password_forgot"]\', function(e) {
\n  $(document).off("click", "#password_forgot_button").on("click", "#password_forgot_button", function(e) {
\n  console.log(\'app password_forgot ready\')
\n    e.preventDefault();
\n    var email = $("#emailForgot").val();
\n    let req = {
\n      email
\n    }
\n    if (email) {
\n      password_forgot(req);
\n    } else {
\n      app.dialog.alert("Please enter your email", "Forgot Password Errors");
\n    }
\n  });
\n})','js','0','2','1','1746931155');

INSERT INTO `cp4_scriptext_old` VALUES('7','utils','login','function login(req) {
\n  app.preloader.show(\'multi\');
\n  localStorage.removeItem(\'f04_user\');
\n  localStorage.removeItem(\'f04_data\');
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'login\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'f04_user\', JSON.stringify({
\n          uuid: res.user.data.uuid,
\n          email: res.user.data.email,
\n          sess_token: res.user.data.token,
\n          data: res.user.data
\n        }))
\n        localStorage.setItem(\'f04_data\', JSON.stringify({
\n          data: res.results
\n        }))
\n        app.preloader.hide();
\n        app.views.main.router.navigate(\'/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(response.message, \'Login Failed\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747051056');
INSERT INTO `cp4_scriptext_old` VALUES('8','utils','password_forgot','function password_forgot(req) {
\n  return new Promise((resolve, reject) => {
\n    $.ajax({
\n      type: "post",
\n      data: req,
\n      url: base_url + \'password_forgot\',
\n      success: (response) => {
\n        resolve(response);
\n      }
\n    })
\n  })
\n}','js','0','2','2','1747049170');
INSERT INTO `cp4_scriptext_old` VALUES('9','utils','signup','function signup(req) {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f01_user\')
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'signup\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'f01_user\', JSON.stringify({
\n          uuid: response.data.uuid,
\n          phone: response.data.phone,
\n          sess_token: response.data.token,
\n          user_name: response.data.fullname
\n        }))
\n        app.preloader.hide();
\n        app.views.main.router.navigate(\'/homepage/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'SignUp Failed\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747049204');
INSERT INTO `cp4_scriptext_old` VALUES('10','app','logout','$(\'#logout\').click(function(e) {
\n  localStorage.removeItem(\'f04_user\');
\n  localStorage.removeItem(\'f04_data\');
\n  app.views.main.router.navigate(\'/intro/\');  
\n  window.location.reload()
\n})','js','0','2','1','1747051405');
INSERT INTO `cp4_scriptext_old` VALUES('11','app','account_edit','$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', async function (e) {
\n  console.log(\'app account_edit ready\')
\n  var view = app.views.current
\n
\n  let user = JSON.parse(localStorage.getItem(\'f04_user\'));
\n  if (!user) {
\n      app.views.main.router.navigate(\'/signin/\');
\n      return
\n  }
\n
\n  // Example of how to fill in the form fields with the provided data
\n  document.querySelector(\'input[name="token_3"]\').value = user.sess_token || \'\';
\n  document.querySelector(\'input[name="uuid_3"]\').value = user.uuid || \'\';
\n  document.querySelector(\'input[name="email_3"]\').value = user.data.email || \'\';
\n  document.querySelector(\'input[name="first_name_3"]\').value = user.data.firstname || \'\';
\n  document.querySelector(\'input[name="last_name_3"]\').value = user.data.lastname || \'\';
\n  document.querySelector(\'input[name="phone_3"]\').value = user.data.phone || \'\';
\n})
\n
\n$$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', function(e) {
\n  $(document).off("click", "#account_edit_button").on("click", "#account_edit_button", function(e) {
\n    e.preventDefault();
\n
\n    const token=user.sess_token;
\n    const firstname = $(\'input[name="first_name_3"]\').val().trim();
\n    const lastname = $(\'input[name="last_name_3"]\').val().trim();
\n    const phone = $(\'input[name="phone_3"]\').val().trim();
\n    const uuid = $(\'input[name="uuid_3"]\').val().trim();
\n    let req = {
\n      uuid,
\n      token,
\n      firstname,
\n      lastname,
\n      phone
\n    };
\n    if (phone && firstname) {
\n      app.preloader.show();
\n      promiseTimeout(30000, account_edit(req))
\n        .then(res => {
\n          if (res.status) {
\n              app.preloader.hide();
\n              app.dialog.alert(res.message, "Account Updated", () => {
\n              app.views.main.router.navigate(\'/account_edit/\');
\n            });
\n          } else {
\n            app.preloader.hide();
\n            app.dialog.alert(res.message, "Edit Account Errors")
\n          }
\n        }).catch(err => {
\n          //app.preloader.hide();
\n          //app.dialog.alert(err, "Timed Out");
\n          app.views.main.router.navigate(\'/account_edit/\');
\n          app.dialog.alert("Account Updated", "Edit Account");
\n        });
\n    } else {
\n      app.dialog.alert("All fields are required", "Edit Account Errors");
\n    }
\n  });
\n});','js','0','2','1','1747053831');


CREATE TABLE `cp5_filecss` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modul` varchar(20) DEFAULT NULL,
  `slug` varchar(99) DEFAULT NULL,
  `name` varchar(99) DEFAULT NULL,
  `param` varchar(99) DEFAULT NULL,
  `method` varchar(99) NOT NULL DEFAULT 'POST',
  `folder` varchar(20) DEFAULT NULL,
  `php` text DEFAULT NULL,
  `body` text DEFAULT NULL,
  `remark` varchar(150) DEFAULT NULL,
  `st` tinyint(4) NOT NULL,
  `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=api,2=non api',
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `php_tes` tinyint(4) NOT NULL DEFAULT 0,
  `php_update_at` int(11) NOT NULL DEFAULT 0,
  `php_test_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `folder_slug` (`folder`,`slug`),
  KEY `id_folder_slug` (`id`,`folder`,`slug`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp5_filecss` VALUES('1','','framework7-bundle','','','POST','fin5/css/','','','','0','1','0','0','1747447175','0');
INSERT INTO `cp5_filecss` VALUES('2','','style','','','POST','fin5/css/','','','','0','1','0','0','1747298776','0');
INSERT INTO `cp5_filecss` VALUES('3','','custom','item','op=job','GET','fin5/css/','','','','0','0','0','0','1743983414','0');
INSERT INTO `cp5_filecss` VALUES('4','','framework7-icons','','','POST','fin5/css/','','','','0','1','0','0','1747447228','0');
INSERT INTO `cp5_filecss` VALUES('5','','material-icon','','','POST','fin5/css/','','','','0','1','0','0','1747447253','0');
INSERT INTO `cp5_filecss` VALUES('6','','margin','','','POST','fin5/css/','','','','0','1','0','0','1747455404','0');


CREATE TABLE `cp5_filehtml` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modul` varchar(20) DEFAULT NULL,
  `slug` varchar(99) DEFAULT NULL,
  `name` varchar(99) DEFAULT NULL,
  `param` varchar(99) DEFAULT NULL,
  `method` varchar(99) NOT NULL DEFAULT 'POST',
  `folder` varchar(20) DEFAULT NULL,
  `php` text DEFAULT NULL,
  `body` text DEFAULT NULL,
  `remark` varchar(150) DEFAULT NULL,
  `st` tinyint(4) NOT NULL,
  `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=api,2=non api',
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `php_tes` tinyint(4) NOT NULL DEFAULT 0,
  `php_update_at` int(11) NOT NULL DEFAULT 0,
  `php_test_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `folder_slug` (`folder`,`slug`),
  KEY `id_folder_slug` (`id`,`folder`,`slug`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp5_filehtml` VALUES('1','post','index','item','op=job','GET','fin5/','','','','0','0','0','0','1743694817','0');
INSERT INTO `cp5_filehtml` VALUES('2','','home','','','POST','fin5/pages/','','','','0','1','0','0','1747625326','0');


CREATE TABLE `cp5_filejs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modul` varchar(20) DEFAULT NULL,
  `slug` varchar(99) DEFAULT NULL,
  `name` varchar(99) DEFAULT NULL,
  `param` varchar(99) DEFAULT NULL,
  `method` varchar(99) NOT NULL DEFAULT 'POST',
  `folder` varchar(20) DEFAULT NULL,
  `php` text DEFAULT NULL,
  `body` text DEFAULT NULL,
  `remark` varchar(150) DEFAULT NULL,
  `st` tinyint(4) NOT NULL,
  `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=api,2=non api',
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `php_tes` tinyint(4) NOT NULL DEFAULT 0,
  `php_update_at` int(11) NOT NULL DEFAULT 0,
  `php_test_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `folder_slug` (`folder`,`slug`),
  KEY `id_folder_slug` (`id`,`folder`,`slug`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp5_filejs` VALUES('1','','app','item','op=job','GET','fin5/js/','','','','0','0','0','0','1743896515','0');
INSERT INTO `cp5_filejs` VALUES('2','','routes','','','POST','fin5/js/','','','','0','0','0','0','1743695863','0');
INSERT INTO `cp5_filejs` VALUES('3','','utils','','','POST','fin5/js/','','','','0','0','0','0','1743896511','0');
INSERT INTO `cp5_filejs` VALUES('4','','yui.app','','','POST','fin5/js/','','','','0','1','0','0','1747349174','0');
INSERT INTO `cp5_filejs` VALUES('5','','yui2','','','POST','fin5/js/','','','','0','1','0','0','1747374462','0');
INSERT INTO `cp5_filejs` VALUES('6','','store','','','POST','fin5/js/','','','','0','1','0','0','1747620672','0');
INSERT INTO `cp5_filejs` VALUES('7','','mixitup.min','','','POST','fin5/js/','','','','0','1','0','0','1748301251','0');


CREATE TABLE `cp5_html_page` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `path` varchar(44) DEFAULT NULL,
  `path_right` varchar(44) DEFAULT NULL,
  `name` varchar(44) DEFAULT NULL,
  `title` varchar(44) DEFAULT NULL,
  `title_right` varchar(44) DEFAULT NULL,
  `page_cat` varchar(20) DEFAULT NULL,
  `custom` text DEFAULT NULL,
  `menu` text DEFAULT NULL,
  `bottom` text DEFAULT NULL,
  `body` text DEFAULT NULL,
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `content_id` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=yes,0=no',
  `level` tinyint(4) NOT NULL DEFAULT 0,
  `page_type` tinyint(4) NOT NULL COMMENT '1=with_menu,2=no_menu',
  `view_title` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=yes,0=no',
  `view_navbar` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=yes,0=no',
  `view_left_panel` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=yes,0=no',
  `searchbar` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=yes,0=no',
  `view_back` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=yes,0=no',
  `view_tabber` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=yes,0=no',
  `view_toolbar` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=yes,0=no',
  `url_type` varchar(20) DEFAULT NULL COMMENT 'url,componentUrl',
  `icon_right` varchar(20) DEFAULT NULL,
  `icon` varchar(99) DEFAULT NULL,
  `parent` int(11) NOT NULL DEFAULT 0,
  `update_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `path` (`path`),
  KEY `id_folder_slug` (`id`,`path`(20)),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp5_html_page` VALUES('1','about_us/','','about_us','About Us','','more','','','','<template>\n  <div class="page page-about_us" data-name="about_us">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">About Us</div>\n        <div class="title-large">\n          <div class="title-large-text">About Us</div>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="about_us_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','0','1','0','1','componentUrl','','','5','1747964579');
INSERT INTO `cp5_html_page` VALUES('2','profile','','profile','Profile','','account','<div class="settings-header">\n  <div class="settings-image">\n    <img src="https://yui.xioyuna.com/template/img/avatars/1.jpg" alt="">\n    <a href="#" class="link edit-profile-image">\n      <i class="icon f7-icons">pencil</i>\n    </a>\n  </div>\n  <div class="settings-name">Noah Campbell</div>\n  <div class="settings-email">ncampbell@envato.com</div>\n</div>','','','<div class="page page-profile" data-name="profile">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="right">\n        <a href="#" class="link icon-only switch-theme">\n          <i class="icon f7-icons">moon_stars</i>\n        </a>\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <div class="settings-header">\n      <div class="settings-image">\n        <img src="https://yui.xioyuna.com/template/img/avatars/1.jpg" alt="">\n        <a href="#" class="link edit-profile-image">\n          <i class="icon f7-icons">pencil</i>\n        </a>\n      </div>\n      <div class="settings-name">Noah Campbell</div>\n      <div class="settings-email">ncampbell@envato.com</div>\n    </div>\n  </div>\n</div>','0','0','1','1','0','1','0','0','0','0','1','url','','','0','1747698634');
INSERT INTO `cp5_html_page` VALUES('3','settings/','','settings','Settings','','more','<div class="settings-header">\n  <div class="settings-image">\n    <img src="https://yui.xioyuna.com/template/img/avatars/1.jpg" alt="">\n    <a href="#" class="link edit-profile-image">\n      <i class="icon f7-icons">pencil</i>\n    </a>\n  </div>\n  <div class="settings-name">Noah Campbell</div>\n  <div class="settings-email">ncampbell@envato.com</div>\n</div>\n<div class="list links-list colored-icons-list settings-list list-outline list-dividers full-width">\n  <ul>\n    <li>\n      <a href="#">\n        <div class="colored-icon blue">\n          <i class="icon f7-icons">globe</i>\n        </div>Language\n        <div class="item-after">English</div>\n      </a>\n    </li>\n    <li class="item-content">\n      <div class="item-inner">\n        <div class="colored-icon red">\n          <i class="icon f7-icons">bell_fill</i>\n        </div>\n        <div class="item-title">Notifications</div>\n        <div class="item-after">\n          <label class="toggle toggle-init color-green">\n            <input type="checkbox" checked="">\n            <span class="toggle-icon">\n            </span>\n          </label>\n        </div>\n      </div>\n    </li>\n    <li class="item-content">\n      <div class="item-inner">\n        <div class="colored-icon orange">\n          <i class="icon f7-icons">location_fill</i>\n        </div>\n        <div class="item-title">Location</div>\n        <div class="item-after">\n          <label class="toggle toggle-init color-green">\n            <input type="checkbox" checked="">\n            <span class="toggle-icon">\n            </span>\n          </label>\n        </div>\n      </div>\n    </li>\n    <li class="item-content">\n      <div class="item-inner">\n        <div class="colored-icon blue">\n          <i class="icon f7-icons">hand_raised_fill</i>\n        </div>\n        <div class="item-title">Private Mode</div>\n        <div class="item-after">\n          <label class="toggle toggle-init color-green">\n            <input type="checkbox">\n            <span class="toggle-icon">\n            </span>\n          </label>\n        </div>\n      </div>\n    </li>\n    <li class="item-content">\n      <div class="item-inner">\n        <div class="colored-icon pink">\n          <i class="icon f7-icons">speaker_2_fill</i>\n        </div>\n        <div class="item-title">Sounds</div>\n        <div class="item-after">\n          <label class="toggle toggle-init color-green">\n            <input type="checkbox" checked="">\n            <span class="toggle-icon">\n            </span>\n          </label>\n        </div>\n      </div>\n    </li>\n    <li>\n      <a href="#">\n        <div class="colored-icon blue">\n          <i class="icon f7-icons">shield_lefthalf_fill</i>\n        </div>Privacy & Security</a>\n    </li>\n    <li>\n      <a href="#">\n        <div class="colored-icon orange">\n          <i class="icon f7-icons">arrow_2_circlepath</i>\n        </div>Updates\n        <div class="item-after">Automatic</div>\n      </a>\n    </li>\n    <li>\n      <a href="#">\n        <div class="colored-icon gray">\n          <i class="icon f7-icons">gear</i>\n        </div>Version\n        <div class="item-after">v2.3.7</div>\n      </a>\n    </li>\n    <li>\n      <a href="#">\n        <div class="colored-icon green">\n          <i class="icon f7-icons">doc_text_fill</i>\n        </div>Terms Of Service</a>\n    </li>\n    <li>\n      <a href="#">\n        <div class="colored-icon purple">\n          <i class="icon f7-icons">star_fill</i>\n        </div>Rate The App</a>\n    </li>\n  </ul>\n</div>','<div class="toolbar tabbar tabbar-labels toolbar-bottom elevation-6 bg-white">
\n<div class="toolbar-inner">
\n    <a href="/home/" data-transition="f7-cover-v" class="link tab-link-active">
\n      <i class="icon material-icons">home</i>
\n      <span class="tabbar-label">Home</span>
\n    </a>
\n    <a href="/action/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">folder</i>
\n      <span class="tabbar-label">Action</span>
\n    </a>
\n    <a href="/account/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">person</i>
\n      <span class="tabbar-label">Account</span>
\n    </a>
\n    <a href="/more/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">more_horiz</i>
\n      <span class="tabbar-label">More</span>
\n    </a>
\n  </div>
\n</div>','','<div class="page page-settings" data-name="settings">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Settings</div>\n      <div class="title-large">\n        <div class="title-large-text">Settings</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <div class="settings-header">\n      <div class="settings-image">\n        <img src="https://yui.xioyuna.com/template/img/avatars/1.jpg" alt="">\n        <a href="#" class="link edit-profile-image">\n          <i class="icon f7-icons">pencil</i>\n        </a>\n      </div>\n      <div class="settings-name">Noah Campbell</div>\n      <div class="settings-email">ncampbell@envato.com</div>\n    </div>\n    <div class="list links-list colored-icons-list settings-list list-outline list-dividers full-width">\n      <ul>\n        <li>\n          <a href="#">\n            <div class="colored-icon blue">\n              <i class="icon f7-icons">globe</i>\n            </div>Language\n            <div class="item-after">English</div>\n          </a>\n        </li>\n        <li class="item-content">\n          <div class="item-inner">\n            <div class="colored-icon red">\n              <i class="icon f7-icons">bell_fill</i>\n            </div>\n            <div class="item-title">Notifications</div>\n            <div class="item-after">\n              <label class="toggle toggle-init color-green">\n                <input type="checkbox" checked="">\n                <span class="toggle-icon">\n                </span>\n              </label>\n            </div>\n          </div>\n        </li>\n        <li class="item-content">\n          <div class="item-inner">\n            <div class="colored-icon orange">\n              <i class="icon f7-icons">location_fill</i>\n            </div>\n            <div class="item-title">Location</div>\n            <div class="item-after">\n              <label class="toggle toggle-init color-green">\n                <input type="checkbox" checked="">\n                <span class="toggle-icon">\n                </span>\n              </label>\n            </div>\n          </div>\n        </li>\n        <li class="item-content">\n          <div class="item-inner">\n            <div class="colored-icon blue">\n              <i class="icon f7-icons">hand_raised_fill</i>\n            </div>\n            <div class="item-title">Private Mode</div>\n            <div class="item-after">\n              <label class="toggle toggle-init color-green">\n                <input type="checkbox">\n                <span class="toggle-icon">\n                </span>\n              </label>\n            </div>\n          </div>\n        </li>\n        <li class="item-content">\n          <div class="item-inner">\n            <div class="colored-icon pink">\n              <i class="icon f7-icons">speaker_2_fill</i>\n            </div>\n            <div class="item-title">Sounds</div>\n            <div class="item-after">\n              <label class="toggle toggle-init color-green">\n                <input type="checkbox" checked="">\n                <span class="toggle-icon">\n                </span>\n              </label>\n            </div>\n          </div>\n        </li>\n        <li>\n          <a href="#">\n            <div class="colored-icon blue">\n              <i class="icon f7-icons">shield_lefthalf_fill</i>\n            </div>Privacy & Security</a>\n        </li>\n        <li>\n          <a href="#">\n            <div class="colored-icon orange">\n              <i class="icon f7-icons">arrow_2_circlepath</i>\n            </div>Updates\n            <div class="item-after">Automatic</div>\n          </a>\n        </li>\n        <li>\n          <a href="#">\n            <div class="colored-icon gray">\n              <i class="icon f7-icons">gear</i>\n            </div>Version\n            <div class="item-after">v2.3.7</div>\n          </a>\n        </li>\n        <li>\n          <a href="#">\n            <div class="colored-icon green">\n              <i class="icon f7-icons">doc_text_fill</i>\n            </div>Terms Of Service</a>\n        </li>\n        <li>\n          <a href="#">\n            <div class="colored-icon purple">\n              <i class="icon f7-icons">star_fill</i>\n            </div>Rate The App</a>\n        </li>\n      </ul>\n    </div>\n  </div>\n</div>','0','0','1','1','1','1','0','0','1','0','1','url','','','5','1747964808');
INSERT INTO `cp5_html_page` VALUES('4','home/','','home','Home','','','','<div class="toolbar tabbar tabbar-labels toolbar-bottom elevation-6 bg-white">
\n<div class="toolbar-inner">
\n    <a href="/home/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">home</i>
\n      <span class="tabbar-label">Home</span>
\n    </a>
\n    <a href="/action/" data-transition="f7-cover-v" class="link tab-link-active">
\n      <i class="icon material-icons">folder</i>
\n      <span class="tabbar-label">Action</span>
\n    </a>
\n    <a href="/account/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">person</i>
\n      <span class="tabbar-label">Account</span>
\n    </a>
\n    <a href="/more/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">more_horiz</i>
\n      <span class="tabbar-label">More</span>
\n    </a>
\n  </div>
\n</div>','','<div class="page page-home" data-name="home">\n  <div class="navbar">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="title">Home</div>\n      <div class="right">\n        <a href="#" class="link icon-only switch-theme">\n          <i class="icon f7-icons">moon_stars</i>\n        </a>\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n  </div>\n</div>','0','0','1','1','1','1','0','0','0','0','1','url','','','0','1747659720');
INSERT INTO `cp5_html_page` VALUES('5','more/','','more','More Info','','more','','<div class="toolbar tabbar tabbar-labels toolbar-bottom elevation-6 bg-white">
\n<div class="toolbar-inner">
\n    <a href="/home/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">home</i>
\n      <span class="tabbar-label">Home</span>
\n    </a>
\n    <a href="/action/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">folder</i>
\n      <span class="tabbar-label">Action</span>
\n    </a>
\n    <a href="/account/" data-transition="f7-cover-v" class="link">
\n      <i class="icon material-symbols-outlined">person</i>
\n      <span class="tabbar-label">Account</span>
\n    </a>
\n    <a href="/more/" data-transition="f7-cover-v" class="link tab-link-active">
\n      <i class="icon material-icons">more_horiz</i>
\n      <span class="tabbar-label">More</span>
\n    </a>
\n  </div>
\n</div>','','<template>\n  <div class="page page-more" data-name="more" data-ptr-mousewheel="true">\n    <div class="page-content">\n    </div>\n  </div>\n</template>','0','0','1','2','0','0','0','0','0','0','1','componentUrl','','','0','1747627352');
INSERT INTO `cp5_html_page` VALUES('6','account_delete/','','account_delete','Account Delete','','','<form class="mt-40 mb-40">\n  <input type="hidden" id="uuid" value="">\n  <input type="hidden" id="token" value="">\n  <label for="email">Email</label>\n  <input type="text" id="email_4" name="email_4" value="" placeholder="example@email.com">\n  <label for="comment">Reason</label>\n  <textarea id="reason_4" placeholder="Your comment here" id="comment">\n  </textarea>\n  <a href="#" id="account_delete_button" class="btn btn-primary btn-block fw-700">Save</a>\n</form>','','','<div class="page page-account_delete" data-name="account_delete">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Account Delete</div>\n      <div class="title-large">\n        <div class="title-large-text">Account Delete</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-40">\n      <input type="hidden" id="uuid" value="">\n      <input type="hidden" id="token" value="">\n      <label for="email">Email</label>\n      <input type="text" id="email_4" name="email_4" value="" placeholder="example@email.com">\n      <label for="comment">Reason</label>\n      <textarea id="reason_4" placeholder="Your comment here" id="comment">\n      </textarea>\n      <a href="#" id="account_delete_button" class="btn btn-primary btn-block fw-700">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','2','1747993303');
INSERT INTO `cp5_html_page` VALUES('7','account_edit/','','account_edit','Account Edit','','','<form class="mt-40 mb-40">\n  <div class="grid grid-cols-2 grid-gap grid-no-margin">\n    <div>\n      <label for="firstname">First Name</label>\n      <input type="text" id="firstname" name="first_name_3" placeholder="John">\n    </div>\n    <div>\n      <label for="lastname">Last Name</label>\n      <input type="text" id="lastname" name="last_name_3" placeholder="Doe">\n    </div>\n  </div>\n  <label for="email">Email</label>\n  <input type="email" id="email" name="email_3" placeholder="example@email.com">\n  <label for="phone_3">Phone</label>\n  <input type="text" id="phone_3" name="phone_3" placeholder="Phone/WhatsApp">\n  <input type="hidden" name="token_3">\n  <input type="hidden" name="uuid_3">\n  <a href="#" id="account_edit_button" class="btn btn-primary btn-block fw-700">Save</a>\n</form>','','','<div class="page page-account_edit" data-name="account_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Account Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Account Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-40">\n      <div class="grid grid-cols-2 grid-gap grid-no-margin">\n        <div>\n          <label for="firstname">First Name</label>\n          <input type="text" id="firstname" name="first_name_3" placeholder="John">\n        </div>\n        <div>\n          <label for="lastname">Last Name</label>\n          <input type="text" id="lastname" name="last_name_3" placeholder="Doe">\n        </div>\n      </div>\n      <label for="email">Email</label>\n      <input type="email" id="email" name="email_3" placeholder="example@email.com">\n      <label for="phone_3">Phone</label>\n      <input type="text" id="phone_3" name="phone_3" placeholder="Phone/WhatsApp">\n      <input type="hidden" name="token_3">\n      <input type="hidden" name="uuid_3">\n      <a href="#" id="account_edit_button" class="btn btn-primary btn-block fw-700">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','2','1747964506');
INSERT INTO `cp5_html_page` VALUES('8','icons/','','icons','Icons F7','','more','','','','<template>\n  <div class="page page-icons" data-name="icons">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Icons F7</div>\n        <div class="title-large">\n          <div class="title-large-text">Icons F7</div>\n        </div>\n        <div class="subnavbar">\n          <form data-search-container=".search-list_icons" data-search-in=".item-title" class="searchbar searchbar-init">\n            <div class="searchbar-inner">\n              <div class="searchbar-input-wrap">\n                <input type="search" placeholder="Search" />\n                <i class="searchbar-icon"></i>\n                <span class="input-clear-button">\n                </span>\n              </div>\n              <span class="searchbar-disable-button">Cancel</span>\n            </div>\n          </form>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="icons_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','1','1','0','1','componentUrl','','','5','1747964630');
INSERT INTO `cp5_html_page` VALUES('9','start','','onboarding','Onboarding','','','<swiper-container pagination class="swiper-onboarding full-width" space-between="50">\n  <swiper-slide>\n    <img src="https://yui.xioyuna.com/template/img/illustrations/onboarding-2.svg" alt="">\n    <div class="onboarding-title">Welcome to our Travel App!</div>\n    <div class="onboarding-subtitle">Plan your trips, discover new destinations, and make unforgettable memories with our intuitive travel app.</div>\n  </swiper-slide>\n  <swiper-slide>\n    <img src="https://yui.xioyuna.com/template/img/illustrations/onboarding-3.svg" alt="">\n    <div class="onboarding-title">Explore the World of Adventure!</div>\n    <div class="onboarding-subtitle">Discover exciting activities, find hidden gems, and embark on thrilling experiences with our comprehensive travel app.</div>\n  </swiper-slide>\n  <swiper-slide>\n    <img src="https://yui.xioyuna.com/template/img/illustrations/onboarding-1.svg" alt="">\n    <div class="onboarding-title">Seamlessly Plan Your Travels!</div>\n    <div class="onboarding-subtitle">Book flights, and access personalized recommendations for a stress-free travel experience.</div>\n  </swiper-slide>\n</swiper-container>\n<a href="/signin/" class="button button-fill color-dark onboarding-next-button">Next\n  <i class="icon f7-icons">arrow_right</i>\n</a>','','','<div class="page page-onboarding no-toolbar" data-name="onboarding">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="right">\n        <a href="#" class="link icon-only switch-theme">\n          <i class="icon f7-icons">moon_stars</i>\n        </a>\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <swiper-container pagination class="swiper-onboarding full-width" space-between="50">\n      <swiper-slide>\n        <img src="https://yui.xioyuna.com/template/img/illustrations/onboarding-2.svg" alt="">\n        <div class="onboarding-title">Welcome to our Travel App!</div>\n        <div class="onboarding-subtitle">Plan your trips, discover new destinations, and make unforgettable memories with our intuitive travel app.</div>\n      </swiper-slide>\n      <swiper-slide>\n        <img src="https://yui.xioyuna.com/template/img/illustrations/onboarding-3.svg" alt="">\n        <div class="onboarding-title">Explore the World of Adventure!</div>\n        <div class="onboarding-subtitle">Discover exciting activities, find hidden gems, and embark on thrilling experiences with our comprehensive travel app.</div>\n      </swiper-slide>\n      <swiper-slide>\n        <img src="https://yui.xioyuna.com/template/img/illustrations/onboarding-1.svg" alt="">\n        <div class="onboarding-title">Seamlessly Plan Your Travels!</div>\n        <div class="onboarding-subtitle">Book flights, and access personalized recommendations for a stress-free travel experience.</div>\n      </swiper-slide>\n    </swiper-container>\n    <a href="/signin/" class="button button-fill color-dark onboarding-next-button">Next\n      <i class="icon f7-icons">arrow_right</i>\n    </a>\n  </div>\n</div>','0','0','2','1','0','1','0','0','1','0','0','url','','','0','1747705536');
INSERT INTO `cp5_html_page` VALUES('10','address/','','address','Address','','','','','','<div class="page page-address" data-name="address">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Address</div>\n      <div class="title-large">\n        <div class="title-large-text">Address</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content" id="address_content">\n  </div>\n</div>','0','1','3','1','1','1','0','0','1','0','1','url','','','2','1748004594');
INSERT INTO `cp5_html_page` VALUES('11','address_add/','','address_add','Address Add','','','<form class="mt-40 mb-40">\n  <label for="ad_label">Label</label>\n  <input type="text" id="ad_label" placeholder="Label">\n  <label for="ad_name">Name</label>\n  <input type="text" id="ad_name" placeholder="Name">\n  <label for="ad_phone">Phone</label>\n  <input type="text" id="ad_phone" placeholder="Phone">\n  <label for="ad_address">Address</label>\n  <input type="text" id="ad_address" placeholder="Address">\n  <div class="grid grid-cols-2 grid-gap grid-no-margin">\n    <div>\n      <label for="ad_rt">Rt</label>\n      <input type="text" id="ad_rt" placeholder="Rt">\n    </div>\n    <div>\n      <label for="ad_rw">Rw</label>\n      <input type="text" id="ad_rw" placeholder="Rw">\n    </div>\n    <div>\n      <label for="ad_no">No</label>\n      <input type="text" id="ad_no" placeholder="No">\n    </div>\n    <div>\n      <label for="ad_postcode">Post Code</label>\n      <input type="text" id="ad_postcode" placeholder="Post Code">\n    </div>\n  </div>\n  <label for="ad_kel">Kel</label>\n  <input type="text" id="ad_kel" placeholder="Kel">\n  <label for="ad_kec">Kec</label>\n  <input type="text" id="ad_kec" placeholder="Kec">\n  <label for="ad_city">City</label>\n  <input type="text" id="ad_city" placeholder="City">\n  <label for="ad_gmap">Gmap</label>\n  <input type="text" id="ad_gmap" placeholder="Gmap">\n  <label for="ad_remark">Remark</label>\n  <input type="text" id="ad_remark" placeholder="Remark">\n  <a href="#" id="address_add_button" class="btn btn-primary btn-block fw-700">Save</a>\n</form>','','','<div class="page page-address_add" data-name="address_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Address Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Address Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-40">\n      <label for="ad_label">Label</label>\n      <input type="text" id="ad_label" placeholder="Label">\n      <label for="ad_name">Name</label>\n      <input type="text" id="ad_name" placeholder="Name">\n      <label for="ad_phone">Phone</label>\n      <input type="text" id="ad_phone" placeholder="Phone">\n      <label for="ad_address">Address</label>\n      <input type="text" id="ad_address" placeholder="Address">\n      <div class="grid grid-cols-2 grid-gap grid-no-margin">\n        <div>\n          <label for="ad_rt">Rt</label>\n          <input type="text" id="ad_rt" placeholder="Rt">\n        </div>\n        <div>\n          <label for="ad_rw">Rw</label>\n          <input type="text" id="ad_rw" placeholder="Rw">\n        </div>\n        <div>\n          <label for="ad_no">No</label>\n          <input type="text" id="ad_no" placeholder="No">\n        </div>\n        <div>\n          <label for="ad_postcode">Post Code</label>\n          <input type="text" id="ad_postcode" placeholder="Post Code">\n        </div>\n      </div>\n      <label for="ad_kel">Kel</label>\n      <input type="text" id="ad_kel" placeholder="Kel">\n      <label for="ad_kec">Kec</label>\n      <input type="text" id="ad_kec" placeholder="Kec">\n      <label for="ad_city">City</label>\n      <input type="text" id="ad_city" placeholder="City">\n      <label for="ad_gmap">Gmap</label>\n      <input type="text" id="ad_gmap" placeholder="Gmap">\n      <label for="ad_remark">Remark</label>\n      <input type="text" id="ad_remark" placeholder="Remark">\n      <a href="#" id="address_add_button" class="btn btn-primary btn-block fw-700">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','10','1747964512');
INSERT INTO `cp5_html_page` VALUES('12','address_edit/:id','','address_edit','Address Edit','','','<form class="mt-40 mb-40">\n  <input value="" type="hidden" id="a2_id">\n  <label for="a2_label">Label</label>\n  <input value="" type="text" id="a2_label" placeholder="Label">\n  <label for="a2_name">Name</label>\n  <input value="" type="text" id="a2_name" placeholder="Name">\n  <label for="a2_phone">Phone</label>\n  <input value="" type="text" id="a2_phone" placeholder="Phone">\n  <label for="a2_address">Address</label>\n  <input value="" type="text" id="a2_address" placeholder="Address">\n  <div class="grid grid-cols-2 grid-gap grid-no-margin">\n    <div>\n      <label for="a2_rt">Rt</label>\n      <input value="" type="text" id="a2_rt" placeholder="Rt">\n    </div>\n    <div>\n      <label for="a2_rw">Rw</label>\n      <input value="" type="text" id="a2_rw" placeholder="Rw">\n    </div>\n    <div>\n      <label for="a2_no">No</label>\n      <input value="" type="text" id="a2_no" placeholder="No">\n    </div>\n    <div>\n      <label for="a2_postcode">Post Code</label>\n      <input value="" type="text" id="a2_postcode" placeholder="Post Code">\n    </div>\n  </div>\n  <label for="a2_kel">Kel</label>\n  <input value="" type="text" id="a2_kel" placeholder="Kel">\n  <label for="a2_kec">Kec</label>\n  <input value="" type="text" id="a2_kec" placeholder="Kec">\n  <label for="a2_city">City</label>\n  <input value="" type="text" id="a2_city" placeholder="City">\n  <label for="a2_gmap">Gmap</label>\n  <input value="" type="text" id="a2_gmap" placeholder="Gmap">\n  <label for="a2_remark">Remark</label>\n  <input value="" type="text" id="a2_remark" placeholder="Remark">\n  <a href="#" id="address_edit_button" class="btn btn-primary btn-block fw-700">Save</a>\n</form>','','','<div class="page page-address_edit" data-name="address_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Address Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Address Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-40">\n      <input value="" type="hidden" id="a2_id">\n      <label for="a2_label">Label</label>\n      <input value="" type="text" id="a2_label" placeholder="Label">\n      <label for="a2_name">Name</label>\n      <input value="" type="text" id="a2_name" placeholder="Name">\n      <label for="a2_phone">Phone</label>\n      <input value="" type="text" id="a2_phone" placeholder="Phone">\n      <label for="a2_address">Address</label>\n      <input value="" type="text" id="a2_address" placeholder="Address">\n      <div class="grid grid-cols-2 grid-gap grid-no-margin">\n        <div>\n          <label for="a2_rt">Rt</label>\n          <input value="" type="text" id="a2_rt" placeholder="Rt">\n        </div>\n        <div>\n          <label for="a2_rw">Rw</label>\n          <input value="" type="text" id="a2_rw" placeholder="Rw">\n        </div>\n        <div>\n          <label for="a2_no">No</label>\n          <input value="" type="text" id="a2_no" placeholder="No">\n        </div>\n        <div>\n          <label for="a2_postcode">Post Code</label>\n          <input value="" type="text" id="a2_postcode" placeholder="Post Code">\n        </div>\n      </div>\n      <label for="a2_kel">Kel</label>\n      <input value="" type="text" id="a2_kel" placeholder="Kel">\n      <label for="a2_kec">Kec</label>\n      <input value="" type="text" id="a2_kec" placeholder="Kec">\n      <label for="a2_city">City</label>\n      <input value="" type="text" id="a2_city" placeholder="City">\n      <label for="a2_gmap">Gmap</label>\n      <input value="" type="text" id="a2_gmap" placeholder="Gmap">\n      <label for="a2_remark">Remark</label>\n      <input value="" type="text" id="a2_remark" placeholder="Remark">\n      <a href="#" id="address_edit_button" class="btn btn-primary btn-block fw-700">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','10','1747964518');
INSERT INTO `cp5_html_page` VALUES('13','faq/','','faq','FAQ','','more','','','','<template>\n  <div class="page page-faq" data-name="faq">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">FAQ</div>\n        <div class="title-large">\n          <div class="title-large-text">FAQ</div>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="faq_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','0','1','0','1','componentUrl','','','5','1748477923');
INSERT INTO `cp5_html_page` VALUES('14','password_forgot/','','password_forgot','Password Forgot','','','<form class="mt-40">\n  <input type="text" id="emailForgot" name="email" placeholder="Email">\n  <a href="#" id="password_forgot_button" class="btn btn-primary btn-block fw-700">Forgot Password</a>\n</form>\n<p class="grid grid-cols-2 grid-gap grid-buttons-demo mt-15">\n  <a href="/signin/" class="btn btn-primary">SignIn</a>\n  <a href="/signup/" class="btn btn-info">SignUp</a>\n</p>','','','<div class="page page-password_forgot no-toolbar" data-name="password_forgot">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="title">Password Forgot</div>\n      <div class="title-large">\n        <div class="title-large-text">Password Forgot</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40">\n      <input type="text" id="emailForgot" name="email" placeholder="Email">\n      <a href="#" id="password_forgot_button" class="btn btn-primary btn-block fw-700">Forgot Password</a>\n    </form>\n    <p class="grid grid-cols-2 grid-gap grid-buttons-demo mt-15">\n      <a href="/signin/" class="btn btn-primary">SignIn</a>\n      <a href="/signup/" class="btn btn-info">SignUp</a>\n    </p>\n  </div>\n</div>','0','0','1','1','1','1','0','0','0','0','0','url','','','0','1748142263');



INSERT INTO `cp5_html_page` VALUES('18','terms/','','terms','Term & Condition','','more','<p>This is a blank page. You can add as many pages as you want in your app and build them using all the components and features included in the template.</p>\n<p>You can then link the pages to any classical link or button to open it.</p>','','','<div class="page page-terms" data-name="terms">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Term & Condition</div>\n      <div class="title-large">\n        <div class="title-large-text">Term & Condition</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <p>This is a blank page. You can add as many pages as you want in your app and build them using all the components and features included in the template.</p>\n    <p>You can then link the pages to any classical link or button to open it.</p>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','0','1','url','','','5','1747964819');
INSERT INTO `cp5_html_page` VALUES('19','sales/','','sales','Sales','','more','','','','<template>\n  <div class="page page-sales" data-name="sales">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Sales</div>\n        <div class="title-large">\n          <div class="title-large-text">Sales</div>\n        </div>\n        <div class="subnavbar">\n          <form data-search-container=".search-list_sales" data-search-in=".item-title" class="searchbar searchbar-init">\n            <div class="searchbar-inner">\n              <div class="searchbar-input-wrap">\n                <input type="search" placeholder="Search" />\n                <i class="searchbar-icon"></i>\n                <span class="input-clear-button">\n                </span>\n              </div>\n              <span class="searchbar-disable-button">Cancel</span>\n            </div>\n          </form>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="sales_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','1','1','0','1','componentUrl','','','5','1748612803');
INSERT INTO `cp5_html_page` VALUES('22','product/','','product','Product','','more','','','','<template>\n  <div class="page page-product" data-name="product">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Product</div>\n        <div class="title-large">\n          <div class="title-large-text">Product</div>\n        </div>\n        <div class="subnavbar">\n          <form data-search-container=".search-list_product" data-search-in=".item-title" class="searchbar searchbar-init">\n            <div class="searchbar-inner">\n              <div class="searchbar-input-wrap">\n                <input type="search" placeholder="Search" />\n                <i class="searchbar-icon"></i>\n                <span class="input-clear-button">\n                </span>\n              </div>\n              <span class="searchbar-disable-button">Cancel</span>\n            </div>\n          </form>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="product_content">\n    </div>\n  </div>\n</template>','1','1','2','2','1','1','0','1','1','0','1','componentUrl','','','5','1747965021');
INSERT INTO `cp5_html_page` VALUES('23','product_add/','','product_add','Product Add','','','<form class="mt-40 mb-20">\n  <label for="p5_brand">Brand</label>\n  <p id="p5_brand"></p>\n  <label for="p5_name">Name</label>\n  <input type="text" id="p5_name" placeholder="Name" value="">\n  <label for="p5_item_code">Item Code</label>\n  <input type="text" id="p5_item_code" placeholder="Item Code" value="">\n  <label for="p5_price_per_unit">Price Per Unit</label>\n  <input type="text" id="p5_price_per_unit" placeholder="Price Per Unit" value="">\n  <a href="#" id="product_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-product_add" data-name="product_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Product Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Product Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <label for="p5_brand">Brand</label>\n      <p id="p5_brand"></p>\n      <label for="p5_name">Name</label>\n      <input type="text" id="p5_name" placeholder="Name" value="">\n      <label for="p5_item_code">Item Code</label>\n      <input type="text" id="p5_item_code" placeholder="Item Code" value="">\n      <label for="p5_price_per_unit">Price Per Unit</label>\n      <input type="text" id="p5_price_per_unit" placeholder="Price Per Unit" value="">\n      <a href="#" id="product_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','22','1748483546');
INSERT INTO `cp5_html_page` VALUES('24','product_edit/:id','','product_edit','Product Edit','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="a7_id" value="">\n  <label for="a7_name">Name</label>\n  <input type="text" id="a7_name" placeholder="Name" value="">\n  <label for="a7_brand">Brand</label>\n  <input type="text" id="a7_brand" placeholder="Brand" value="">\n  <label for="a7_item_code">Item Code</label>\n  <input type="text" id="a7_item_code" placeholder="Item Code" value="">\n  <label for="a7_price_per_unit">Price Per Unit</label>\n  <input type="text" id="a7_price_per_unit" placeholder="Price Per Unit" value="">\n  <a href="#" id="product_edit_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-product_edit" data-name="product_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Product Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Product Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="a7_id" value="">\n      <label for="a7_name">Name</label>\n      <input type="text" id="a7_name" placeholder="Name" value="">\n      <label for="a7_brand">Brand</label>\n      <input type="text" id="a7_brand" placeholder="Brand" value="">\n      <label for="a7_item_code">Item Code</label>\n      <input type="text" id="a7_item_code" placeholder="Item Code" value="">\n      <label for="a7_price_per_unit">Price Per Unit</label>\n      <input type="text" id="a7_price_per_unit" placeholder="Price Per Unit" value="">\n      <a href="#" id="product_edit_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','22','1748490238');
INSERT INTO `cp5_html_page` VALUES('25','action_list/','','action_list','Action','','','','','','<div class="page page-action_list" data-name="action_list">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Action</div>\n      <div class="title-large">\n        <div class="title-large-text">Action</div>\n      </div>\n      <div class="subnavbar">\n        <form data-search-container=".search-list_action_list" data-search-in=".item-title" class="searchbar searchbar-init">\n          <div class="searchbar-inner">\n            <div class="searchbar-input-wrap">\n              <input type="search" placeholder="Search" />\n              <i class="searchbar-icon"></i>\n              <span class="input-clear-button">\n              </span>\n            </div>\n            <span class="searchbar-disable-button">Cancel</span>\n          </div>\n        </form>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content" id="action_list_content">\n  </div>\n</div>','0','1','1','1','1','1','0','1','1','0','1','url','','','0','1748137034');
INSERT INTO `cp5_html_page` VALUES('26','transaction/','','transaction','Transaction','','more','','','','<template>\n  <div class="page page-transaction" data-name="transaction">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Transaction</div>\n        <div class="title-large">\n          <div class="title-large-text">Transaction</div>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="transaction_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','0','1','0','1','componentUrl','','','5','1747964839');
INSERT INTO `cp5_html_page` VALUES('29','journal/:id','','journal','Journal','','more','','','','<template>\n  <div class="page page-journal" data-name="journal">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Journal</div>\n        <div class="title-large">\n          <div class="title-large-text">Journal</div>\n        </div>\n        <div class="subnavbar">\n          <form data-search-container=".search-list_journal" data-search-in=".item-title" class="searchbar searchbar-init">\n            <div class="searchbar-inner">\n              <div class="searchbar-input-wrap">\n                <input type="search" placeholder="Search" />\n                <i class="searchbar-icon"></i>\n                <span class="input-clear-button">\n                </span>\n              </div>\n              <span class="searchbar-disable-button">Cancel</span>\n            </div>\n          </form>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="journal_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','1','1','0','1','componentUrl','','','5','1748665737');
INSERT INTO `cp5_html_page` VALUES('32','inventory/','','inventory','Inventory','','more','','','','<template>\n  <div class="page page-inventory" data-name="inventory">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Inventory</div>\n        <div class="title-large">\n          <div class="title-large-text">Inventory</div>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="inventory_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','0','1','0','1','componentUrl','','','5','1748093764');
INSERT INTO `cp5_html_page` VALUES('33','inventory_add/','','inventory_add','Inventory Add','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="i2_credit" value="11101">\n  <label for="i2_name">Name</label>\n  <input type="text" id="i2_name" placeholder="Name" value="">\n  <label for="i2_brand">Brand</label>\n  <input type="text" id="i2_brand" placeholder="Brand" value="">\n  <label for="i2_qty">Qty</label>\n  <input type="text" id="i2_qty" placeholder="Qty" value="">\n  <label for="i2_unit">Unit</label>\n  <input type="text" id="i2_unit" placeholder="Unit" value="">\n  <label for="i2_remark">Remark</label>\n  <input type="text" id="i2_remark" placeholder="Remark" value="">\n  <label for="i2_position">Position</label>\n  <input type="text" id="i2_position" placeholder="Position" value="">\n  <label for="i2_code">Code</label>\n  <input type="text" id="i2_code" placeholder="Code" value="">\n  <label for="i2_price_per_unit">Price Per Unit</label>\n  <input type="text" id="i2_price_per_unit" placeholder="Price Per Unit" value="">\n  <label for="i2_will_age">Will Age</label>\n  <input type="text" id="i2_will_age" placeholder="Will Age" value="">\n  <label for="i2_purchase_date">Purchase Date</label>\n  <input type="datetime-local" id="i2_purchase_date" placeholder="Purchase Date" value="">\n  <label for="i2_amount">Amount</label>\n  <input type="text" id="i2_amount" placeholder="Amount" value="">\n  <label for="i2_img_url">Img URL</label>\n  <input type="text" id="i2_img_url" placeholder="Url Image" value="">\n  <div class="light-gray-title">Account</div>\n  <p>\n    <label class="radio" style="margin-left: 5px">\n      <input type="radio" name="i2_debit" value="12101">\n      <i class="icon-radio"></i>\n    </label>Tanah\n    <label class="radio" style="margin-left: 5px">\n      <input type="radio" name="i2_debit" value="12201">\n      <i class="icon-radio"></i>\n    </label>Bangunan\n    <label class="radio" style="margin-left: 5px">\n      <input type="radio" name="i2_debit" value="12301">\n      <i class="icon-radio"></i>\n    </label>Kendaraan\n    <label class="radio" style="margin-left: 5px">\n      <input type="radio" name="i2_debit" value="12401">\n      <i class="icon-radio"></i>\n    </label>Peralatan</p>\n  <a href="#" id="inventory_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-inventory_add" data-name="inventory_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Inventory Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Inventory Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="i2_credit" value="11101">\n      <label for="i2_name">Name</label>\n      <input type="text" id="i2_name" placeholder="Name" value="">\n      <label for="i2_brand">Brand</label>\n      <input type="text" id="i2_brand" placeholder="Brand" value="">\n      <label for="i2_qty">Qty</label>\n      <input type="text" id="i2_qty" placeholder="Qty" value="">\n      <label for="i2_unit">Unit</label>\n      <input type="text" id="i2_unit" placeholder="Unit" value="">\n      <label for="i2_remark">Remark</label>\n      <input type="text" id="i2_remark" placeholder="Remark" value="">\n      <label for="i2_position">Position</label>\n      <input type="text" id="i2_position" placeholder="Position" value="">\n      <label for="i2_code">Code</label>\n      <input type="text" id="i2_code" placeholder="Code" value="">\n      <label for="i2_price_per_unit">Price Per Unit</label>\n      <input type="text" id="i2_price_per_unit" placeholder="Price Per Unit" value="">\n      <label for="i2_will_age">Will Age</label>\n      <input type="text" id="i2_will_age" placeholder="Will Age" value="">\n      <label for="i2_purchase_date">Purchase Date</label>\n      <input type="datetime-local" id="i2_purchase_date" placeholder="Purchase Date" value="">\n      <label for="i2_amount">Amount</label>\n      <input type="text" id="i2_amount" placeholder="Amount" value="">\n      <label for="i2_img_url">Img URL</label>\n      <input type="text" id="i2_img_url" placeholder="Url Image" value="">\n      <div class="light-gray-title">Account</div>\n      <p>\n        <label class="radio" style="margin-left: 5px">\n          <input type="radio" name="i2_debit" value="12101">\n          <i class="icon-radio"></i>\n        </label>Tanah\n        <label class="radio" style="margin-left: 5px">\n          <input type="radio" name="i2_debit" value="12201">\n          <i class="icon-radio"></i>\n        </label>Bangunan\n        <label class="radio" style="margin-left: 5px">\n          <input type="radio" name="i2_debit" value="12301">\n          <i class="icon-radio"></i>\n        </label>Kendaraan\n        <label class="radio" style="margin-left: 5px">\n          <input type="radio" name="i2_debit" value="12401">\n          <i class="icon-radio"></i>\n        </label>Peralatan</p>\n      <a href="#" id="inventory_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','32','1748422222');
INSERT INTO `cp5_html_page` VALUES('34','inventory_edit/:id','','inventory_edit','Inventory Edit','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="i1_id" value="">\n  <label for="i1_name">Name</label>\n  <input type="text" id="i1_name" placeholder="Name" value="">\n  <label for="i1_brand">Brand</label>\n  <input type="text" id="i1_brand" placeholder="Brand" value="">\n  <label for="i1_qty">Qty</label>\n  <input type="text" id="i1_qty" placeholder="Qty" value="">\n  <label for="i1_unit">Unit</label>\n  <input type="text" id="i1_unit" placeholder="Unit" value="">\n  <label for="i1_remark">Remark</label>\n  <input type="text" id="i1_remark" placeholder="Remark" value="">\n  <label for="i1_position">Position</label>\n  <input type="text" id="i1_position" placeholder="Position" value="">\n  <label for="i1_code">Code</label>\n  <input type="text" id="i1_code" placeholder="Code" value="">\n  <label for="i1_price_per_unit">Price Per Unit</label>\n  <input type="text" id="i1_price_per_unit" placeholder="Price Per Unit" value="">\n  <label for="i1_will_age">Will Age</label>\n  <input type="text" id="i1_will_age" placeholder="Will Age" value="">\n  <label for="i1_purchase_date">Purchase Date</label>\n  <input type="datetime-local" id="i1_purchase_date" placeholder="Purchase Date" value="">\n  <label for="i1_amount">Amount</label>\n  <input type="text" id="i1_amount" placeholder="Amount" value="">\n  <label for="i1_img_url">Img URL</label>\n  <input type="text" id="i1_img_url" placeholder="Url Image" value="">\n  <a href="#" id="inventory_edit_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-inventory_edit" data-name="inventory_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Inventory Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Inventory Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="i1_id" value="">\n      <label for="i1_name">Name</label>\n      <input type="text" id="i1_name" placeholder="Name" value="">\n      <label for="i1_brand">Brand</label>\n      <input type="text" id="i1_brand" placeholder="Brand" value="">\n      <label for="i1_qty">Qty</label>\n      <input type="text" id="i1_qty" placeholder="Qty" value="">\n      <label for="i1_unit">Unit</label>\n      <input type="text" id="i1_unit" placeholder="Unit" value="">\n      <label for="i1_remark">Remark</label>\n      <input type="text" id="i1_remark" placeholder="Remark" value="">\n      <label for="i1_position">Position</label>\n      <input type="text" id="i1_position" placeholder="Position" value="">\n      <label for="i1_code">Code</label>\n      <input type="text" id="i1_code" placeholder="Code" value="">\n      <label for="i1_price_per_unit">Price Per Unit</label>\n      <input type="text" id="i1_price_per_unit" placeholder="Price Per Unit" value="">\n      <label for="i1_will_age">Will Age</label>\n      <input type="text" id="i1_will_age" placeholder="Will Age" value="">\n      <label for="i1_purchase_date">Purchase Date</label>\n      <input type="datetime-local" id="i1_purchase_date" placeholder="Purchase Date" value="">\n      <label for="i1_amount">Amount</label>\n      <input type="text" id="i1_amount" placeholder="Amount" value="">\n      <label for="i1_img_url">Img URL</label>\n      <input type="text" id="i1_img_url" placeholder="Url Image" value="">\n      <a href="#" id="inventory_edit_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','32','1748142782');
INSERT INTO `cp5_html_page` VALUES('35','person/','','person','Person','','more','','','','<template>\n  <div class="page page-person" data-name="person">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Person</div>\n        <div class="title-large">\n          <div class="title-large-text">Person</div>\n        </div>\n        <div class="subnavbar">\n          <form data-search-container=".search-list_person" data-search-in=".item-title" class="searchbar searchbar-init">\n            <div class="searchbar-inner">\n              <div class="searchbar-input-wrap">\n                <input type="search" placeholder="Search" />\n                <i class="searchbar-icon"></i>\n                <span class="input-clear-button">\n                </span>\n              </div>\n              <span class="searchbar-disable-button">Cancel</span>\n            </div>\n          </form>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="person_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','1','1','0','1','componentUrl','','','5','1747964655');
INSERT INTO `cp5_html_page` VALUES('36','person_add/','','person_add','Person Add','','','<form class="mt-40 mb-20">\n  <label for="p8_name">Name</label>\n  <input type="text" id="p8_name" placeholder="Name" value="">\n  <label for="p8_initial">Initial</label>\n  <input type="text" id="p8_initial" placeholder="Initial" value="">\n  <label for="p8_email">Email</label>\n  <input type="text" id="p8_email" placeholder="Email" value="">\n  <label for="p8_city">City</label>\n  <input type="text" id="p8_city" placeholder="City" value="">\n  <label for="p8_phone">Phone</label>\n  <input type="text" id="p8_phone" placeholder="Phone" value="">\n  <label for="p8_nik">NIK</label>\n  <input type="text" id="p8_nik" placeholder="NIK" value="">\n  <label for="p8_npwp">NPWP</label>\n  <input type="text" id="p8_npwp" placeholder="NPWP" value="">\n  <label for="p8_address">Address</label>\n  <input type="text" id="p8_address" placeholder="Address" value="">\n  <label for="p8_postcode">Postcode</label>\n  <input type="text" id="p8_postcode" placeholder="Postcode" value="">\n  <a class="mb-30 item-link smart-select smart-select-init" data-open-in="sheet">\n    <select id="p8_company_id">\n    </select>\n    <div class="item-content">\n      <div class="item-inner">\n        <div class="item-title">\n          <b>Company</b>\n        </div>\n      </div>\n    </div>\n  </a>\n  <a href="#" id="person_add_button" class="btn btn-primary btn-block fw-700 mb-30 mt-20">Save</a>\n</form>','','','<div class="page page-person_add" data-name="person_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Person Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Person Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <label for="p8_name">Name</label>\n      <input type="text" id="p8_name" placeholder="Name" value="">\n      <label for="p8_initial">Initial</label>\n      <input type="text" id="p8_initial" placeholder="Initial" value="">\n      <label for="p8_email">Email</label>\n      <input type="text" id="p8_email" placeholder="Email" value="">\n      <label for="p8_city">City</label>\n      <input type="text" id="p8_city" placeholder="City" value="">\n      <label for="p8_phone">Phone</label>\n      <input type="text" id="p8_phone" placeholder="Phone" value="">\n      <label for="p8_nik">NIK</label>\n      <input type="text" id="p8_nik" placeholder="NIK" value="">\n      <label for="p8_npwp">NPWP</label>\n      <input type="text" id="p8_npwp" placeholder="NPWP" value="">\n      <label for="p8_address">Address</label>\n      <input type="text" id="p8_address" placeholder="Address" value="">\n      <label for="p8_postcode">Postcode</label>\n      <input type="text" id="p8_postcode" placeholder="Postcode" value="">\n      <a class="mb-30 item-link smart-select smart-select-init" data-open-in="sheet">\n        <select id="p8_company_id">\n        </select>\n        <div class="item-content">\n          <div class="item-inner">\n            <div class="item-title">\n              <b>Company</b>\n            </div>\n          </div>\n        </div>\n      </a>\n      <a href="#" id="person_add_button" class="btn btn-primary btn-block fw-700 mb-30 mt-20">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','35','1747964646');
INSERT INTO `cp5_html_page` VALUES('37','person_edit/:id','','person_edit','Person Edit','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="p9_id" value="">\n  <label for="p9_name">Name</label>\n  <input type="text" id="p9_name" placeholder="Name" value="">\n  <label for="p9_initial">Initial</label>\n  <input type="text" id="p9_initial" placeholder="Initial" value="">\n  <label for="p9_email">Email</label>\n  <input type="text" id="p9_email" placeholder="Email" value="">\n  <label for="p9_city">City</label>\n  <input type="text" id="p9_city" placeholder="City" value="">\n  <label for="p9_phone">Phone</label>\n  <input type="text" id="p9_phone" placeholder="Phone" value="">\n  <label for="p9_nik">Nik</label>\n  <input type="text" id="p9_nik" placeholder="Nik" value="">\n  <label for="p9_npwp">Npwp</label>\n  <input type="text" id="p9_npwp" placeholder="Npwp" value="">\n  <label for="p9_address">Address</label>\n  <input type="text" id="p9_address" placeholder="Address" value="">\n  <label for="p9_postcode">Postcode</label>\n  <input type="text" id="p9_postcode" placeholder="Postcode" value="">\n  <label for="p9_company_id">Company Id</label>\n  <input type="text" id="p9_company_id" placeholder="Company Id" value="">\n  <a href="#" id="person_edit_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>\n<div class="centered-text mb-40">\n  <a id="person_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n</div>','','','<div class="page page-person_edit" data-name="person_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Person Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Person Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="p9_id" value="">\n      <label for="p9_name">Name</label>\n      <input type="text" id="p9_name" placeholder="Name" value="">\n      <label for="p9_initial">Initial</label>\n      <input type="text" id="p9_initial" placeholder="Initial" value="">\n      <label for="p9_email">Email</label>\n      <input type="text" id="p9_email" placeholder="Email" value="">\n      <label for="p9_city">City</label>\n      <input type="text" id="p9_city" placeholder="City" value="">\n      <label for="p9_phone">Phone</label>\n      <input type="text" id="p9_phone" placeholder="Phone" value="">\n      <label for="p9_nik">Nik</label>\n      <input type="text" id="p9_nik" placeholder="Nik" value="">\n      <label for="p9_npwp">Npwp</label>\n      <input type="text" id="p9_npwp" placeholder="Npwp" value="">\n      <label for="p9_address">Address</label>\n      <input type="text" id="p9_address" placeholder="Address" value="">\n      <label for="p9_postcode">Postcode</label>\n      <input type="text" id="p9_postcode" placeholder="Postcode" value="">\n      <label for="p9_company_id">Company Id</label>\n      <input type="text" id="p9_company_id" placeholder="Company Id" value="">\n      <a href="#" id="person_edit_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n    <div class="centered-text mb-40">\n      <a id="person_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n    </div>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','35','1748477752');
INSERT INTO `cp5_html_page` VALUES('38','company/','','company','Company','','more','','','','<template>\n  <div class="page page-company" data-name="company">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Company</div>\n        <div class="title-large">\n          <div class="title-large-text">Company</div>\n        </div>\n        <div class="subnavbar">\n          <form data-search-container=".search-list_company" data-search-in=".item-title" class="searchbar searchbar-init">\n            <div class="searchbar-inner">\n              <div class="searchbar-input-wrap">\n                <input type="search" placeholder="Search" />\n                <i class="searchbar-icon"></i>\n                <span class="input-clear-button">\n                </span>\n              </div>\n              <span class="searchbar-disable-button">Cancel</span>\n            </div>\n          </form>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="company_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','1','1','0','1','componentUrl','','','5','1747964613');
INSERT INTO `cp5_html_page` VALUES('39','company_add/','','company_add','Company Add','','','<form class="mt-40 mb-40">\n  <label for="c2_name">Name</label>\n  <input type="text" id="c2_name" placeholder="Name" value="">\n  <label for="c2_initial">Initial</label>\n  <input type="text" id="c2_initial" placeholder="Initial" value="">\n  <label for="c2_nib">Nib</label>\n  <input type="text" id="c2_nib" placeholder="Nib" value="">\n  <label for="c2_npwp">Npwp</label>\n  <input type="text" id="c2_npwp" placeholder="Npwp" value="">\n  <label for="c2_address">Address</label>\n  <input type="text" id="c2_address" placeholder="Address" value="">\n  <label for="c2_city">City</label>\n  <input type="text" id="c2_city" placeholder="City" value="">\n  <label for="c2_postcode">Postcode</label>\n  <input type="text" id="c2_postcode" placeholder="Postcode" value="">\n  <label for="c2_relation">Relation</label>\n  <input type="text" id="c2_relation" placeholder="Relation" value="">\n  <label for="c2_img_url">Img URL</label>\n  <input type="text" id="c2_img_url" placeholder="Url Image Logo" value="">\n  <a href="#" id="company_add_button" class="btn btn-primary btn-block fw-700">Save</a>\n</form>','','','<div class="page page-company_add" data-name="company_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Company Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Company Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-40">\n      <label for="c2_name">Name</label>\n      <input type="text" id="c2_name" placeholder="Name" value="">\n      <label for="c2_initial">Initial</label>\n      <input type="text" id="c2_initial" placeholder="Initial" value="">\n      <label for="c2_nib">Nib</label>\n      <input type="text" id="c2_nib" placeholder="Nib" value="">\n      <label for="c2_npwp">Npwp</label>\n      <input type="text" id="c2_npwp" placeholder="Npwp" value="">\n      <label for="c2_address">Address</label>\n      <input type="text" id="c2_address" placeholder="Address" value="">\n      <label for="c2_city">City</label>\n      <input type="text" id="c2_city" placeholder="City" value="">\n      <label for="c2_postcode">Postcode</label>\n      <input type="text" id="c2_postcode" placeholder="Postcode" value="">\n      <label for="c2_relation">Relation</label>\n      <input type="text" id="c2_relation" placeholder="Relation" value="">\n      <label for="c2_img_url">Img URL</label>\n      <input type="text" id="c2_img_url" placeholder="Url Image Logo" value="">\n      <a href="#" id="company_add_button" class="btn btn-primary btn-block fw-700">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','38','1748092043');
INSERT INTO `cp5_html_page` VALUES('40','company_edit/:id','','company_edit','Company Edit','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="c1_id" value="">\n  <label for="c1_name">Name</label>\n  <input type="text" id="c1_name" placeholder="Name" value="">\n  <label for="c1_initial">Initial</label>\n  <input type="text" id="c1_initial" placeholder="Initial" value="">\n  <label for="c1_nib">Nib</label>\n  <input type="text" id="c1_nib" placeholder="NIB" value="">\n  <label for="c1_npwp">Npwp</label>\n  <input type="text" id="c1_npwp" placeholder="NPWP" value="">\n  <label for="c1_address">Address</label>\n  <input type="text" id="c1_address" placeholder="Address" value="">\n  <label for="c1_city">City</label>\n  <input type="text" id="c1_city" placeholder="City" value="">\n  <label for="c1_postcode">Postcode</label>\n  <input type="text" id="c1_postcode" placeholder="Postcode" value="">\n  <label for="c1_relation">Relation</label>\n  <input type="text" id="c1_relation" placeholder="Relation" value="">\n  <label for="c1_img_url">Img URL</label>\n  <input type="text" id="c1_img_url" placeholder="Url Image Logo" value="">\n  <a href="#" id="company_edit_button" class="btn btn-primary btn-block fw-700">Save</a>\n</form>\n<div class="centered-text mb-40">\n  <a id="company_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n</div>','','','<div class="page page-company_edit" data-name="company_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Company Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Company Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="c1_id" value="">\n      <label for="c1_name">Name</label>\n      <input type="text" id="c1_name" placeholder="Name" value="">\n      <label for="c1_initial">Initial</label>\n      <input type="text" id="c1_initial" placeholder="Initial" value="">\n      <label for="c1_nib">Nib</label>\n      <input type="text" id="c1_nib" placeholder="NIB" value="">\n      <label for="c1_npwp">Npwp</label>\n      <input type="text" id="c1_npwp" placeholder="NPWP" value="">\n      <label for="c1_address">Address</label>\n      <input type="text" id="c1_address" placeholder="Address" value="">\n      <label for="c1_city">City</label>\n      <input type="text" id="c1_city" placeholder="City" value="">\n      <label for="c1_postcode">Postcode</label>\n      <input type="text" id="c1_postcode" placeholder="Postcode" value="">\n      <label for="c1_relation">Relation</label>\n      <input type="text" id="c1_relation" placeholder="Relation" value="">\n      <label for="c1_img_url">Img URL</label>\n      <input type="text" id="c1_img_url" placeholder="Url Image Logo" value="">\n      <a href="#" id="company_edit_button" class="btn btn-primary btn-block fw-700">Save</a>\n    </form>\n    <div class="centered-text mb-40">\n      <a id="company_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n    </div>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','38','1748475847');
INSERT INTO `cp5_html_page` VALUES('41','product_retur/:id/:c','','product_retur','Product Retur','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="p4_product_id" value="">\n  <input type="hidden" id="p4_retur_cat" value="">\n  <label for="p4_name">Product Name</label>\n  <input type="text" id="p4_name" placeholder="Product Name" value="">\n  <label for="p4_item_code">Item Code</label>\n  <input type="text" id="p4_item_code" placeholder="Item Code" value="">\n  <label for="p4_from_to">From/To</label>\n  <input type="text" id="p4_from_to" placeholder="From/To" value="">\n  <label for="p4_action_at">Action At</label>\n  <input type="datetime-local" id="p4_action_at" placeholder="Action At" value="">\n  <label for="p4_qty">Qty</label>\n  <input type="text" id="p4_qty" placeholder="Qty" value="">\n  <label for="p4_price_per_unit">Price Per Unit</label>\n  <input type="text" id="p4_price_per_unit" placeholder="Price Per Unit" value="">\n  <label for="p4_invoice">Invoice Id</label>\n  <input type="text" id="p4_invoice" placeholder="Invoice Id" value="">\n  <label for="p4_returid">Retur Id</label>\n  <input type="text" id="p4_returid" placeholder="Retur Id" value="">\n  <a href="#" id="product_retur_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-product_retur" data-name="product_retur">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Product Retur</div>\n      <div class="title-large">\n        <div class="title-large-text">Product Retur</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="p4_product_id" value="">\n      <input type="hidden" id="p4_retur_cat" value="">\n      <label for="p4_name">Product Name</label>\n      <input type="text" id="p4_name" placeholder="Product Name" value="">\n      <label for="p4_item_code">Item Code</label>\n      <input type="text" id="p4_item_code" placeholder="Item Code" value="">\n      <label for="p4_from_to">From/To</label>\n      <input type="text" id="p4_from_to" placeholder="From/To" value="">\n      <label for="p4_action_at">Action At</label>\n      <input type="datetime-local" id="p4_action_at" placeholder="Action At" value="">\n      <label for="p4_qty">Qty</label>\n      <input type="text" id="p4_qty" placeholder="Qty" value="">\n      <label for="p4_price_per_unit">Price Per Unit</label>\n      <input type="text" id="p4_price_per_unit" placeholder="Price Per Unit" value="">\n      <label for="p4_invoice">Invoice Id</label>\n      <input type="text" id="p4_invoice" placeholder="Invoice Id" value="">\n      <label for="p4_returid">Retur Id</label>\n      <input type="text" id="p4_returid" placeholder="Retur Id" value="">\n      <a href="#" id="product_retur_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','22','1748602180');
INSERT INTO `cp5_html_page` VALUES('43','product_buy/:id','','product_buy','Product Add Stock','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="p1_product_id" value="">\n  <label for="p1_action_at">Action At</label>\n  <input type="datetime-local" id="p1_action_at" placeholder="Action At" value="">\n  <label for="p1_qty">Qty</label>\n  <input type="text" id="p1_qty" placeholder="Qty" value="">\n  <label for="p1_due_days">Due Days</label>\n  <input type="text" id="p1_due_days" placeholder="Due Days" value="">\n  <label for="p1_pay_from">From</label>\n  <input type="text" id="p1_pay_from" placeholder="From" value="">\n  <label for="p1_invoice">Invoice</label>\n  <input type="text" id="p1_invoice" placeholder="Invoice" value="">\n  <label for="p1_remark">Remark</label>\n  <input type="text" id="p1_remark" placeholder="Remark" value="">\n  <a href="#" id="product_buy_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-product_buy" data-name="product_buy">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Product Add Stock</div>\n      <div class="title-large">\n        <div class="title-large-text">Product Add Stock</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="p1_product_id" value="">\n      <label for="p1_action_at">Action At</label>\n      <input type="datetime-local" id="p1_action_at" placeholder="Action At" value="">\n      <label for="p1_qty">Qty</label>\n      <input type="text" id="p1_qty" placeholder="Qty" value="">\n      <label for="p1_due_days">Due Days</label>\n      <input type="text" id="p1_due_days" placeholder="Due Days" value="">\n      <label for="p1_pay_from">From</label>\n      <input type="text" id="p1_pay_from" placeholder="From" value="">\n      <label for="p1_invoice">Invoice</label>\n      <input type="text" id="p1_invoice" placeholder="Invoice" value="">\n      <label for="p1_remark">Remark</label>\n      <input type="text" id="p1_remark" placeholder="Remark" value="">\n      <a href="#" id="product_buy_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','22','1748564041');
INSERT INTO `cp5_html_page` VALUES('44','product_sell/:id/:c','','product_sell','Product Sell','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="p3_product_id" value="">\n  <input type="hidden" id="p3_cat" value="">\n  <label for="p3_name">Product Name</label>\n  <input type="text" id="p3_name" placeholder="Product Name" value="">\n  <label for="p3_item_code">Item Code</label>\n  <input type="text" id="p3_item_code" placeholder="Item Code" value="">\n  <label for="p3_buyer">Buyer</label>\n  <input type="text" id="p3_buyer" placeholder="Buyer" value="">\n  <label for="p3_sales">Sales</label>\n  <input type="text" id="p3_sales" placeholder="Sales" value="">\n  <label for="p3_action_at">Action At</label>\n  <input type="datetime-local" id="p3_action_at" placeholder="Action At" value="">\n  <label for="p3_qty">Qty</label>\n  <input type="text" id="p3_qty" placeholder="Qty" value="">\n  <label for="p3_price_per_unit">Price Per Unit</label>\n  <input type="text" id="p3_price_per_unit" placeholder="Price Per Unit" value="">\n  <label for="p3_due_days">Due Days</label>\n  <input type="text" id="p3_due_days" placeholder="Due Days" value="">\n  <label for="p3_invoice">Invoice</label>\n  <input type="text" id="p3_invoice" placeholder="Invoice" value="">\n  <a href="#" id="product_sell_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-product_sell" data-name="product_sell">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Product Sell</div>\n      <div class="title-large">\n        <div class="title-large-text">Product Sell</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="p3_product_id" value="">\n      <input type="hidden" id="p3_cat" value="">\n      <label for="p3_name">Product Name</label>\n      <input type="text" id="p3_name" placeholder="Product Name" value="">\n      <label for="p3_item_code">Item Code</label>\n      <input type="text" id="p3_item_code" placeholder="Item Code" value="">\n      <label for="p3_buyer">Buyer</label>\n      <input type="text" id="p3_buyer" placeholder="Buyer" value="">\n      <label for="p3_sales">Sales</label>\n      <input type="text" id="p3_sales" placeholder="Sales" value="">\n      <label for="p3_action_at">Action At</label>\n      <input type="datetime-local" id="p3_action_at" placeholder="Action At" value="">\n      <label for="p3_qty">Qty</label>\n      <input type="text" id="p3_qty" placeholder="Qty" value="">\n      <label for="p3_price_per_unit">Price Per Unit</label>\n      <input type="text" id="p3_price_per_unit" placeholder="Price Per Unit" value="">\n      <label for="p3_due_days">Due Days</label>\n      <input type="text" id="p3_due_days" placeholder="Due Days" value="">\n      <label for="p3_invoice">Invoice</label>\n      <input type="text" id="p3_invoice" placeholder="Invoice" value="">\n      <a href="#" id="product_sell_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','22','1748595615');
INSERT INTO `cp5_html_page` VALUES('45','product_trx/:id','','product_trx','Product History','','','','','','<template>\n  <div class="page page-product_trx" data-name="product_trx">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Product History</div>\n        <div class="title-large">\n          <div class="title-large-text">Product History</div>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="product_trx_content">\n    </div>\n  </div>\n</template>','0','1','3','2','1','1','0','0','1','0','1','componentUrl','','','22','1748565448');
INSERT INTO `cp5_html_page` VALUES('46','product_image/:id','#','product_image','Product Image','Save','','<div class="custom-file-upload profile" id="fileUpload">\n  <input id="a8_id" type="hidden" value="">\n  <input type="file" id="fileuploadInput" name="product_image" />\n  <label for="fileuploadInput">\n  </label>\n  <span>\n    <i class="icon f7-icons">cloud_upload</i>\n    <small>Tap to Upload</small>\n  </span>\n</div>','','','<div class="page page-product_image" data-name="product_image">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Product Image</div>\n      <div class="title-large">\n        <div class="title-large-text">Product Image</div>\n      </div>\n      <div class="right">\n        <a href="/#/" class="link">\n          <i class="icon material-icons"></i>Save</a>\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <div class="custom-file-upload profile" id="fileUpload">\n      <input id="a8_id" type="hidden" value="">\n      <input type="file" id="fileuploadInput" name="product_image" />\n      <label for="fileuploadInput">\n      </label>\n      <span>\n        <i class="icon f7-icons">cloud_upload</i>\n        <small>Tap to Upload</small>\n      </span>\n    </div>\n  </div>\n</div>','1','0','3','1','1','1','0','0','1','0','1','url','save','','22','1747964705');
INSERT INTO `cp5_html_page` VALUES('47','bank/','','bank','Bank Account','','more','','','','<template>\n  <div class="page page-bank" data-name="bank">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link back">\n            <i class="icon f7-icons arrow-back">arrow_left</i>\n          </a>\n        </div>\n        <div class="title">Bank Account</div>\n        <div class="title-large">\n          <div class="title-large-text">Bank Account</div>\n        </div>\n        <div class="right">\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="bank_content">\n    </div>\n  </div>\n</template>','0','1','2','2','1','1','0','0','1','0','1','componentUrl','','','5','1747964606');
INSERT INTO `cp5_html_page` VALUES('48','bank_add','','bank_add','Bank Account Add','','','<form class="mt-40 mb-40">\n  <label for="b3_bank_name">Bank Name</label>\n  <input type="text" id="b3_bank_name" placeholder="Bank Name">\n  <label for="b3_swift_code">Swift Code</label>\n  <input type="text" id="b3_swift_code" placeholder="Swift Code">\n  <label for="b3_account_number">Account Number</label>\n  <input type="text" id="b3_account_number" placeholder="Account Number">\n  <label for="b3_cif">CIF Number</label>\n  <input type="text" id="b3_cif" placeholder="CIF">\n  <label for="b3_account_name">Account Number</label>\n  <input type="text" id="b3_account_name" placeholder="Account Name">\n  <a href="#" id="bank_add_button" class="btn btn-primary fw-700">Save</a>\n</form>','','','<div class="page page-bank_add" data-name="bank_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Bank Account Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Bank Account Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-40">\n      <label for="b3_bank_name">Bank Name</label>\n      <input type="text" id="b3_bank_name" placeholder="Bank Name">\n      <label for="b3_swift_code">Swift Code</label>\n      <input type="text" id="b3_swift_code" placeholder="Swift Code">\n      <label for="b3_account_number">Account Number</label>\n      <input type="text" id="b3_account_number" placeholder="Account Number">\n      <label for="b3_cif">CIF Number</label>\n      <input type="text" id="b3_cif" placeholder="CIF">\n      <label for="b3_account_name">Account Number</label>\n      <input type="text" id="b3_account_name" placeholder="Account Name">\n      <a href="#" id="bank_add_button" class="btn btn-primary fw-700">Save</a>\n    </form>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','47','1747964587');
INSERT INTO `cp5_html_page` VALUES('49','bank_edit/:id','','bank_edit','Bank Account Edit','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="b2_id" value="">\n  <label for="b2_bank_name">Bank Name</label>\n  <input type="text" id="b2_bank_name" placeholder="Bank Name" value="">\n  <label for="b2_swift_code">Swift Code</label>\n  <input type="text" id="b2_swift_code" placeholder="Swift Code" value="">\n  <label for="b2_account_number">Account Number</label>\n  <input type="text" id="b2_account_number" placeholder="Account Number" value="">\n  <label for="b2_cif">CIF Number</label>\n  <input type="text" id="b2_cif" placeholder="CIF" value="">\n  <label for="b2_account_name">Account Number</label>\n  <input type="text" id="b2_account_name" placeholder="Account Name" value="">\n  <label for="b2_currency">Currency</label>\n  <input type="text" id="b2_currency" placeholder="Currency" value="">\n  <a href="#" id="bank_edit_button" class="btn btn-primary btn-block fw-700 bank_edit_button">Save</a>\n</form>\n<div class="centered-text mb-40">\n  <a id="bank_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n</div>','','','<div class="page page-bank_edit" data-name="bank_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Bank Account Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Bank Account Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="b2_id" value="">\n      <label for="b2_bank_name">Bank Name</label>\n      <input type="text" id="b2_bank_name" placeholder="Bank Name" value="">\n      <label for="b2_swift_code">Swift Code</label>\n      <input type="text" id="b2_swift_code" placeholder="Swift Code" value="">\n      <label for="b2_account_number">Account Number</label>\n      <input type="text" id="b2_account_number" placeholder="Account Number" value="">\n      <label for="b2_cif">CIF Number</label>\n      <input type="text" id="b2_cif" placeholder="CIF" value="">\n      <label for="b2_account_name">Account Number</label>\n      <input type="text" id="b2_account_name" placeholder="Account Name" value="">\n      <label for="b2_currency">Currency</label>\n      <input type="text" id="b2_currency" placeholder="Currency" value="">\n      <a href="#" id="bank_edit_button" class="btn btn-primary btn-block fw-700 bank_edit_button">Save</a>\n    </form>\n    <div class="centered-text mb-40">\n      <a id="bank_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n    </div>\n  </div>\n</div>','0','0','3','1','1','1','0','0','1','0','1','url','','','47','1748474765');
INSERT INTO `cp5_html_page` VALUES('50','action_add/','','action_add','Action Add','','','<form class="mt-40 mb-20">\n  <label for="a1_action_at">Action At</label>\n  <input type="datetime-local" id="a1_action_at" placeholder="Action At" value="">\n  <label for="a1_bank">Bank</label>\n  <input type="text" id="a1_bank" placeholder="Bank" value="">\n  <label for="a1_amount">Amount</label>\n  <input type="text" id="a1_amount" placeholder="Amount" value="">\n  <label for="a1_descr">Description</label>\n  <input type="text" id="a1_descr" placeholder="Description" value="">\n  <label for="a1_invoice">Invoice</label>\n  <input type="text" id="a1_invoice" placeholder="Invoice" value="">\n  <label for="a1_pay_to">Pay To</label>\n  <input type="text" id="a1_pay_to" placeholder="Pay To" value="">\n  <label for="a1_pay_from">Pay From</label>\n  <input type="text" id="a1_pay_from" placeholder="Pay From" value="">\n  <label for="a1_reff_trx_id">Reff Trx Id</label>\n  <input type="text" id="a1_reff_trx_id" placeholder="Reff Trx Id" value="">\n  <label for="a1_reff_sales_id">Reff Sales Id</label>\n  <input type="text" id="a1_reff_sales_id" placeholder="Reff Sales Id" value="">\n  <a href="#" id="action_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-action_add" data-name="action_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Action Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Action Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <label for="a1_action_at">Action At</label>\n      <input type="datetime-local" id="a1_action_at" placeholder="Action At" value="">\n      <label for="a1_bank">Bank</label>\n      <input type="text" id="a1_bank" placeholder="Bank" value="">\n      <label for="a1_amount">Amount</label>\n      <input type="text" id="a1_amount" placeholder="Amount" value="">\n      <label for="a1_descr">Description</label>\n      <input type="text" id="a1_descr" placeholder="Description" value="">\n      <label for="a1_invoice">Invoice</label>\n      <input type="text" id="a1_invoice" placeholder="Invoice" value="">\n      <label for="a1_pay_to">Pay To</label>\n      <input type="text" id="a1_pay_to" placeholder="Pay To" value="">\n      <label for="a1_pay_from">Pay From</label>\n      <input type="text" id="a1_pay_from" placeholder="Pay From" value="">\n      <label for="a1_reff_trx_id">Reff Trx Id</label>\n      <input type="text" id="a1_reff_trx_id" placeholder="Reff Trx Id" value="">\n      <label for="a1_reff_sales_id">Reff Sales Id</label>\n      <input type="text" id="a1_reff_sales_id" placeholder="Reff Sales Id" value="">\n      <a href="#" id="action_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','0','1','url','','','25','1748701980');
INSERT INTO `cp5_html_page` VALUES('52','action_edit/:id','','action_edit','Action Edit','','','<p id="a2_topmenu" class="mt-20 grid grid-cols-2 grid-gap grid-buttons-demo"></p>\n<form class="mt-20 mb-20">\n  <input type="hidden" id="a2_id" value="">\n  <label for="a2_descr">Description</label>\n  <textarea placeholder="Description" id="a2_descr">\n  </textarea>\n  <label for="a2_invoice">Invoice</label>\n  <input type="text" id="a2_invoice" placeholder="Invoice" value="">\n  <label for="a2_action_at">Action At</label>\n  <input type="text" id="a2_action_at" disabled placeholder="Action At" value="">\n  <label for="a2_amount">Amount</label>\n  <input type="text" id="a2_amount" disabled placeholder="Amount" value="">\n  <label for="a2_pay_to">Pay To</label>\n  <input type="text" id="a2_pay_to" disabled placeholder="Pay To" value="">\n  <label for="a2_pay_from">Pay From</label>\n  <input type="text" id="a2_pay_from" disabled placeholder="Pay From" value="">\n  <a href="#" id="action_edit_button" class="btn btn-primary btn-block fw-700 mb-10">Save</a>\n</form>\n<div class="centered-text mb-40">\n  <a id="action_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n</div>','','','<div class="page page-action_edit" data-name="action_edit">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Action Edit</div>\n      <div class="title-large">\n        <div class="title-large-text">Action Edit</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <p id="a2_topmenu" class="mt-20 grid grid-cols-2 grid-gap grid-buttons-demo"></p>\n    <form class="mt-20 mb-20">\n      <input type="hidden" id="a2_id" value="">\n      <label for="a2_descr">Description</label>\n      <textarea placeholder="Description" id="a2_descr">\n      </textarea>\n      <label for="a2_invoice">Invoice</label>\n      <input type="text" id="a2_invoice" placeholder="Invoice" value="">\n      <label for="a2_action_at">Action At</label>\n      <input type="text" id="a2_action_at" disabled placeholder="Action At" value="">\n      <label for="a2_amount">Amount</label>\n      <input type="text" id="a2_amount" disabled placeholder="Amount" value="">\n      <label for="a2_pay_to">Pay To</label>\n      <input type="text" id="a2_pay_to" disabled placeholder="Pay To" value="">\n      <label for="a2_pay_from">Pay From</label>\n      <input type="text" id="a2_pay_from" disabled placeholder="Pay From" value="">\n      <a href="#" id="action_edit_button" class="btn btn-primary btn-block fw-700 mb-10">Save</a>\n    </form>\n    <div class="centered-text mb-40">\n      <a id="action_delete_button" class="btn btn-sm btn-danger fw-700">Delete</a>\n    </div>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','0','1','url','','','25','1748926672');
INSERT INTO `cp5_html_page` VALUES('53','image_upload/:cat/:id','','image_upload','Edit Photo','','','','','','<div class="page page-image_upload" data-name="image_upload">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Edit Photo</div>\n      <div class="title-large">\n        <div class="title-large-text">Edit Photo</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content" id="image_upload_content">\n  </div>\n</div>','0','1','3','1','1','1','0','0','1','0','1','url','','','0','1748684953');
INSERT INTO `cp5_html_page` VALUES('54','account_edit/-','','account_edit-','Account Edit','','','','','','','0','0','3','1','0','1','0','0','1','0','1','url','','','2','1748143179');
INSERT INTO `cp5_html_page` VALUES('55','action_out_add/:id','','action_out_add','Add Out','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="a3_credit" value="11101">\n  <input type="hidden" id="a3_bank" value="1">\n  <input type="hidden" id="a3_cat" value="2">\n  <input type="hidden" id="a3_inout" value="2">\n  <label for="a3_action_at">Action At</label>\n  <input type="datetime-local" id="a3_action_at" placeholder="Action At" value="">\n  <label for="a3_amount">Amount</label>\n  <input type="text" id="a3_amount" placeholder="Amount" value="">\n  <label for="a3_pay_to">Pay To</label>\n  <input type="text" id="a3_pay_to" placeholder="Pay To" value="">\n  <label for="a3_invoice">Invoice</label>\n  <input type="text" id="a3_invoice" placeholder="Invoice" value="">\n  <label for="a3_descr">Description</label>\n  <input type="text" id="a3_descr" placeholder="Description" value="">\n  <label for="credit">Credit</label>\n  <input type="text" id="credit" value="">\n  <label for="credit">Debit</label>\n  <div id="a3_debit">\n  </div>\n  <a href="#" id="action_out_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-action_out_add" data-name="action_out_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Add Out</div>\n      <div class="title-large">\n        <div class="title-large-text">Add Out</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="a3_credit" value="11101">\n      <input type="hidden" id="a3_bank" value="1">\n      <input type="hidden" id="a3_cat" value="2">\n      <input type="hidden" id="a3_inout" value="2">\n      <label for="a3_action_at">Action At</label>\n      <input type="datetime-local" id="a3_action_at" placeholder="Action At" value="">\n      <label for="a3_amount">Amount</label>\n      <input type="text" id="a3_amount" placeholder="Amount" value="">\n      <label for="a3_pay_to">Pay To</label>\n      <input type="text" id="a3_pay_to" placeholder="Pay To" value="">\n      <label for="a3_invoice">Invoice</label>\n      <input type="text" id="a3_invoice" placeholder="Invoice" value="">\n      <label for="a3_descr">Description</label>\n      <input type="text" id="a3_descr" placeholder="Description" value="">\n      <label for="credit">Credit</label>\n      <input type="text" id="credit" value="">\n      <label for="credit">Debit</label>\n      <div id="a3_debit">\n      </div>\n      <a href="#" id="action_out_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','0','1','url','','','25','1748989999');
INSERT INTO `cp5_html_page` VALUES('56','transaction_add/:id','','transaction_add','Transaction Add','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="t1_action_id" value="">\n  <input type="hidden" id="t1_action_at" value="">\n  <label for="t1_debit">Debit</label>\n  <div id="t1_debit">\n  </div>\n  <label for="t1_credit">Credit</label>\n  <div id="t1_credit">\n  </div>\n  <a href="#" id="transaction_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-transaction_add" data-name="transaction_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content" id="transaction_add_content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="t1_action_id" value="">\n      <input type="hidden" id="t1_action_at" value="">\n      <label for="t1_debit">Debit</label>\n      <div id="t1_debit">\n      </div>\n      <label for="t1_credit">Credit</label>\n      <div id="t1_credit">\n      </div>\n      <a href="#" id="transaction_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','1','3','1','0','1','0','0','1','0','1','url','','','26','1748686998');
INSERT INTO `cp5_html_page` VALUES('57','action_in_add/:id','','action_in_add','Add In','','','<form class="mt-40 mb-20">\n  <input type="hidden" id="a4_debit" value="11101">\n  <input type="hidden" id="a4_bank" value="1">\n  <input type="hidden" id="a4_cat" value="1">\n  <input type="hidden" id="a4_inout" value="1">\n  <label for="a4_action_at">Action At</label>\n  <input type="datetime-local" id="a4_action_at" placeholder="Action At" value="">\n  <label for="a4_amount">Amount</label>\n  <input type="text" id="a4_amount" placeholder="Amount" value="">\n  <label for="a4_pay_to">Pay From</label>\n  <input type="text" id="a4_pay_from" placeholder="Pay From" value="">\n  <label for="a4_invoice">Invoice</label>\n  <input type="text" id="a4_invoice" placeholder="Invoice" value="">\n  <label for="a4_descr">Description</label>\n  <input type="text" id="a4_descr" placeholder="Description" value="">\n  <label for="debit">Debit</label>\n  <input type="text" id="debit" value="">\n  <label for="credit">Credit</label>\n  <div id="a4_credit">\n  </div>\n  <a href="#" id="action_in_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n</form>','','','<div class="page page-action_in_add" data-name="action_in_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Add In</div>\n      <div class="title-large">\n        <div class="title-large-text">Add In</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n    <form class="mt-40 mb-20">\n      <input type="hidden" id="a4_debit" value="11101">\n      <input type="hidden" id="a4_bank" value="1">\n      <input type="hidden" id="a4_cat" value="1">\n      <input type="hidden" id="a4_inout" value="1">\n      <label for="a4_action_at">Action At</label>\n      <input type="datetime-local" id="a4_action_at" placeholder="Action At" value="">\n      <label for="a4_amount">Amount</label>\n      <input type="text" id="a4_amount" placeholder="Amount" value="">\n      <label for="a4_pay_to">Pay From</label>\n      <input type="text" id="a4_pay_from" placeholder="Pay From" value="">\n      <label for="a4_invoice">Invoice</label>\n      <input type="text" id="a4_invoice" placeholder="Invoice" value="">\n      <label for="a4_descr">Description</label>\n      <input type="text" id="a4_descr" placeholder="Description" value="">\n      <label for="debit">Debit</label>\n      <input type="text" id="debit" value="">\n      <label for="credit">Credit</label>\n      <div id="a4_credit">\n      </div>\n      <a href="#" id="action_in_add_button" class="btn btn-primary btn-block fw-700 mb-30">Save</a>\n    </form>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','0','1','url','','','25','1748992714');
INSERT INTO `cp5_html_page` VALUES('58','receivable_add','','receivable_add','Receivable Add','','','','','','<div class="page page-receivable_add" data-name="receivable_add">\n  <div class="navbar navbar-large">\n    <div class="navbar-bg">\n    </div>\n    <div class="navbar-inner">\n      <div class="left">\n        <a href="#" class="link back">\n          <i class="icon f7-icons arrow-back">arrow_left</i>\n        </a>\n      </div>\n      <div class="title">Receivable Add</div>\n      <div class="title-large">\n        <div class="title-large-text">Receivable Add</div>\n      </div>\n      <div class="right">\n      </div>\n    </div>\n  </div>\n  <div class="page-content">\n  </div>\n</div>','0','0','1','1','1','1','0','0','1','0','1','url','','','0','1748731883');


CREATE TABLE `cp5_html_tab` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `path` varchar(44) DEFAULT NULL,
  `path_right` varchar(44) DEFAULT NULL,
  `name` varchar(44) DEFAULT NULL,
  `title` varchar(44) DEFAULT NULL,
  `title_right` varchar(44) DEFAULT NULL,
  `custom` text DEFAULT NULL,
  `menu` text DEFAULT NULL,
  `body` text DEFAULT NULL,
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `content_id` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=yes,0=no',
  `level` tinyint(4) NOT NULL DEFAULT 0,
  `page_type` tinyint(4) NOT NULL COMMENT '1=url,2=componentUrl',
  `view_title` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=yes,0=no',
  `view_navbar` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=yes,0=no',
  `view_left_panel` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=yes,0=no',
  `searchbar` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=yes,0=no',
  `view_back` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1=yes,0=no',
  `seq` tinyint(4) NOT NULL DEFAULT 0,
  `is_active` tinyint(4) NOT NULL DEFAULT 0,
  `url_type` varchar(20) DEFAULT NULL COMMENT 'url,componentUrl',
  `icon_right` varchar(20) DEFAULT NULL,
  `icon` varchar(20) DEFAULT NULL,
  `parent` int(11) NOT NULL DEFAULT 0,
  `update_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `id_folder_slug` (`id`,`path`(20))
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp5_html_tab` VALUES('1','header','','header','','','<!DOCTYPE html>\n<html lang="en">\n\n<head>\n  <meta charset="utf-8">\n  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, viewport-fit=cover">\n  <meta name="mobile-web-app-capable" content="yes">\n  <meta name="apple-mobile-web-app-status-bar-style" content="default">\n  <meta name="theme-color" content="#ffffff">\n  <title>fin5</title>\n  <link rel="stylesheet" href="css/framework7-bundle.css">\n  <link rel="stylesheet" href="css/framework7-icons.css">\n  <link rel="stylesheet" href="css/material-icon.css">\n  <link rel="stylesheet" href="css/style.css?v=10">\n  <link rel="stylesheet" href="css/custom.css">\n  <link rel="stylesheet" href="css/margin.css">\n</head>\n\n<body class="color-blue">\n  <div id="app">\n    <div class="panel panel-left panel-push panel-init">\n      <div class="profile-header">\n        <div class="profile-image">\n          <img src="https://yui.xioyuna.com/template/img/avatars/1.jpg" alt="">\n          <div class="profile-online bg-color-green">\n          </div>\n        </div>\n        <div class="profile-name">Noah Campbell</div>\n        <div class="profile-subtitle">\n        </div>\n      </div>\n      <div class="list links-list panel-links">\n        <ul>\n          <li>\n            <a href="/profile/" class="panel-close">\n              <i class="icon f7-icons">person_crop_circle_fill</i>My Profile</a>\n          </li>\n          <li>\n            <a href="/notifications/" class="panel-close">\n              <i class="icon f7-icons">bell_fill</i>Notifications</a>\n          </li>\n          <li>\n            <a href="/settings/" class="panel-close">\n              <i class="icon f7-icons">gear_alt_fill</i>Settings</a>\n          </li>\n          <li>\n            <a href="/messages/" class="panel-close">\n              <i class="icon f7-icons">bubble_left_bubble_right_fill</i>Messages</a>\n          </li>\n          <li>\n            <a href="/search/" class="panel-close">\n              <i class="icon f7-icons">search_circle_fill</i>Search</a>\n          </li>\n          <li>\n            <a href="/help-center/" class="panel-close">\n              <i class="icon f7-icons">question_square_fill</i>Help Center</a>\n          </li>\n        </ul>\n      </div>\n      <div class="panel-logout">\n        <a href="#" class="link text-color-red">Log Out\n          <i class="icon f7-icons arrow-back text-color-red">square_arrow_right</i>\n        </a>\n      </div>\n    </div>\n    <div class="views tabs">','','<!DOCTYPE html>\n<html lang="en">\n\n<head>\n  <meta charset="utf-8">\n  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, viewport-fit=cover">\n  <meta name="mobile-web-app-capable" content="yes">\n  <meta name="apple-mobile-web-app-status-bar-style" content="default">\n  <meta name="theme-color" content="#ffffff">\n  <title>fin5</title>\n  <link rel="stylesheet" href="css/framework7-bundle.css">\n  <link rel="stylesheet" href="css/framework7-icons.css">\n  <link rel="stylesheet" href="css/material-icon.css">\n  <link rel="stylesheet" href="css/style.css?v=10">\n  <link rel="stylesheet" href="css/custom.css">\n  <link rel="stylesheet" href="css/margin.css">\n</head>\n\n<body class="color-blue">\n  <div id="app">\n    <div class="panel panel-left panel-push panel-init">\n      <div class="profile-header">\n        <div class="profile-image">\n          <img src="https://yui.xioyuna.com/template/img/avatars/1.jpg" alt="">\n          <div class="profile-online bg-color-green">\n          </div>\n        </div>\n        <div class="profile-name">Noah Campbell</div>\n        <div class="profile-subtitle">\n        </div>\n      </div>\n      <div class="list links-list panel-links">\n        <ul>\n          <li>\n            <a href="/profile/" class="panel-close">\n              <i class="icon f7-icons">person_crop_circle_fill</i>My Profile</a>\n          </li>\n          <li>\n            <a href="/notifications/" class="panel-close">\n              <i class="icon f7-icons">bell_fill</i>Notifications</a>\n          </li>\n          <li>\n            <a href="/settings/" class="panel-close">\n              <i class="icon f7-icons">gear_alt_fill</i>Settings</a>\n          </li>\n          <li>\n            <a href="/messages/" class="panel-close">\n              <i class="icon f7-icons">bubble_left_bubble_right_fill</i>Messages</a>\n          </li>\n          <li>\n            <a href="/search/" class="panel-close">\n              <i class="icon f7-icons">search_circle_fill</i>Search</a>\n          </li>\n          <li>\n            <a href="/help-center/" class="panel-close">\n              <i class="icon f7-icons">question_square_fill</i>Help Center</a>\n          </li>\n        </ul>\n      </div>\n      <div class="panel-logout">\n        <a href="#" class="link text-color-red">Log Out\n          <i class="icon f7-icons arrow-back text-color-red">square_arrow_right</i>\n        </a>\n      </div>\n    </div>\n    <div class="views tabs">','0','0','1','2','0','0','0','0','1','1','0','','','','0','1747919285');
INSERT INTO `cp5_html_tab` VALUES('2','footer','','footer','','','<div class="toolbar tabbar tabbar-icons toolbar-bottom">\n  <div class="toolbar-inner">\n    <a href="#tab-home" class="tab-link">\n      <i class="icon f7-icons">house</i>\n      <span class="tabbar-label">Home</span>\n    </a>\n    <a href="#tab-product" class="tab-link">\n      <i class="icon f7-icons">rocket</i>\n      <span class="tabbar-label">Products</span>\n    </a>\n    <a href="#tab-add" class="tab-link">\n      <i class="icon f7-icons">plus_app</i>\n      <span class="tabbar-label">Add</span>\n    </a>\n    <a href="#tab-account" class="tab-link">\n      <i class="icon f7-icons">person</i>\n      <span class="tabbar-label">Account</span>\n    </a>\n    <a href="#tab-more" class="tab-link">\n      <i class="icon f7-icons">layers_alt</i>\n      <span class="tabbar-label">More</span>\n    </a>\n  </div>\n</div>\n</div>\n</div>\n<script src="js/framework7-bundle.min.js"></script>\n<script src="js/jquery-3.5.1.min.js"></script>\n<script src="js/routes.js"></script>\n<script src="js/app.js"></script>\n<script src="js/utils.js"></script>\n</body>\n\n</html>','','<div class="toolbar tabbar tabbar-icons toolbar-bottom">\n  <div class="toolbar-inner">\n    <a href="#tab-home" class="tab-link">\n      <i class="icon f7-icons">house</i>\n      <span class="tabbar-label">Home</span>\n    </a>\n    <a href="#tab-product" class="tab-link">\n      <i class="icon f7-icons">rocket</i>\n      <span class="tabbar-label">Products</span>\n    </a>\n    <a href="#tab-add" class="tab-link">\n      <i class="icon f7-icons">plus_app</i>\n      <span class="tabbar-label">Add</span>\n    </a>\n    <a href="#tab-account" class="tab-link">\n      <i class="icon f7-icons">person</i>\n      <span class="tabbar-label">Account</span>\n    </a>\n    <a href="#tab-more" class="tab-link">\n      <i class="icon f7-icons">layers_alt</i>\n      <span class="tabbar-label">More</span>\n    </a>\n  </div>\n</div>\n</div>\n</div>\n<script src="js/framework7-bundle.min.js"></script>\n<script src="js/jquery-3.5.1.min.js"></script>\n<script src="js/routes.js"></script>\n<script src="js/app.js"></script>\n<script src="js/utils.js"></script>\n</body>\n\n</html>','0','0','1','2','0','0','0','0','1','99','0','','','','0','1748305614');
INSERT INTO `cp5_html_tab` VALUES('3','add','','add','Add','','<div id="add_menu">\n</div>\n<div class="light-gray-title">Other Data</div>\n<div class="grid grid-cols-3 grid-gap grid-demo">\n  <a href="/inventory_add/" class="link">\n    <div>\n      <i class="icon f7-icons">building_2_crop_circle</i>\n      <div class="movie-block-name">Add</div>\n      <div class="movie-block-text">Inventory</div>\n    </div>\n  </a>\n  <a href="/product_add/" class="link">\n    <div>\n      <i class="icon f7-icons">money_euro_circle_fill</i>\n      <div class="movie-block-name">Add</div>\n      <div class="movie-block-text">Product</div>\n    </div>\n  </a>\n  <a href="/address_add/" class="link">\n    <div>\n      <i class="icon f7-icons">umbrella</i>\n      <div class="movie-block-name">Add</div>\n      <div class="movie-block-text">Address</div>\n    </div>\n  </a>\n  <a href="/bank_add/" class="link">\n    <div>\n      <i class="icon f7-icons">archivebox</i>\n      <div class="movie-block-name">Add</div>\n      <div class="movie-block-text">Bank</div>\n    </div>\n  </a>\n  <a href="/company_add/" class="link">\n    <div>\n      <i class="icon f7-icons">pause_fill</i>\n      <div class="movie-block-name">Add</div>\n      <div class="movie-block-text">Company</div>\n    </div>\n  </a>\n  <a href="/person_add/" class="link">\n    <div>\n      <i class="icon f7-icons">f_cursive_circle</i>\n      <div class="movie-block-name">Add</div>\n      <div class="movie-block-text">Person</div>\n    </div>\n  </a>\n</div>','','<div id="tab-add" class="tab tab-add view view-init">\n  <div class="page page-tab_add" data-name="tab_add">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link icon-only switch-theme">\n            <i class="icon f7-icons">moon_stars</i>\n          </a>\n        </div>\n        <div class="title">Add</div>\n        <div class="title-large">\n          <div class="title-large-text">Add</div>\n        </div>\n        <div class="right">\n          <a href="#" class="link icon-only reload_data">\n            <i class="icon f7-icons">arrow_2_circlepath_circle_fill</i>\n          </a>\n          <a id="signout" class="link icon-only text-color-red logout">\n            <i class="icon f7-icons">square_arrow_right</i>\n          </a>\n        </div>\n      </div>\n    </div>\n    <div class="page-content">\n      <div id="add_menu">\n      </div>\n      <div class="light-gray-title">Other Data</div>\n      <div class="grid grid-cols-3 grid-gap grid-demo">\n        <a href="/inventory_add/" class="link">\n          <div>\n            <i class="icon f7-icons">building_2_crop_circle</i>\n            <div class="movie-block-name">Add</div>\n            <div class="movie-block-text">Inventory</div>\n          </div>\n        </a>\n        <a href="/product_add/" class="link">\n          <div>\n            <i class="icon f7-icons">money_euro_circle_fill</i>\n            <div class="movie-block-name">Add</div>\n            <div class="movie-block-text">Product</div>\n          </div>\n        </a>\n        <a href="/address_add/" class="link">\n          <div>\n            <i class="icon f7-icons">umbrella</i>\n            <div class="movie-block-name">Add</div>\n            <div class="movie-block-text">Address</div>\n          </div>\n        </a>\n        <a href="/bank_add/" class="link">\n          <div>\n            <i class="icon f7-icons">archivebox</i>\n            <div class="movie-block-name">Add</div>\n            <div class="movie-block-text">Bank</div>\n          </div>\n        </a>\n        <a href="/company_add/" class="link">\n          <div>\n            <i class="icon f7-icons">pause_fill</i>\n            <div class="movie-block-name">Add</div>\n            <div class="movie-block-text">Company</div>\n          </div>\n        </a>\n        <a href="/person_add/" class="link">\n          <div>\n            <i class="icon f7-icons">f_cursive_circle</i>\n            <div class="movie-block-name">Add</div>\n            <div class="movie-block-text">Person</div>\n          </div>\n        </a>\n      </div>\n    </div>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','4','0','','','','1','1748992400');
INSERT INTO `cp5_html_tab` VALUES('4','account','','account','Account','','<div class="profile-header">\n  <div id="user_img" class="profile-image">\n  </div>\n  <div id="user_name" class="profile-name">\n  </div>\n  <div id="user_subtitle" class="profile-subtitle">\n  </div>\n</div>\n<div class="profile-buttons">\n  <a href="#" class="link contact-button">\n    <i class="icon f7-icons arrow-back">logo_instagram</i>\n  </a>\n  <a href="#" class="link contact-button">\n    <i class="icon f7-icons arrow-back">logo_twitter</i>\n  </a>\n  <a href="#" class="link contact-button">\n    <i class="icon f7-icons arrow-back">logo_facebook</i>\n  </a>\n  <a href="#" class="button button-fill button-round color-dark button-icon-left author-follow">\n    <i class="icon f7-icons">plus</i>Follow</a>\n</div>\n<div id="user_menu" class="list links-list colored-icons-list list-outline list-dividers full-width">\n</div>','','<div id="tab-account" class="tab tab-account view view-init">\n  <div class="page page-tab_account" data-name="tab_account">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link icon-only switch-theme">\n            <i class="icon f7-icons">moon_stars</i>\n          </a>\n        </div>\n        <div class="title">Account</div>\n        <div class="title-large">\n          <div class="title-large-text">Account</div>\n        </div>\n        <div class="right">\n          <a href="#" class="link icon-only reload_data">\n            <i class="icon f7-icons">arrow_2_circlepath_circle_fill</i>\n          </a>\n          <a id="signout" class="link icon-only text-color-red logout">\n            <i class="icon f7-icons">square_arrow_right</i>\n          </a>\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="account_tab_content">\n      <div class="profile-header">\n        <div id="user_img" class="profile-image">\n        </div>\n        <div id="user_name" class="profile-name">\n        </div>\n        <div id="user_subtitle" class="profile-subtitle">\n        </div>\n      </div>\n      <div class="profile-buttons">\n        <a href="#" class="link contact-button">\n          <i class="icon f7-icons arrow-back">logo_instagram</i>\n        </a>\n        <a href="#" class="link contact-button">\n          <i class="icon f7-icons arrow-back">logo_twitter</i>\n        </a>\n        <a href="#" class="link contact-button">\n          <i class="icon f7-icons arrow-back">logo_facebook</i>\n        </a>\n        <a href="#" class="button button-fill button-round color-dark button-icon-left author-follow">\n          <i class="icon f7-icons">plus</i>Follow</a>\n      </div>\n      <div id="user_menu" class="list links-list colored-icons-list list-outline list-dividers full-width">\n      </div>\n    </div>\n  </div>\n</div>','0','1','2','1','1','1','0','0','1','5','0','','','','1','1748992396');
INSERT INTO `cp5_html_tab` VALUES('5','more','','more','More Info','','<div class="light-gray-title">Financial</div>\n<div class="list links-list colored-icons-list list-outline list-dividers full-width">\n  <ul>\n    <li>\n      <a href="/action_list/">\n        <div class="colored-icon green">\n          <i class="icon f7-icons">music_albums_fill</i>\n        </div>Action</a>\n    </li>\n    <li>\n      <a href="/bank/">\n        <div class="colored-icon green">\n          <i class="icon f7-icons">speaker_slash_fill_rtl</i>\n        </div>Bank Account</a>\n    </li>\n    <li>\n      <a href="/company/">\n        <div class="colored-icon green">\n          <i class="icon f7-icons">rectangle_grid_1x2</i>\n        </div>Company</a>\n    </li>\n    <li>\n      <a href="/inventory/">\n        <div class="colored-icon green">\n          <i class="icon f7-icons">circle_grid_3x3_fill</i>\n        </div>Inventory</a>\n    </li>\n    <li>\n      <a href="/person/">\n        <div class="colored-icon green">\n          <i class="icon f7-icons">sun_dust</i>\n        </div>Person</a>\n    </li>\n    <li>\n      <a href="/sales/">\n        <div class="colored-icon green">\n          <i class="icon f7-icons">bolt_circle_fill</i>\n        </div>Sales</a>\n    </li>\n  </ul>\n</div>\n<div class="light-gray-title">Application</div>\n<div class="list links-list colored-icons-list list-outline list-dividers full-width">\n  <ul>\n    <li>\n      <a href="/about_us/">\n        <div class="colored-icon red">\n          <i class="icon f7-icons">music_albums_fill</i>\n        </div>About Us</a>\n    </li>\n    <li>\n      <a href="/faq/">\n        <div class="colored-icon red">\n          <i class="icon f7-icons">arrow_up_to_line_alt</i>\n        </div>FAQ</a>\n    </li>\n    <li>\n      <a href="/icons/">\n        <div class="colored-icon red">\n          <i class="icon f7-icons">checkmark_square</i>\n        </div>Icons F7</a>\n    </li>\n    <li>\n      <a href="/settings/">\n        <div class="colored-icon red">\n          <i class="icon f7-icons">flag</i>\n        </div>Settings</a>\n    </li>\n    <li>\n      <a href="/terms/">\n        <div class="colored-icon red">\n          <i class="icon f7-icons">light_min</i>\n        </div>Term & Condition</a>\n    </li>\n  </ul>\n</div>','','<div id="tab-more" class="tab tab-more view view-init">\n  <div class="page page-tab_more" data-name="tab_more">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link icon-only switch-theme">\n            <i class="icon f7-icons">moon_stars</i>\n          </a>\n        </div>\n        <div class="title">More Info</div>\n        <div class="title-large">\n          <div class="title-large-text">More Info</div>\n        </div>\n        <div class="right">\n          <a href="#" class="link icon-only reload_data">\n            <i class="icon f7-icons">arrow_2_circlepath_circle_fill</i>\n          </a>\n          <a id="signout" class="link icon-only text-color-red logout">\n            <i class="icon f7-icons">square_arrow_right</i>\n          </a>\n        </div>\n      </div>\n    </div>\n    <div class="page-content">\n      <div class="light-gray-title">Financial</div>\n      <div class="list links-list colored-icons-list list-outline list-dividers full-width">\n        <ul>\n          <li>\n            <a href="/action_list/">\n              <div class="colored-icon green">\n                <i class="icon f7-icons">music_albums_fill</i>\n              </div>Action</a>\n          </li>\n          <li>\n            <a href="/bank/">\n              <div class="colored-icon green">\n                <i class="icon f7-icons">speaker_slash_fill_rtl</i>\n              </div>Bank Account</a>\n          </li>\n          <li>\n            <a href="/company/">\n              <div class="colored-icon green">\n                <i class="icon f7-icons">rectangle_grid_1x2</i>\n              </div>Company</a>\n          </li>\n          <li>\n            <a href="/inventory/">\n              <div class="colored-icon green">\n                <i class="icon f7-icons">circle_grid_3x3_fill</i>\n              </div>Inventory</a>\n          </li>\n          <li>\n            <a href="/person/">\n              <div class="colored-icon green">\n                <i class="icon f7-icons">sun_dust</i>\n              </div>Person</a>\n          </li>\n          <li>\n            <a href="/sales/">\n              <div class="colored-icon green">\n                <i class="icon f7-icons">bolt_circle_fill</i>\n              </div>Sales</a>\n          </li>\n        </ul>\n      </div>\n      <div class="light-gray-title">Application</div>\n      <div class="list links-list colored-icons-list list-outline list-dividers full-width">\n        <ul>\n          <li>\n            <a href="/about_us/">\n              <div class="colored-icon red">\n                <i class="icon f7-icons">music_albums_fill</i>\n              </div>About Us</a>\n          </li>\n          <li>\n            <a href="/faq/">\n              <div class="colored-icon red">\n                <i class="icon f7-icons">arrow_up_to_line_alt</i>\n              </div>FAQ</a>\n          </li>\n          <li>\n            <a href="/icons/">\n              <div class="colored-icon red">\n                <i class="icon f7-icons">checkmark_square</i>\n              </div>Icons F7</a>\n          </li>\n          <li>\n            <a href="/settings/">\n              <div class="colored-icon red">\n                <i class="icon f7-icons">flag</i>\n              </div>Settings</a>\n          </li>\n          <li>\n            <a href="/terms/">\n              <div class="colored-icon red">\n                <i class="icon f7-icons">light_min</i>\n              </div>Term & Condition</a>\n          </li>\n        </ul>\n      </div>\n    </div>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','6','0','','','','1','1748992412');
INSERT INTO `cp5_html_tab` VALUES('6','home','','home','Home','','','','<div id="tab-home" class="tab tab-home view view-init view-main tab-active">\n  <div class="page page-tab_home" data-name="tab_home">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link icon-only switch-theme">\n            <i class="icon f7-icons">moon_stars</i>\n          </a>\n        </div>\n        <div class="title">Home</div>\n        <div class="title-large">\n          <div class="title-large-text">Home</div>\n        </div>\n        <div class="right">\n          <a href="#" class="link icon-only reload_data">\n            <i class="icon f7-icons">arrow_2_circlepath_circle_fill</i>\n          </a>\n          <a id="signout" class="link icon-only text-color-red logout">\n            <i class="icon f7-icons">square_arrow_right</i>\n          </a>\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="home_tab_content">\n    </div>\n  </div>\n</div>','0','1','2','1','1','1','0','0','1','2','1','','','','1','1748992404');
INSERT INTO `cp5_html_tab` VALUES('7','product','','product','Product','','','','<div id="tab-product" class="tab tab-product view view-init">\n  <div class="page page-tab_product" data-name="tab_product">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link icon-only switch-theme">\n            <i class="icon f7-icons">moon_stars</i>\n          </a>\n        </div>\n        <div class="title">Product</div>\n        <div class="title-large">\n          <div class="title-large-text">Product</div>\n        </div>\n        <div class="right">\n          <a href="#" class="link icon-only reload_data">\n            <i class="icon f7-icons">arrow_2_circlepath_circle_fill</i>\n          </a>\n          <a id="signout" class="link icon-only text-color-red logout">\n            <i class="icon f7-icons">square_arrow_right</i>\n          </a>\n        </div>\n      </div>\n    </div>\n    <div class="page-content" id="product_tab_content">\n    </div>\n  </div>\n</div>','0','1','2','1','1','1','0','0','1','3','0','','','','1','1748996311');
INSERT INTO `cp5_html_tab` VALUES('8','settings','','settings','Settings','','','','<div id="tab-settings" class="tab tab-settings view view-init">\n  <div class="page page-tab_settings" data-name="tab_settings">\n    <div class="navbar navbar-large">\n      <div class="navbar-bg">\n      </div>\n      <div class="navbar-inner">\n        <div class="left">\n          <a href="#" class="link icon-only switch-theme">\n            <i class="icon f7-icons">moon_stars</i>\n          </a>\n        </div>\n        <div class="title">Settings</div>\n        <div class="title-large">\n          <div class="title-large-text">Settings</div>\n        </div>\n        <div class="right">\n          <a href="/reload/" class="link icon-only">\n            <i class="icon f7-icons">arrow_2_circlepath_circle_fill</i>\n          </a>\n          <a id="signout" class="link icon-only text-color-red logout">\n            <i class="icon f7-icons">square_arrow_right</i>\n          </a>\n        </div>\n      </div>\n    </div>\n    <div class="page-content">\n    </div>\n  </div>\n</div>','0','0','2','1','1','1','0','0','1','8','0','','','','1','1748990988');


CREATE TABLE `cp5_scriptext` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `modul` varchar(99) DEFAULT NULL,
  `name` varchar(99) DEFAULT NULL,
  `body` text DEFAULT NULL,
  `is` varchar(10) DEFAULT '0',
  `del` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1=delete',
  `level` tinyint(4) NOT NULL DEFAULT 0,
  `parent` int(11) NOT NULL DEFAULT 0,
  `update_at` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `folder_name` (`modul`(20),`name`),
  KEY `id_folder_slug` (`id`,`modul`(20)),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=246 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `cp5_scriptext` VALUES('1','app','app','// Dom7
\nvar $$ = Dom7;
\n// Theme
\nvar app = new Framework7({
\n  root: \'#app\', // App root element
\n  id: \'com.app.f5\',
\n  el: \'#app\',
\n  name: \'Framework7\', // App name
\n  theme: \'ios\',
\n  //pushState: false,
\n    iosTranslucentBars: ![],
\n    iosTranslucentModals: ![],
\n  routes: routes,
\n    /*view: {
\n      browserHistory: !![],
\n      browserHistoryAnimate: Framework7[\'device\'][\'ios\'] ? ![] : !![]
\n    }  */
\n});
\n//var mainView = app.views.create(\'.view-main\');','js','0','1','0','1747946146');
INSERT INTO `cp5_scriptext` VALUES('2','utils','utils','let base_url = "https://u9.agniaga.com/api/v1/";
\nlet ar = {
\n  \'relation\': {
\n    1: \'Komisaris\',
\n    2: \'Direksi\',
\n    3: \'Staff\',
\n    6: \'Debitur\',
\n    7: \'Kreditur\',
\n    8: \'Customer\',
\n    9: \'Supplier\',
\n    10: \'Other\'
\n  },
\n  \'brand\': {
\n    1: \'Samsung\',
\n    2: \'Panasonic\',
\n    3: \'Sharp\'
\n  }
\n};
\n
\nfunction checkConnection(url) {}
\n
\nfunction timeOut(num = 30000) {
\n  setTimeout(() => {
\n    app.preloader.hide();
\n    app.dialog.alert(\'Operation timed out...\', \'Time Out\');
\n  }, num)
\n}
\n
\nfunction promiseTimeout(ms, promise) {
\n  // Create a promise that rejects in <ms> milliseconds
\n  let timeout = new Promise((resolve, reject) => {
\n    let id = setTimeout(() => {
\n      clearTimeout(id);
\n      reject(\'Operation timed out in \' + (ms / 1000) + \'s\')
\n    }, ms)
\n  })
\n  // Returns a race between our timeout and the passed in promise
\n  return Promise.race([
\n    promise,
\n    timeout
\n  ])
\n}
\nString.prototype.replaceAt = function(index, char) {
\n  return this.substr(0, index - 1) + char + this.substr(index + char.length);
\n}
\n
\nfunction copyToClipboard(element) {
\n  var $temp = $("<input>");
\n  $("body").append($temp);
\n  $temp.val($(element).text()).select();
\n  document.execCommand("copy");
\n  $temp.remove();
\n}
\n
\nfunction init_swiper(Id) {
\n  var swiper1 = app.swiper.create(Id, {
\n    pagination: {
\n      el: \'.swiper-pagination\',
\n      type: \'bullets\',
\n    },
\n    speed: 400,
\n    spaceBetween: 10,
\n    slidesPerView: 1,
\n    autoplay: {
\n      delay: 4000,
\n      disableOnInteraction: false
\n    }
\n  });
\n}
\n
\nfunction showToast(message, type = \'Message\', position = \'bottom\') {
\n  app.toast.create({
\n    text: message,
\n    position: position,
\n    closeTimeout: 2000,
\n  }).open()
\n}
\n
\nfunction SortByDate(ulid, liclass, by) {
\n  var $wrap = $(\'#\' + ulid);
\n  if (by == \'asc\') {
\n    $wrap.find(\'.\' + liclass).sort(function(a, b) {
\n      return +a.dataset.date -
\n        +b.dataset.date;
\n    }).appendTo($wrap);
\n  } else {
\n    $wrap.find(\'.\' + liclass).sort(function(b, a) {
\n      return +a.dataset.date -
\n        +b.dataset.date;
\n    }).appendTo($wrap);
\n  }
\n}
\n
\nfunction SortByName(ulid, liclass, by) {
\n  var $wrap = $(\'#\' + ulid);
\n  if (by == \'asc\') {
\n    $wrap.find(\'.\' + liclass).sort(function(a, b) {
\n      return +a.dataset.name -
\n        +b.dataset.name;
\n    }).appendTo($wrap);
\n  } else {
\n    $wrap.find(\'.\' + liclass).sort(function(b, a) {
\n      return +a.dataset.name -
\n        +b.dataset.name;
\n    }).appendTo($wrap);
\n  }
\n}
\n
\nfunction SortByAmount(ulid, liclass, by) {
\n  var $wrap = $(\'#\' + ulid);
\n  if (by == \'asc\') {
\n    $wrap.find(\'.\' + liclass).sort(function(a, b) {
\n      return +a.dataset.amount -
\n        +b.dataset.amount;
\n    }).appendTo($wrap);
\n  } else {
\n    $wrap.find(\'.\' + liclass).sort(function(b, a) {
\n      return +a.dataset.amount -
\n        +b.dataset.amount;
\n    }).appendTo($wrap);
\n  }
\n}
\n
\nfunction SortById(ulid, liclass, by) {
\n  var $wrap = $(\'#\' + ulid);
\n  if (by == \'asc\') {
\n    $wrap.find(\'.\' + liclass).sort(function(a, b) {
\n      return +a.dataset.id -
\n        +b.dataset.id;
\n    }).appendTo($wrap);
\n  } else {
\n    $wrap.find(\'.\' + liclass).sort(function(b, a) {
\n      return +a.dataset.id -
\n        +b.dataset.id;
\n    }).appendTo($wrap);
\n  }
\n}
\n
\nfunction SortBySeq(ulid, liclass, by) {
\n  var $wrap = $(\'#\' + ulid);
\n  if (by == \'asc\') {
\n    $wrap.find(\'.\' + liclass).sort(function(a, b) {
\n      return +a.dataset.seq -
\n        +b.dataset.seq;
\n    }).appendTo($wrap);
\n  } else {
\n    $wrap.find(\'.\' + liclass).sort(function(b, a) {
\n      return +a.dataset.seq -
\n        +b.dataset.seq;
\n    }).appendTo($wrap);
\n  }
\n}','js','0','1','0','1748672709');

INSERT INTO `cp5_scriptext` VALUES('5','app','password_forgot','$$(document).on(\'page:init\', \'.page[data-name="password_forgot"]\', function(e) {
\n  $(document).off("click", "#password_forgot_button").on("click", "#password_forgot_button", function(e) {
\n  console.log(\'app password_forgot ready\')
\n    e.preventDefault();
\n    var email = $("#emailForgot").val();
\n    let req = {
\n      email
\n    }
\n    if (email) {
\n      password_forgot(req);
\n    } else {
\n      app.dialog.alert("Please enter your email", "Forgot Password Errors");
\n    }
\n  });
\n})','js','0','2','1','1746931155');


INSERT INTO `cp5_scriptext` VALUES('8','app','account_edit','$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', async function (e) {
\n  console.log(\'app account_edit ready\')
\n  let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  console.log(user)
\n  document.querySelector(\'input[name="token_3"]\').value = user.sess_token || \'\';
\n  document.querySelector(\'input[name="uuid_3"]\').value = user.uuid || \'\';
\n  document.querySelector(\'input[name="email_3"]\').value = user.data.email || \'\';
\n  document.querySelector(\'input[name="first_name_3"]\').value = user.data.firstname || \'\';
\n  document.querySelector(\'input[name="last_name_3"]\').value = user.data.lastname || \'\';
\n  document.querySelector(\'input[name="phone_3"]\').value = user.data.phone || \'\';
\n})
\n
\n$$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', function(e) {
\n  $(document).off("click", "#account_edit_button").on("click", "#account_edit_button", function(e) {
\n    e.preventDefault();
\n  let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n
\n    const token=user.sess_token;
\n    const firstname = $(\'input[name="first_name_3"]\').val().trim();
\n    const lastname = $(\'input[name="last_name_3"]\').val().trim();
\n    const phone = $(\'input[name="phone_3"]\').val().trim();
\n    const uuid = $(\'input[name="uuid_3"]\').val().trim();
\n    let req = {
\n      uuid,
\n      token,
\n      firstname,
\n      lastname,
\n      phone
\n    };
\n    if (phone && firstname) {
\n       account_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Edit Account Errors");
\n    }
\n  });
\n});','js','0','2','1','1748327778');
INSERT INTO `cp5_scriptext` VALUES('9','app','account_delete','$(document).on(\'page:init\', \'.page[data-name="account_delete"]\', async function (e) {
\n  console.log(\'app account_delete ready\')
\n  let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  console.log(user)
\n  // Example of how to fill in the form fields with the provided data
\n  document.querySelector(\'#token\').value = user.token || \'\';
\n  document.querySelector(\'#email_4\').value = user.email || \'\';
\n  document.querySelector(\'#uuid\').value = user.uuid || \'\';
\n})
\n
\n$$(document).on(\'page:init\', \'.page[data-name="account_delete"]\', function(e) {
\n  $$(document).off("click", "#account_delete_button").on("click", "#account_delete_button", function(e) {
\n    e.preventDefault();
\n    const uuid = $(\'#uuid\').val();
\n    const token = $(\'#token\').val();
\n    const reason = $(\'#reason_4\').val().trim();
\n    console.log(reason)
\n    let req = {
\n      reason,uuid,token
\n    }
\n    console.log(req)
\n    if (reason) {
\n      app.dialog.confirm(\'Are you sure you want to delete your account?\', \'Delete Account\', async function () {
\n        app.preloader.show()
\n        account_delete(req);
\n      })
\n    } else {
\n      app.dialog.alert("Please enter your reason", "Delete Account Errors");
\n    }
\n  });
\n})','js','0','2','1','1747992804');
INSERT INTO `cp5_scriptext` VALUES('10','app','address_add','$$(document).on(\'page:init\', \'.page[data-name="address_add"]\', function(e) {
\n  $(document).off("click", "#address_add_button").on("click", "#address_add_button", function(e) {
\n  console.log(\'app address add click ready\')
\n    e.preventDefault();
\n    let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n    const label = $(\'#ad_label\').val();
\n    const name = $(\'#ad_name\').val();
\n    const phone = $(\'#ad_phone\').val();
\n    const address = $(\'#ad_address\').val();
\n    const rt = $(\'#ad_rt\').val();
\n    const rw = $(\'#ad_rw\').val();
\n    const no = $(\'#ad_no\').val();
\n    const postcode = $(\'#ad_postcode\').val();
\n    const kel = $(\'#ad_kel\').val();
\n    const kec = $(\'#ad_kec\').val();
\n    const city = $(\'#ad_city\').val();
\n    const gmap = $(\'#ad_gmap\').val();
\n    const remark = $(\'#ad_remark\').val();
\n    const token=user.sess_token;
\n    const uuid=user.uuid;
\n    let req = {
\n      label,name,uuid,token,phone,address,rt,rw,no,postcode,kel,kec,city,gmap,remark
\n    }
\n    if (name && phone && address && no && gmap) {
\n      address_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Add Address Errors");
\n    }
\n  });
\n})','js','0','2','1','1746835018');
INSERT INTO `cp5_scriptext` VALUES('11','app','address','$(document).on(\'page:init\', \'.page[data-name="address"]\', async function (e) {
\n  console.log(\'app address ready\')
\n  var view = app.views.current
\n
\n  let js = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  let dt = js.data.address;
\n  //console.log(dt)
\n  var strHtml = `<div class="list detailed-list list-dividers full-width">
\n      <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml += `
\n<li>
\n<div class="item-link item-content">
\n    
\n    <div class="item-inner">
\n      <div class="item-title">
\n        <div class="item-name"><b>`+dt[i].label+` [`+dt[i].name+`, `+dt[i].phone+`]</b></div>
\n        <div class="item-footer">`+dt[i].address+`, `+dt[i].rt+`, `+dt[i].rw+`, `+dt[i].no+`, `+dt[i].kel+`, `+dt[i].kec+`, `+dt[i].city+`, `+dt[i].postcode+`</div>
\n      </div>
\n      <div class="item-after event-time">
\n      <a href="/address_edit/`+dt[i].id+`" data-id="`+dt[i].id+`" class="badge bg-primary btn-f300">edit</a>
\n      <a data-id="`+dt[i].id+`" class="badge bg-danger btn-f300 ml-2 user_address_delete">del</a>
\n      </div>
\n    </div>
\n   </div>
\n</li>   
\n    `;
\n  }
\n   strHtml += `
\n   </ul></div>`;  
\n  //console.log(strHtml)
\n  $$("#address_content").html(strHtml);
\n})','js','0','2','1','1748085970');
INSERT INTO `cp5_scriptext` VALUES('12','app','user_address_delete','// Delete useraddress
\n$(document).on(\'click\', \'.user_address_delete\', async function (e) {
\n  console.log(\'app user_address_delete ready\')
\n  const aid = $(e.target).attr(\'data-id\');
\n  const user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  const token=user.sess_token;
\n  const uuid=user.uuid;
\n  let req = {
\n    uuid,token,aid
\n  }
\n  //console.log(req)  
\n  // confirm dialog
\n  app.dialog.confirm(\'Are you sure you want to delete this address?\', \'Delete Address\', async function () {
\n      app.preloader.show()
\n      if (aid && uuid) {
\n        user_address_delete(req,\'adrs_\'+aid);
\n      } 
\n  })
\n})','js','0','2','1','1746835138');
INSERT INTO `cp5_scriptext` VALUES('13','app','address_edit','$(document).on(\'page:beforein\', \'.page[data-name="address_edit"]\', async function (e) {
\n  console.log(\'app address_edit ready\')
\n  var aid = e.detail.route.params.id
\n  //console.log(aid)
\n  let js = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  let dt = js.data.address;  
\n  for(let i=0;i<dt.length;i++) {
\n    if(dt[i].id==aid) {
\n      document.querySelector(\'#a2_label\').value = dt[i].label || \'\';
\n      document.querySelector(\'#a2_name\').value = dt[i].name || \'\';
\n      document.querySelector(\'#a2_phone\').value = dt[i].phone || \'\';
\n      document.querySelector(\'#a2_address\').value = dt[i].address || \'\';
\n      document.querySelector(\'#a2_rt\').value = dt[i].rt || \'\';
\n      document.querySelector(\'#a2_rw\').value = dt[i].rw || \'\';
\n      document.querySelector(\'#a2_no\').value = dt[i].no || \'\';
\n      document.querySelector(\'#a2_postcode\').value = dt[i].postcode || \'\';
\n      document.querySelector(\'#a2_kel\').value = dt[i].kel || \'\';
\n      document.querySelector(\'#a2_kec\').value = dt[i].kec || \'\';
\n      document.querySelector(\'#a2_city\').value = dt[i].city || \'\';
\n      document.querySelector(\'#a2_gmap\').value = dt[i].gmap || \'\';
\n      document.querySelector(\'#a2_remark\').value = dt[i].remark || \'\';
\n      document.querySelector(\'#a2_id\').value = dt[i].id || \'\';
\n    }
\n  }
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="address_edit"]\', function(e) {
\n  $(document).off("click", "#address_edit_button").on("click", "#address_edit_button", function(e) {
\n    e.preventDefault();
\n    let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n    const label = $(\'#a2_label\').val();
\n    const name = $(\'#a2_name\').val();
\n    const phone = $(\'#a2_phone\').val();
\n    const address = $(\'#a2_address\').val();
\n    const rt = $(\'#a2_rt\').val();
\n    const rw = $(\'#a2_rw\').val();
\n    const no = $(\'#a2_no\').val();
\n    const postcode = $(\'#a2_postcode\').val();
\n    const kel = $(\'#a2_kel\').val();
\n    const kec = $(\'#a2_kec\').val();
\n    const city = $(\'#a2_city\').val();
\n    const gmap = $(\'#a2_gmap\').val();
\n    const remark = $(\'#a2_remark\').val();
\n    const aid = $(\'#a2_id\').val();
\n    const token=user.sess_token;
\n    const uuid=user.uuid;
\n    let req = {
\n      uuid,token,label,name,phone,address,rt,rw,no,postcode,kel,kec,city,gmap,remark,aid
\n    }
\n    if (name && phone && address && no && gmap) {
\n      address_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Edit Address Errors");
\n    }
\n  });
\n})','js','0','2','1','1747708456');
INSERT INTO `cp5_scriptext` VALUES('14','app','tab_account','user = JSON.parse(localStorage.getItem(\'f05_user\'));
\nif (user) {
\n  let str_img = `<img src="` + user.data.url_img + `" alt="">
\n    <div class="profile-online bg-color-green">
\n    </div>`;
\n  let sMenu=`
\n  <ul>
\n    <li>
\n      <a href="/account_delete/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">xmark_square_fill</i>
\n        </div>Account Delete</a>
\n    </li>
\n    <li>
\n      <a href="/account_edit/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">arrow_turn_left_down</i>
\n        </div>Account Edit</a>
\n    </li>
\n    <li>
\n      <a href="/address/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">table_badge_more_fill</i>
\n        </div>Address</a>
\n    </li>
\n    <li>
\n      <a href="/image_upload/users/`+user.uuid+`" data-image="`+user.data.url_img+`"  class="image_upload">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">photo</i>
\n        </div>Image Edit</a>
\n    </li>
\n    <li>
\n      <a href="/password_change/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">textformat_123</i>
\n        </div>Password Change</a>
\n    </li>
\n  </ul>`;  
\n  $$(\'#user_name\').html(user.data.fullname);
\n  $$(\'#user_subtitle\').html(user.data.email);
\n  $$(\'#user_img\').html(str_img);
\n  $$(\'#user_menu\').html(sMenu);
\n
\n}','js','0','2','1','1748442681');
INSERT INTO `cp5_scriptext` VALUES('15','app','home','$(document).on(\'page:beforein\', \'.page[data-name="home"]\', async function (e) {
\n  console.log(\'app home ready, get all data\')
\n  app.preloader.show();
\n  let user_data_var = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  if (user_data_var != null) {    
\n    let data_fcode = JSON.parse(localStorage.getItem(\'f05_fcode\'));
\n    if(data_fcode!= null) {
\n      //console.log(data_transaction);
\n    } else {
\n      fcode();
\n    }
\n
\n    let data_action = JSON.parse(localStorage.getItem(\'f05_action\'));
\n    if(data_action!= null) {
\n      //console.log(data_action);
\n    } else {
\n      action();
\n    }
\n    let data_bank = JSON.parse(localStorage.getItem(\'f05_bank\'));
\n    if(data_bank!= null) {
\n      //console.log(data_bank);
\n    } else {
\n      bank();
\n    }
\n    let data_company = JSON.parse(localStorage.getItem(\'f05_company\'));
\n    if(data_company!= null) {
\n      //console.log(data_company);
\n    } else {
\n      company();
\n    }
\n    let data_inventory = JSON.parse(localStorage.getItem(\'f05_inventory\'));
\n    if(data_inventory!= null) {
\n      //console.log(data_inventory);
\n    } else {
\n      inventory();
\n    }
\n    let data_journal = JSON.parse(localStorage.getItem(\'f05_journal\'));
\n    if(data_journal!= null) {
\n      //console.log(data_journal);
\n    } else {
\n      journal();
\n    }
\n    let data_person = JSON.parse(localStorage.getItem(\'f05_person\'));
\n    if(data_person!= null) {
\n      //console.log(data_person);
\n    } else {
\n      person();
\n    }
\n    let data_product = JSON.parse(localStorage.getItem(\'f05_product\'));
\n    if(data_product!= null) {
\n      //console.log(data_product);
\n      
\n    } else {
\n      product();
\n    }
\n    let data_sales = JSON.parse(localStorage.getItem(\'f05_sales\'));
\n    if(data_sales!= null) {
\n      //console.log(data_sales);
\n    } else {
\n      sales();
\n    }
\n
\n  } else {
\n    app.views.main.router.navigate(\'/signin/\');
\n  }
\n  let num=2800;
\n  setTimeout(() => {
\n    app.preloader.hide();
\n    //view_product_tab();
\n  }, num)  
\n});','js','0','2','1','1748652787');
INSERT INTO `cp5_scriptext` VALUES('16','app','c1','$(document).on(\'page:beforein\', \'.page[data-name="c1"]\', async function (e) {
\n  console.log(\'c1 ready\')
\n  var cId = e.detail.route.params.id
\n  //console.log(cId)
\n  let js = JSON.parse(localStorage.getItem(\'s23_data_item\'));
\n  let dt = js.c1[cId];  
\n  console.log(dt.data)
\n  let strTitle=dt.jenis;
\n  //console.log(strTitle)
\n  $$("#c1_title").html(strTitle);
\n
\n  let strHtml = `
\n    <div class="separator-large"></div>
\n    <div class="container">`;
\n  for(let a=0;a<dt.data.length;a++) {
\n  let el=dt.data[a];
\n    strHtml += `
\n    <div class="row">
\n      <div class="col-50">
\n        <div class="content-item radius-default bg-white">
\n          
\n          <a href="/item/`+cId+`/`+el.id+`/" data-c1="`+cId+`" data-id="`+el.id+`">
\n            
\n            <div class="text-desc">
\n              <p class="title-item">`+el.bobot+`kg</p>
\n              <p class="price-item"><sup>Rp</sup>`+el.price_idr_s+`<sup>Jt</sup></p>
\n              <p class="location-item">
\n                <i class="icon material-symbols-outlined">location_on</i>
\n                `+el.posisi+`
\n              </p>
\n            </div>
\n          </a>
\n        </div>
\n      </div>
\n      <div class="col-50">
\n        <div class="content-item radius-default bg-white">
\n          <a href="" data-transition="f7-dive">
\n            <!--<div class="favorite-symbol active-symbol">
\n              <ion-icon name="heart-outline" role="img" class="md hydrated"></ion-icon>
\n            </div>-->
\n          </a>
\n          <a href="/ads-details/">
\n            <img class="full-width radius-top-only" src="`+el.img+`" alt="`+el.title+`">
\n          </a>
\n        </div>
\n      </div>
\n    </div>`;
\n  }
\n  strHtml += `</div>`;
\n  $$("#c1_content").html(strHtml); 
\n  
\n});','js','1','2','1','1745454275');
INSERT INTO `cp5_scriptext` VALUES('17','app','item','$(document).on(\'page:beforein\', \'.page[data-name="item"]\', async function (e) {
\n  console.log(\'app item ready\')
\n  var iId = e.detail.route.params.id;
\n  var cId = e.detail.route.params.c1;
\n  console.log(iId+\'; \'+cId)
\n  
\n  //console.log(cId)
\n  let js = JSON.parse(localStorage.getItem(\'s23_data_item\'));
\n  let dt2 = js.item.data[iId];  
\n  console.log(dt2)
\n  //console.log(dt)
\n  //console.log(dt.data.length)
\n  let strTitle=dt2.kodeunik;
\n  //console.log(strTitle)
\n  $$("#item_title").html(strTitle);
\n  let strHtml = `
\n    <div class="separator-small"></div>
\n    `;
\n  strHtml +=`
\n<div class="container">
\n  <div class="swiper-container image-slider" id="it345wg">
\n    <div class="swiper-pagination"></div>
\n    <div class="swiper-wrapper" id="dynamic-img"> 
\n    <div class="swiper-slide">
\n      <img src="`+dt2.images[0].url+`" width="100%" style="height:auto;">
\n   </div>
\n    <div class="swiper-slide">
\n      <img src="`+dt2.images[1].url+`" width="100%" style="height:auto;">
\n   </div>
\n    <div class="swiper-slide">
\n      <img src="`+dt2.images[2].url+`" width="100%" style="height:auto;">
\n   </div>
\n    </div>
\n  </div>
\n</div>
\n    `;
\n    strHtml +=`
\n<div class="detail-title mt-2">
\n  <div class="container">
\n   <div class="tag-category">
\n      <span class="mr-2">`+dt2.jenis+`</span> <span>`+dt2.kategori+`</span>
\n   </div>
\n    <p class="price-item"><sup>Rp</sup>`+dt2.price_idr_s+` <sup>juta</sup></p>
\n
\n    <!-- separator -->
\n    <div class="separator-small"></div>
\n   <!-- end separator -->
\n
\n    <p class="title-item title-item-large">`+dt2.title+`</p>
\n    <!-- separator -->
\n
\n    <div class="separator-small"></div>
\n   <!-- end separator -->
\n
\n    <div class="short-info">
\n      <p class="text-small">Published : <span>12 April 2020</span></p>
\n      <p class="text-small">Viewed : <span>560</span></p>
\n   </div>
\n
\n    <!-- separator -->
\n    <div class="separator-small"></div>
\n   <!-- end separator -->
\n
\n    <div class="item-detail-action">
\n      <ul>
\n        <li><a href="#"><ion-icon name="heart-outline" role="img" class="md hydrated"></ion-icon></a></li>
\n        <li><a href="#"><ion-icon name="warning-outline" role="img" class="md hydrated"></ion-icon></a></li>
\n        <li><a href="#"><ion-icon name="share-social-outline" role="img" class="md hydrated"></ion-icon></a></li>
\n     </ul>
\n   </div>
\n
\n    <!-- divider -->
\n    <div class="divider-h"></div>
\n   <!-- end divider -->
\n
\n  </div>
\n</div>
\n    `;
\n    strHtml += `
\n      `;
\n  $$("#item_content").html(strHtml); 
\n  init_swiper(\'#it345wg\');
\n  
\n});','js','1','2','1','1745456599');
INSERT INTO `cp5_scriptext` VALUES('29','app','logout','/*
\n$$(document).on(\'page:init\', \'.page[data-name="home"]\', function(e) {
\n  $(document).off("click", "#user_signout").on("click", "#user_signout", function(e) {
\n    e.preventDefault();
\n    localStorage.removeItem(\'f05_user\');
\n    localStorage.removeItem(\'f05_data\');
\n    localStorage.removeItem(\'f05_action\');
\n    localStorage.removeItem(\'f05_bank\');
\n    localStorage.removeItem(\'f05_company\');
\n    localStorage.removeItem(\'f05_inventory\');
\n    localStorage.removeItem(\'f05_journal\');
\n    localStorage.removeItem(\'f05_person\');
\n    localStorage.removeItem(\'f05_product\');
\n    localStorage.removeItem(\'f05_sales\');
\n    localStorage.removeItem(\'f05_transaction\');
\n    app.views.main.router.navigate(\'/signin/\');  
\n  });
\n})
\n*/','js','0','2','1','1747662090');
INSERT INTO `cp5_scriptext` VALUES('50','app','product','$(document).on(\'page:init\', \'.page[data-name="product"]\', async function (e) {
\n  console.log(\'app product ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  let dt = js.data.by_brand;
\n  //console.log(dt)
\n  var strHtml = ``;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml += `<div class="block-title">`+dt[i].brand+`</div>`;
\n    strHtml += `<div class="list media-list  list-outline-ios list-strong-ios list-dividers-ios">
\n      <ul>`;
\n    for(let f=0;f<dt[i].items.length;f++) {
\n    strHtml +=`
\n<li>
\n  <a href="/product_trx/`+dt[i].items[f].id+`" class="item-link item-content">
\n    <div class="item-media"><img style="border-radius: 8px"
\n      src="`+dt[i].items[f].img+`" width="50" /> 
\n    </div>
\n    <div class="item-inner">
\n      <div class="item-title-row">
\n        <div class="item-title">`+dt[i].items[f].name+`</div>
\n        <div class="item-after">`+dt[i].items[f].qty+`</div>
\n      </div>
\n      <div class="item-subtitle">`+dt[i].items[f].item_code+`</div>
\n      <div class="item-text">
\n      `+dt[i].items[f].hpp+`      
\n      </div>
\n    </div>
\n  </a>
\n</li>    `;
\n    }
\n    strHtml +=`</ul>
\n    </div>`;
\n  }
\n   strHtml += ``;  
\n  //console.log(strHtml)
\n  $$("#product_content").html(strHtml);
\n})','js','0','2','1','1747268607');
INSERT INTO `cp5_scriptext` VALUES('51','app','product_trx','$(document).on(\'page:init\', \'.page[data-name="product_trx"]\', async function (e) {
\n  console.log(\'app product detail (trx) ready\')
\n  var i = e.detail.route.params.id;
\n  //console.log(i)
\n  //console.log(pid)
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  let dt = js.data.by_id[i];
\n  console.log(dt)
\n  var strHtml = ``;
\n  strHtml +=`<div class="data-table">
\n      <table>
\n        <thead>
\n          <tr>
\n            <th class="label-cell">Date</th>
\n            <th class="numeric-cell">In</th>
\n            <th class="numeric-cell">Out</th>
\n            <th class="numeric-cell">Balance</th>
\n          </tr>
\n        </thead>
\n        <tbody>`;
\n  for(let i=0;i<dt.trx.length;i++) {
\n    strHtml +=`<tr>
\n            <td class="label-cell">`+dt.trx[i].tgl+`</td>
\n            <td class="numeric-cell">`+dt.trx[i].item_in+`</td>
\n            <td class="numeric-cell">`+dt.trx[i].item_out+`</td>
\n            <td class="numeric-cell">`+dt.trx[i].balance+`</td>
\n          </tr>`;
\n  }
\n    strHtml +=`</tbody>
\n      </table></div>
\n    `;
\n  //console.log(strHtml)
\n  $$("#product_trx_content").html(strHtml);
\n})','js','0','2','1','1748565716');
INSERT INTO `cp5_scriptext` VALUES('52','app','product_buy','$(document).on(\'page:beforein\', \'.page[data-name="product_buy"]\', async function (e) {
\n  console.log(\'app product_buy ready\')
\n  var id = e.detail.route.params.id;
\n  let js = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  let dt= js.data.by_id[id];
\n  console.log(dt);
\n  document.querySelector(\'#p1_product_id\').value = dt.id || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_buy"]\', function(e) {
\n  $(document).off("click", "#product_buy_button").on("click", "#product_buy_button", function(e) {
\n    e.preventDefault();
\n    let product_id = $(\'#p1_product_id\').val();
\n    let action_at = $(\'#p1_action_at\').val();
\n    let qty = $(\'#p1_qty\').val();
\n    let due_days = $(\'#p1_due_days\').val();
\n    let pay_from = $(\'#p1_pay_from\').val();
\n    let invoice = $(\'#p1_invoice\').val();
\n    let remark= $(\'#p1_remark\').val();
\n
\n    let req = {
\n      product_id,action_at,qty,due_days,pay_from,invoice,remark
\n    }
\n    if (product_id && action_at && qty) {
\n      product_buy(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Buy Errors");
\n    }
\n  });
\n})','js','0','2','1','1748564093');
INSERT INTO `cp5_scriptext` VALUES('53','app','product_sell','$(document).on(\'page:beforein\', \'.page[data-name="product_sell"]\', async function (e) {
\n  console.log(\'app product_sell ready\')
\n  var id = e.detail.route.params.id;
\n  var cat = e.detail.route.params.c;
\n  let js = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  let dt= js.data.by_id[id];
\n  console.log(dt)
\n  document.querySelector(\'#p3_product_id\').value = id || \'\';
\n  document.querySelector(\'#p3_cat\').value = cat || \'\';
\n  document.querySelector(\'#p3_name\').value = dt.name || \'\';
\n  document.querySelector(\'#p3_item_code\').value = dt.item_code || \'\';
\n  //document.querySelector(\'#p3_due_days\').value = 0 || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_sell"]\', function(e) {
\n  $(document).off("click", "#product_sell_button").on("click", "#product_sell_button", function(e) {
\n    e.preventDefault();
\n    let product_id = $(\'#p3_product_id\').val();
\n    let cat= $(\'#p3_cat\').val();
\n    let action_at = $(\'#p3_action_at\').val();
\n    let qty = $(\'#p3_qty\').val();
\n    let due_days = $(\'#p3_due_days\').val();
\n    let buyer = $(\'#p3_buyer\').val();
\n    let invoice = $(\'#p3_invoice\').val();
\n    let price_per_unit = $(\'#p3_price_per_unit\').val();
\n    let sales = $(\'#p3_sales\').val();
\n    let req = {
\n      product_id,cat,action_at,qty,due_days,buyer,invoice,price_per_unit,sales
\n    }
\n    if (product_id && action_at && qty && price_per_unit) {
\n      product_sell(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Sell Errors");
\n    }
\n  });
\n})','js','0','2','1','1748747189');
INSERT INTO `cp5_scriptext` VALUES('55','app','product_retur','$(document).on(\'page:beforein\', \'.page[data-name="product_retur"]\', async function (e) {
\n  console.log(\'app product_retur ready\')
\n  var id = e.detail.route.params.id;
\n  var cat = e.detail.route.params.c;
\n  let js = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  let dt= js.data.by_id[id];
\n  console.log(dt)
\n  document.querySelector(\'#p4_product_id\').value = id || \'\';
\n  document.querySelector(\'#p4_retur_cat\').value = cat || \'\';
\n  document.querySelector(\'#p4_name\').value = dt.name || \'\';
\n  document.querySelector(\'#p4_item_code\').value = dt.item_code || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_retur"]\', function(e) {
\n  $(document).off("click", "#product_retur_button").on("click", "#product_retur_button", function(e) {
\n    e.preventDefault();
\n    let product_id = $(\'#p4_product_id\').val();
\n    let retur_cat= $(\'#p4_retur_cat\').val();
\n    let action_at = $(\'#p4_action_at\').val();
\n    let qty = $(\'#p4_qty\').val();
\n    let from_to = $(\'#p4_from_to\').val();
\n    let invoice = $(\'#p4_invoice\').val();
\n    let price_per_unit = $(\'#p4_price_per_unit\').val();
\n    let returid = $(\'#p4_returid\').val();
\n
\n    let req = {
\n      product_id,retur_cat,action_at,qty,from_to,invoice,price_per_unit,returid
\n    }
\n    if (product_id && qty && price_per_unit) {
\n      product_retur(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Retur Errors");
\n    }
\n  });
\n})','js','0','2','1','1748602082');
INSERT INTO `cp5_scriptext` VALUES('56','app','product_edit','$(document).on(\'page:beforein\', \'.page[data-name="product_edit"]\', async function (e) {
\n  console.log(\'app product_edit ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  let dt= js.data.by_id[id];
\n  console.log(dt)
\n  document.querySelector(\'#a7_id\').value = id || \'\';
\n  document.querySelector(\'#a7_name\').value = dt.name || \'\';
\n  document.querySelector(\'#a7_brand\').value = dt.brand || \'\';
\n  document.querySelector(\'#a7_item_code\').value = dt.item_code || \'\';
\n  document.querySelector(\'#a7_price_per_unit \').value = dt.price_per_unit || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_edit"]\', function(e) {
\n  $(document).off("click", "#product_edit_button").on("click", "#product_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#a7_id\').val();
\n    const name = $(\'#a7_name\').val();
\n    const brand = $(\'#a7_brand\').val();
\n    const item_code = $(\'#a7_item_code\').val();
\n    const price_per_unit = $(\'#a7_price_per_unit \').val();
\n
\n    let req = {
\n      id,name,brand,item_code,price_per_unit 
\n    }
\n    if (id && name && brand && price_per_unit ) {
\n      product_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1748490479');
INSERT INTO `cp5_scriptext` VALUES('57','app','product_image','$(document).on(\'page:beforein\', \'.page[data-name="product_image"]\', async function (e) {
\n  console.log(\'app product_image ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f05_data\'));
\n  let dt= js.data.result.product_byid.data[id];  
\n  document.querySelector(\'#a8_id\').value = id || \'\';
\n  //console.log(dt)
\n if (dt.img) {
\n   $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-image\', `url(\'${dt.img}\')`)
\n   $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-size\', \'contain\')
\n   $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-position\', \'center\')
\n    $(\'input[name="product_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-repeat\', \'no-repeat\')
\n }  
\n});
\n
\n$(document).on(\'change\', \'input#fileuploadInput\', function (e) {
\n  const file = e.target.files[0]
\n  const reader = new FileReader()
\n  reader.onload = function (e) {
\n    document.querySelector(\'.custom-file-upload label\').style.backgroundImage = `url(\'${e.target.result}\')`
\n    document.querySelector(\'.custom-file-upload label\').style.backgroundSize = \'cover\'
\n  }
\n  reader.readAsDataURL(file)
\n})
\n
\n$(document).on(\'change\', \'input[name="product_image"]\', function (e) {
\n    const file = e.target.files[0];
\n    const reader = new FileReader();
\n    reader.onload = function (event) {
\n        console.log($(\'.custom-file-upload.profile\'));
\n        $(\'.custom-file-upload.profile\')
\n            .find(\'label\')
\n            .css(\'background-image\', `url(\'${event.target.result}\')`)
\n            .css(\'background-size\', \'cover\');
\n    };
\n    if (file) {
\n        reader.readAsDataURL(file);
\n    }
\n});
\n
\n$(document).on(\'click\', \'#save-profile-images\', async function () {
\n  var view = app.views.current
\n  const id = $(\'#a8_id\').val();
\n  const profile_image = $(\'input[name="product_image"]\').prop(\'files\')[0]
\n  let profileBase64 = null
\n  if (profile_image) {
\n    // Wrap the FileReader in a Promise to wait for it to complete
\n    profileBase64 = await new Promise((resolve, reject) => {
\n      const reader = new FileReader()
\n      reader.readAsDataURL(profile_image)
\n      reader.onload = () => resolve(reader.result)
\n      reader.onerror = () => reject(new Error(\'Failed to read image as base64\'))
\n    })
\n    console.log(profileBase64)
\n  }    
\n  if(profileBase64){
\n    let image=profileBase64;  
\n    let req = {
\n      id,image
\n    }
\n    console.log(req)  
\n    try {
\n     app.preloader.show()
\n      let promises = [];
\n      if (req) {
\n          promises.push(product_image(req))
\n     }
\n     const responses = await Promise.all(promises)
\n     app.preloader.hide()
\n    } catch (error) {
\n     app.preloader.hide()
\n      app.dialog.alert(res.message, \'Upload Image Error\');
\n    }     
\n  }       
\n});','js','0','2','1','1747004225');
INSERT INTO `cp5_scriptext` VALUES('59','app','company','$(document).on(\'page:init\', \'.page[data-name="company"]\', async function (e) {
\n  console.log(\'app company ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f05_company\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  var strHtml = `
\n<div class="container mt-20">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n  <div class="search-list_company searchbar-found list detailed-list list-dividers full-width">
\n    <ul>`;
\n    //list detailed-list list-dividers full-width
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n         <li>
\n          <a href="/company_edit/`+i+`" class="item-link item-content">
\n            <div class="item-media"><img src="`+dt[i].image+`" class="event-thumbnail" alt=""></div>
\n            <div class="item-inner">
\n              <div class="item-title">
\n                <div class="item-name">`+dt[i].name+`</div>
\n                <div class="item-footer">`+dt[i].address+`, `+dt[i].city+`</div>
\n              </div>
\n              <div class="item-after"><span class="badge bg-color-primary">`+dt[i].initial+`</span></div>
\n            </div>
\n          </a>
\n        </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>
\n   `;  
\n  $$("#company_content").html(strHtml);
\n})','js','0','2','1','1748617366');
INSERT INTO `cp5_scriptext` VALUES('61','app','company_edit','$(document).on(\'page:beforein\', \'.page[data-name="company_edit"]\', async function (e) {
\n  console.log(\'app company_edit ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f05_company\'));
\n  let dt= js.data[id];
\n  console.log(dt)
\n  document.querySelector(\'#c1_id\').value = dt.id || \'\';
\n  document.querySelector(\'#c1_name\').value = dt.name || \'\';
\n  document.querySelector(\'#c1_initial\').value = dt.initial || \'\';
\n  document.querySelector(\'#c1_nib\').value = dt.nib || \'\';
\n  document.querySelector(\'#c1_npwp\').value = dt.npwp|| \'\';
\n  document.querySelector(\'#c1_address\').value = dt.address || \'\';
\n  document.querySelector(\'#c1_city\').value = dt.city  || \'\';
\n  document.querySelector(\'#c1_postcode\').value = dt.postcode || \'\';
\n  let dt2=ar[\'relation\'];
\n  let sel1_relation =``;
\n  for (let i=8;i<11;i++) {
\n    if(i==dt.relation) {
\n      sel1_relation +=`<option selected value="`+i+`">`+dt2[i]+`</option>`;
\n    } else {
\n      sel1_relation +=`<option value="`+i+`">`+dt2[i]+`</option>`;
\n    }
\n  }
\n  $$("#c1_relation").html(sel1_relation );
\n  
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="company_edit"]\', function(e) {
\n  $(document).off("click", "#company_edit_button").on("click", "#company_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#c1_id\').val();
\n    const name = $(\'#c1_name\').val();
\n    const initial= $(\'#c1_initial\').val();
\n    const nib= $(\'#c1_nib\').val();
\n    const npwp= $(\'#c1_npwp\').val();
\n    const address= $(\'#c1_address\').val();
\n    const city= $(\'#c1_city\').val();
\n    const postcode= $(\'#c1_postcode\').val();
\n    const relation= $(\'#c1_relation\').val();
\n    const img_url= $(\'#c1_img_url\').val();
\n
\n    let req = {
\n      id,name,initial,nib,npwp,address,city,postcode,relation,img_url
\n    }
\n    if (id && name) {
\n      company_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Company Edit Errors");
\n    }
\n  });
\n})
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="company_edit"]\', function(e) {  
\n  $$(\'#company_delete_button\')[\'on\'](\'click\', function() {
\n  e.preventDefault();
\n    const id = $(\'#c1_id\').val();
\n
\n    let req = {
\n      id
\n    }
\n    if (id) {
\n      company_delete(req);
\n      //console.log(req)
\n    } else {
\n      app.dialog.alert("All fields are required", "Company Edit Errors");
\n    }    
\n  })
\n});','js','0','2','1','1748475838');
INSERT INTO `cp5_scriptext` VALUES('63','app','company_add','$$(document).on(\'page:init\', \'.page[data-name="company_add"]\', function(e) {
\n  $(document).off("click", "#company_add_button").on("click", "#company_add_button", function(e) {
\n    e.preventDefault();
\n    const name = $(\'#c2_name\').val();
\n    const initial= $(\'#c2_initial\').val();
\n    const nib= $(\'#c2_nib\').val();
\n    const npwp= $(\'#c2_npwp\').val();
\n    const address= $(\'#c2_address\').val();
\n    const city= $(\'#c2_city\').val();
\n    const postcode= $(\'#c2_postcode\').val();
\n    const relation= $(\'#c2_relation\').val();
\n    const img_url= $(\'#c2_img_url\').val();
\n
\n    let req = {
\n      name,initial,nib,npwp,address,city,postcode,relation,img_url
\n    }
\n    if (name) {
\n      company_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Company Add Errors");
\n    }
\n  });
\n})','js','0','2','1','1748092090');
INSERT INTO `cp5_scriptext` VALUES('64','app','inventory','$(document).on(\'page:init\', \'.page[data-name="inventory"]\', async function (e) {
\n  console.log(\'app inventory ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f05_inventory\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  var strHtml = `
\n<div class="container mt-20">
\n  <div class="list detailed-list list-dividers full-width notification-list">
\n    <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n    <li>
\n      <a href="/inventory_edit/`+i+`" class="item-link item-content">
\n       <div class="item-media">
\n        <img src="`+dt[i].image+`" class="event-thumbnail" alt="">
\n       </div>
\n       <div class="item-inner">
\n         <div class="item-title">
\n            <div class="item-date-container">
\n              <div class="item-date">`+dt[i].qty+` `+dt[i].unit+`</div>
\n              <div class="item-time"></div>
\n            </div>
\n            <div class="item-description">
\n            `+dt[i].name+`<br>
\n            <div class="fs-sm fw-300">Penyusutan: `+dt[i].will_age+` (tahun)</div>
\n            </div>
\n         </div>
\n         <div class="item-after">
\n         `+dt[i].rp+`
\n         </div>
\n       </div>
\n      </a>
\n    </li>
\n      `;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>
\n   `;  
\n  $$("#inventory_content").html(strHtml);
\n})
\n/*
\n<li>
\n        <a href="/inventory_edit/`+i+`">
\n          <div class="item-inner">
\n            <div class="item-title-row">
\n              <div class="item-title">`+dt[i].name+`</div>
\n              <div class="item-after">`+dt[i].code+`</div>
\n            </div>
\n            <div class="item-subtitle">`+dt[i].qty+` `+dt[i].unit+`</div>
\n            <div class="item-text">Rp.`+dt[i].rp+`, depretiation: `+dt[i].will_age+` year</div>
\n          </div>
\n        </a>
\n      </li>
\n*/','js','0','2','1','1748437709');
INSERT INTO `cp5_scriptext` VALUES('65','app','inventory_edit','$(document).on(\'page:beforein\', \'.page[data-name="inventory_edit"]\', async function (e) {
\n  console.log(\'app inventory_edit ready\')
\n  var i = e.detail.route.params.id;
\n  console.log(i);
\n  let js = JSON.parse(localStorage.getItem(\'f05_inventory\'));
\n  let dt= js.data[i];
\n  console.log(dt)
\n  let amount=dt.qty*dt.price_per_unit;
\n  document.querySelector(\'#i1_id\').value = dt.id || \'\';
\n  document.querySelector(\'#i1_name\').value = dt.name || \'\';
\n  document.querySelector(\'#i1_brand\').value = dt.brand || \'\';
\n  document.querySelector(\'#i1_unit\').value = dt.unit || \'\';
\n  document.querySelector(\'#i1_qty\').value = dt.qty|| \'\';
\n  document.querySelector(\'#i1_purchase_date\').value = dt.date_purchase|| \'\';
\n  document.querySelector(\'#i1_remark\').value = dt.remark || \'\';
\n  document.querySelector(\'#i1_will_age\').value = dt.will_age|| \'\';
\n  document.querySelector(\'#i1_price_per_unit\').value = dt.price_per_unit || \'\';
\n  document.querySelector(\'#i1_amount\').value = amount || \'\';
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="inventory_edit"]\', function(e) {
\n  $(document).off("click", "#inventory_edit_button").on("click", "#inventory_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#i1_id\').val();
\n    const name = $(\'#i1_name\').val();
\n    const brand= $(\'#i1_brand\').val();
\n    const unit= $(\'#i1_unit\').val();
\n    const qty= $(\'#i1_qty\').val();
\n    const purchase_date= $(\'#i1_purchase_date\').val();
\n    const remark= $(\'#i1_remark\').val();
\n    const will_age= $(\'#i1_will_age\').val();
\n    const price_per_unit= $(\'#i1_price_per_unit\').val();
\n    const img_url= $(\'#i1_img_url\').val();
\n
\n    let req = {
\n      id,name,brand,unit,qty,purchase_date,remark,will_age,price_per_unit,img_url
\n    }
\n    if (id && price_per_unit) {
\n      inventory_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Inventory Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1748142930');
INSERT INTO `cp5_scriptext` VALUES('66','app','user_signout','$$(document).on(\'page:init\', \'.page[data-name="account_edit"]\', function(e) {
\n  $(document).off("click", "#user_signout").on("click", "#user_signout", function(e) {
\n    e.preventDefault();
\n    localStorage.removeItem(\'f05_user\');
\n    localStorage.removeItem(\'f05_data\');
\n    localStorage.removeItem(\'f05_action\');
\n    localStorage.removeItem(\'f05_bank\');
\n    localStorage.removeItem(\'f05_company\');
\n    localStorage.removeItem(\'f05_inventory\');
\n    localStorage.removeItem(\'f05_journal\');
\n    localStorage.removeItem(\'f05_person\');
\n    localStorage.removeItem(\'f05_product\');
\n    localStorage.removeItem(\'f05_sales\');
\n    localStorage.removeItem(\'f05_transaction\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n    window.location.reload()
\n  });
\n})','js','0','2','1','1747108950');
INSERT INTO `cp5_scriptext` VALUES('70','app','bank','$(document).on(\'page:init\', \'.page[data-name="bank"]\', async function (e) {
\n  console.log(\'app bank ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f05_bank\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  strHtml =`
\n  <div class="stock-list">`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n    <a href="/bank_edit/`+i+`" id="bank_`+dt[i].id+`" class="item-link item-content">
\n      <div class="stock-item">
\n        <img src="https://yui.xioyuna.com/template/img/icons/apple.svg" alt="">
\n        <div class="stock-item-details">
\n          <div class="stock-item-top">
\n            <div class="stock-item-title">`+dt[i].bank_name+`</div>
\n            <div class="stock-item-value fs-sm">`+dt[i].account_number+`</div>
\n          </div>
\n          <div class="stock-item-bottom">
\n            <div class="stock-item-name">`+dt[i].account_name+`</div>
\n            <div class="stock-item-change text-color-green fs-sm">`+dt[i].balance+`</div>
\n          </div>
\n        </div>
\n      </div>
\n     </a>`;
\n  }
\n    strHtml +=`
\n  </div>`;
\n  $$("#bank_content").html(strHtml);
\n})','js','0','2','1','1748471685');
INSERT INTO `cp5_scriptext` VALUES('71','app','bank_edit','$(document).on(\'page:beforein\', \'.page[data-name="bank_edit"]\', async function (e) {
\n  console.log(\'app bank_edit ready\')
\n  var i = e.detail.route.params.id;
\n  console.log(i);
\n  let js = JSON.parse(localStorage.getItem(\'f05_bank\'));
\n  let dt= js.data[i];
\n  console.log(dt)
\n  document.querySelector(\'#b2_id\').value = dt.id || \'\';
\n  document.querySelector(\'#b2_cif\').value = dt.cif || \'\';
\n  document.querySelector(\'#b2_account_name\').value = dt.account_name || \'\';
\n  document.querySelector(\'#b2_bank_name\').value = dt.bank_name || \'\';
\n  document.querySelector(\'#b2_swift_code\').value = dt.swift_code|| \'\';
\n  document.querySelector(\'#b2_account_number\').value = dt.account_number || \'\';
\n  document.querySelector(\'#b2_currency\').value = dt.currency|| \'\';
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="bank_edit"]\', function(e) {  
\n  $$(\'.bank_edit_button\')[\'on\'](\'click\', function() {
\n  e.preventDefault();
\n    const id = $(\'#b2_id\').val();
\n    const cif = $(\'#b2_name\').val();
\n    const account_name= $(\'#b2_account_name\').val();
\n    const bank_name= $(\'#b2_bank_name\').val();
\n    const swift_code= $(\'#b2_swift_code\').val();
\n    const account_number= $(\'#b2_account_number\').val();
\n    const currency= $(\'#b2_currency\').val();
\n
\n    let req = {
\n      id,cif,account_name,bank_name,swift_code,account_number,currency
\n    }
\n    if (id && account_number && bank_name) {
\n      bank_edit(req);
\n      //console.log(req)
\n    } else {
\n      app.dialog.alert("All fields are required", "Bank Edit Errors");
\n    }    
\n  })
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="bank_edit"]\', function(e) {  
\n  $$(\'#bank_delete_button\')[\'on\'](\'click\', function() {
\n  e.preventDefault();
\n    const id = $(\'#b2_id\').val();
\n
\n    let req = {
\n      id
\n    }
\n    if (id) {
\n      bank_delete(req);
\n      //console.log(req)
\n    } else {
\n      app.dialog.alert("All fields are required", "Bank Edit Errors");
\n    }    
\n  })
\n});','js','0','2','1','1748573028');
INSERT INTO `cp5_scriptext` VALUES('74','app','bank_add','$$(document).on(\'page:init\', \'.page[data-name="bank_add"]\', function(e) {
\n  $(document).off("click", "#bank_add_button").on("click", "#bank_add_button", function(e) {
\n    e.preventDefault();
\n    const cif = $(\'#b3_cif\').val();
\n    const account_name= $(\'#b3_account_name\').val();
\n    const bank_name= $(\'#b3_bank_name\').val();
\n    const swift_code= $(\'#b3_swift_code\').val();
\n    const account_number= $(\'#b3_account_number\').val();
\n    const currency= $(\'#b3_currency\').val();
\n
\n    let req = {
\n      cif,account_name,bank_name,swift_code,account_number,currency
\n    }
\n    if (account_number && bank_name) {
\n      bank_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Bank Account Edit Errors");
\n    }
\n  });
\n})','js','0','2','1','1747706249');
INSERT INTO `cp5_scriptext` VALUES('75','app','person','$(document).on(\'page:init\', \'.page[data-name="person"]\', async function (e) {
\n  console.log(\'app person ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f05_person\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  strHtml =`
\n  <div class="list detailed-list list-dividers full-width notification-list">
\n    <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n<li>
\n  <a href="/person_edit/`+i+`" class="link item-content">
\n    <div class="item-media">
\n      <img src="`+dt[i].image+`" alt="">
\n    </div>
\n    <div class="item-inner">
\n      <div class="item-title">
\n        <div class="item-description">
\n           `+dt[i].name+`<br>
\n           <div class="fs-sm fw-300">`+dt[i].address+`</div>
\n        </div>
\n      </div>
\n      <div class="item-after">
\n        <span class="badge bg-color-primary">`+dt[i].phone+`</span>
\n      </div>
\n    </div>
\n  </a>
\n</li>    
\n        `;
\n  }
\n    strHtml +=`
\n    </ul>
\n  </div>`;
\n  $$("#person_content").html(strHtml);
\n})','js','0','2','1','1748096723');
INSERT INTO `cp5_scriptext` VALUES('76','app','person_edit','$(document).on(\'page:beforein\', \'.page[data-name="person_edit"]\', async function (e) {
\n  console.log(\'app person_edit ready\')
\n  var id = e.detail.route.params.id;
\n  console.log(id);
\n  let js = JSON.parse(localStorage.getItem(\'f05_person\'));
\n  let dt= js.data[id];
\n  console.log(dt)
\n  document.querySelector(\'#p9_id\').value = dt.id || \'\';
\n  document.querySelector(\'#p9_name\').value = dt.name || \'\';
\n  document.querySelector(\'#p9_initial\').value = dt.initial || \'\';
\n  document.querySelector(\'#p9_nik\').value = dt.nik || \'\';
\n  document.querySelector(\'#p9_npwp\').value = dt.npwp|| \'\';
\n  document.querySelector(\'#p9_address\').value = dt.address || \'\';
\n  document.querySelector(\'#p9_city\').value = dt.city  || \'\';
\n  document.querySelector(\'#p9_postcode\').value = dt.postcode || \'\';
\n  document.querySelector(\'#p9_email\').value = dt.email || \'\';
\n  document.querySelector(\'#p9_phone\').value = dt.phone || \'\';
\n  //document.querySelector(\'#p9_company_id\').value = dt.company_id || \'\';
\n  let js2 = JSON.parse(localStorage.getItem(\'f05_company\'));
\n  let dt2=js2.data;
\n  let sel9_company =``;
\n  for (let i=0;i<dt2.length;i++) {
\n    if(dt2[i].id==dt.id) {
\n      sel9_company +=`<option selected value="`+dt2[i].id+`">`+dt2[i].name+`</option>`;
\n    } else {
\n      sel9_company +=`<option value="`+dt2[i].id+`">`+dt2[i].name+`</option>`;
\n    }
\n  }
\n  $$("#p9_company_id").html(sel9_company);
\n
\n
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="person_edit"]\', function(e) {
\n  $(document).off("click", "#person_edit_button").on("click", "#person_edit_button", function(e) {
\n    e.preventDefault();
\n    const id = $(\'#p9_id\').val();
\n    const name = $(\'#p9_name\').val();
\n    const initial= $(\'#p9_initial\').val();
\n    const nik= $(\'#p9_nib\').val();
\n    const npwp= $(\'#p9_npwp\').val();
\n    const address= $(\'#p9_address\').val();
\n    const city= $(\'#p9_city\').val();
\n    const postcode= $(\'#p9_postcode\').val();
\n    const email = $(\'#p9_email\').val();
\n    const phone = $(\'#p9_phone\').val();
\n    const company_id = $(\'#p9_company_id\').val();
\n
\n    let req = {
\n      id,name,initial,nik,npwp,address,city,postcode,email,phone,company_id
\n    }
\n    if (id && name) {
\n      person_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Person Edit Errors");
\n    }
\n  });
\n})
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="person_edit"]\', function(e) {  
\n  $$(\'#person_delete_button\')[\'on\'](\'click\', function() {
\n  e.preventDefault();
\n    const id = $(\'#p9_id\').val();
\n
\n    let req = {
\n      id
\n    }
\n    if (id) {
\n      person_delete(req);
\n      //console.log(req)
\n    } else {
\n      app.dialog.alert("All fields are required", "Person Edit Errors");
\n    }    
\n  })
\n});','js','0','2','1','1748477830');
INSERT INTO `cp5_scriptext` VALUES('78','app','person_add','$(document).on(\'page:beforein\', \'.page[data-name="person_add"]\', async function (e) {
\n  console.log(\'app person_add ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f05_company\'));
\n  let dt=js.data;
\n  let sel_company =`<option value="0"></option>`;
\n  for (let i=0;i<dt.length;i++) {
\n    sel_company +=`<option value="`+dt[i].id+`">`+dt[i].name+`</option>`;
\n  }
\n  $$("#p8_company_id").html(sel_company);
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="person_add"]\', function(e) {
\n  $(document).off("click", "#person_add_button").on("click", "#person_add_button", function(e) {
\n    e.preventDefault();
\n    const name = $(\'#p8_name\').val();
\n    const initial= $(\'#p8_initial\').val();
\n    const nik= $(\'#p8_nik\').val();
\n    const npwp= $(\'#p8_npwp\').val();
\n    const address= $(\'#p8_address\').val();
\n    const city= $(\'#p8_city\').val();
\n    const postcode= $(\'#p8_postcode\').val();
\n    const email = $(\'#p8_email\').val();
\n    const phone = $(\'#p8_phone\').val();
\n    const company_id = $(\'#p8_company_id\').val();
\n    /*
\n    let relations= [];
\n    $(\'input[type="checkbox"]:checked\').each(function() {
\n      relations.push($(this).val());
\n    });
\n    console.log(relations)
\n    */
\n    let req = {
\n      name,initial,nik,npwp,address,city,postcode,email,phone,company_id
\n    }
\n    if (name) {
\n      person_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Person Add Errors");
\n    }
\n  });
\n})','js','0','2','1','1748476415');
INSERT INTO `cp5_scriptext` VALUES('80','app','product_add','$(document).on(\'page:beforein\', \'.page[data-name="product_add"]\', async function (e) {
\n  console.log(\'app product_add ready\')
\n  let sel_brand =``;
\n  for (let i in ar.brand) {
\n    sel_brand +=`<label class="radio" style="margin-left: 5px">
\n      <input type="radio" name="p5_brand" value="`+ar.brand[i]+`">
\n      <i class="icon-radio"></i>
\n    </label>`+ar.brand[i];
\n  }
\n  $$("#p5_brand").html(sel_brand);
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="product_add"]\', function(e) {
\n  $(document).off("click", "#product_add_button").on("click", "#product_add_button", function(e) {
\n    e.preventDefault();
\n    const name = $(\'#p5_name\').val();
\n    const code = $(\'#p5_item_code\').val();
\n    let brand = $(\'input[name="p5_brand"]:checked\').val();
\n    const price_per_unit = $(\'#p5_price_per_unit\').val();
\n
\n    let req = {
\n      name,code,brand,price_per_unit
\n    }
\n    if (name && brand && price_per_unit && code) {
\n      product_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Product Add Errors");
\n    }
\n  });
\n})','js','0','2','1','1748485046');
INSERT INTO `cp5_scriptext` VALUES('82','app','aayui','$$(\'.switch-theme\')[\'on\'](\'click\', function() {
\n    $$(\'.page\')[\'toggleClass\'](\'page-theme-transition\'), $$(\'.page\')[\'transitionEnd\'](function() {
\n      $$(\'.page\')[\'toggleClass\'](\'page-theme-transition\');
\n    }), $$(\'body\')[\'hasClass\'](\'dark\') ? $$(\'.switch-theme i\')[\'text\'](\'moon_stars\') : $$(\'.switch-themex20i\')[\'text\'](\'sun_max\'), $$(\'body\')[\'toggleClass\'](\'dark\');
\n  });
\n
\n  $$(\'.switch-theme\')[\'on\'](\'click\', function() {
\n    window[\'parent\'][\'postMessage\'](\'switchTheme\', window[\'location\'][\'origin\']);
\n  });
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="pull-to-refresh"]\', function(e) {
\n  var _0x25330a = $$(\'.ptr-content\');
\n  _0x25330a[\'on\'](\'ptr:refresh\', function(f) {
\n    setTimeout(function() {
\n      var _0x445e42 = _0x31e2,
\n        _0x27dc63 = \'<a href="/single/" class="link post-horizontal">\' + \'<div class="infos">\' + \'<div class="post-category">Fashion</div>\' + \'<div class="post-title">The Importance of Supporting Local and Independent Fashion Brands</div>\' + \'<div class="post-date">2 hours ago</div>\' + \'</div>\' + \'<div class="post-image">NEW</div>\' + \'</a>\';
\n      _0x25330a[\'find\'](\'.post-list\')[\'prepend\'](_0x27dc63), app[\'ptr\'][\'done\']();
\n    }, 0x7d0);
\n  });
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="toasts"]\', function(_0x398215) {
\n  var _0x12ebb0 = app[\'toast\'][\'create\']({
\n      \'text\': \'Thank you for your subscription!\',
\n      \'closeTimeout\': 0x7d0
\n    });
\n  $$(\'.open-toast-bottom\')[\'on\'](\'click\', function() {
\n    _0x12ebb0[\'open\']();
\n  });
\n  var _0x2755ec = app[\'toast\'][\'create\']({
\n    \'text\': \'Thank you for your subscription!\',
\n    \'position\': \'top\',
\n    \'closeTimeout\': 0x7d0
\n  });
\n  $$(\'.open-toast-top\')[\'on\'](\'click\', function() {
\n    _0x2755ec[\'open\']();
\n  });
\n  var _0xd99b99 = app[\'toast\'][\'create\']({
\n    \'text\': \'Thank you for your subscription!\',
\n    \'position\': \'center\',
\n    \'closeTimeout\': 0x7d0
\n  });
\n  $$(\'.open-toast-center\')[\'on\'](\'click\', function() {
\n    _0xd99b99[\'open\']();
\n  });
\n  var _0x869315 = app[\'toast\'][\'create\']({
\n    \'text\': \'Thank you for your subscription!\',
\n    \'closeButton\': !![]
\n  });
\n  $$(\'.open-toast-button\')[\'on\'](\'click\', function() {
\n    _0x869315[\'open\']();
\n  });
\n});
\n
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="picker"]\', function(_0x1cf007) {
\n  var _0x601261 = app[\'picker\'][\'create\']({
\n      \'inputEl\': \'#demo-picker-language\',
\n      \'cols\': [{
\n        \'textAlign\': \'center\',
\n        \'values\': [\'Spanish\', \'English\', \'Arabic\', \'Hindi\', \'Portuguese\', \'Russian\', \'Japanese\', \'German\']
\n      }]
\n    }),
\n    _0x4f4300 = app[\'picker\'][\'create\']({
\n      \'inputEl\': \'#demo-picker-month\',
\n      \'cols\': [{
\n        \'textAlign\': \'center\',
\n        \'values\': [\'January\', \'February\', \'March\', \'April\', \'May\', \'June\', \'July\', \'August\', \'September\', \'October\', \'November\', \'December\']
\n      }]
\n    }),
\n    _0x36991b = app[\'picker\'][\'create\']({
\n      \'inputEl\': \'#demo-picker-day\',
\n      \'cols\': [{
\n        \'textAlign\': \'center\',
\n        \'values\': [\'1\', \'2\', \'3\', \'4\', \'5\', \'6\', \'7\', \'8\', \'9\', \'10\', \'11\', \'12\', \'13\', \'14\', \'15\', \'16\', \'17\', \'18\', \'19\', \'20\', \'21\', \'22\', \'23\', \'24\', \'25\', \'26\', \'27\', \'28\', \'29\', \'30\', \'31\']
\n      }]
\n    }),
\n    _0x577f9b = app[\'picker\'][\'create\']({
\n      \'inputEl\': \'#demo-picker-year\',
\n      \'cols\': [{
\n        \'textAlign\': \'center\',
\n        \'values\': [\'1983\', \'1984\', \'1985\', \'1986\', \'1987\', \'1988\', \'1989\', \'1990\', \'1991\', \'1992\', \'1993\', \'1994\', \'1995\', \'1996\', \'1997\', \'1998\', \'1999\', \'2000\', \'2001\', \'2002\', \'2003\', \'2004\', \'2005\']
\n      }]
\n    });
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="preloader"]\', function(_0x3956a7) {
\n  $$(\'.open-preloader\')[\'on\'](\'click\', function() {
\n    app[\'preloader\'][\'show\'](), setTimeout(function() {
\n      app[\'preloader\'][\'hide\']();
\n    }, 0x7d0);
\n  });
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="range-slider"]\', function(_0x25f1fb) {
\n  $$(\'#age-filter\')[\'on\'](\'range:change\', function(_0x458425, _0x21b073) {
\n    $$(\'.age-value\')[\'text\'](_0x21b073[0x0] + \' - \' + _0x21b073[0x1]);
\n  }), $$(\'#price-filter\')[\'on\'](\'range:change\', function(_0x2aab6e, _0x47ec1f) {
\n    $$(\'.price-value\')[\'text\'](\'$\' + _0x47ec1f[0x0] + \' - $\' + _0x47ec1f[0x1]);
\n  });
\n});
\n
\n
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="onboarding"]\', function(_0x24dc20) {
\n  const _0x120dc9 = document[\'querySelector\'](\'.swiper-onboarding\');
\n  $$(\'.onboarding-next-button\')[\'on\'](\'click\', () => {
\n    const _0x26252c = _0x120dc9[\'swiper\'][\'slides\'][\'length\'],
\n      _0x5fe4a1 = _0x120dc9[\'swiper\'][\'activeIndex\'] + 0x1;
\n    console[\'log\'](_0x5fe4a1 + \' / \' + _0x26252c);
\n    if (_0x5fe4a1 == _0x26252c) {
\n      app[\'views\'][\'current\'][\'router\'][\'back\']();
\n      return;
\n    }
\n    _0x120dc9[\'swiper\'][\'slideNext\'](), _0x5fe4a1 == _0x26252c - 0x1 && $$(\'.onboarding-next-button\')[\'text\'](\'Start!\');
\n  });
\n});
\n
\n$$(\'swiper-slide a\')[\'on\'](\'click\', function() {
\n  app[\'views\'][\'current\'][\'router\'][\'navigate\']($$(this)[\'attr\'](\'data-href\'));
\n});
\n
\n$$(document)[\'on\'](\'page:init\', function(_0x57fb2f) {
\n  $$(\'swiper-slide a\')[\'on\'](\'click\', function() {
\n    app[\'views\'][\'current\'][\'router\'][\'navigate\']($$(this)[\'attr\'](\'data-href\'));
\n  });
\n})
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="dialog"]\', function(_0x3d4d10) {
\n  $$(\'.open-alert\')[\'on\'](\'click\', function() {
\n    app[\'dialog\'][\'alert\'](\'Your subscription has been confirmed.\');
\n  }), $$(\'.open-confirm\')[\'on\'](\'click\', function() {
\n    app[\'dialog\'][\'confirm\'](\'Confirm your subscription?\', function() {
\n      app[\'dialog\'][\'alert\'](\'Confirmed!\');
\n    });
\n  });
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="photo-browser"]\', function(_0x15102d) {
\n   var _0x5a0239 = app[\'photoBrowser\'][\'create\']({
\n      \'photos\': [\'https://yui.xioyuna.com/template/img/images/1.jpg\', \'https://yui.xioyuna.com/template/img/images/2.jpg\', \'https://yui.xioyuna.com/template/img/images/3.jpg\', \'https://yui.xioyuna.com/template/img/images/4.jpg\', \'https://yui.xioyuna.com/template/img/images/5.jpg\'],
\n      \'theme\': \'dark\'
\n    });
\n  $$(\'.photo-browser-demo\')[\'on\'](\'click\', function() {
\n    _0x5a0239[\'open\']();
\n  });
\n});
\n
\n
\n
\n$$(document)[\'on\'](\'actions:open actions:close dialog:open dialog:close popover:open popover:close\', function() {
\n  window[\'parent\'][\'postMessage\'](\'switchBackdrop\', window[\'location\'][\'origin\']);
\n})
\n
\n$$(document)[\'on\'](\'photobrowser:open photobrowser:close\', function() {
\n  !$$(\'body\')[\'hasClass\'](\'dark\') && window[\'parent\'][\'postMessage\'](\'switchTheme\', window[\'location\'][\'origin\']);
\n});','js','0','2','1','1747948516');
INSERT INTO `cp5_scriptext` VALUES('83','app','aab','let currentUser = JSON.parse(localStorage.getItem(\'f05_user\'));
\nif(!currentUser ) { app.views.main.router.navigate(\'/signin/\');}
\nconst userAgent = navigator.userAgent;
\nconsole.log(userAgent);
\n     fetch(\'https://api.ipify.org?format=json\')
\n         .then(response => response.json())
\n         .then(data => {
\n             const ipAddress = data.ip;
\n             console.log(\'User IP Address:\', ipAddress);
\n             // Use the IP address as needed
\n         })
\n         .catch(error => {
\n             console.error(\'Error fetching IP address:\', error);
\n         });
\n//console.log(app.views.current)
\n// In page events:
\n/*
\n$$(document).on(\'page:init\', function (e) {
\n  // Page Data contains all required information about loaded and initialized page
\n  var page = e.detail;
\n  console.log(page)
\n})*/','js','0','2','1','1748994479');
INSERT INTO `cp5_scriptext` VALUES('84','app','icons','$(document).on(\'page:init\', \'.page[data-name="icons"]\', async function (e) {
\n  console.log(\'app icons ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f05_data\'));
\n  let dt = js.data.result.icons.data;
\n  //console.log(dt)
\n  var strHtml = `
\n<div class="container mt-60">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n  <div class=" search-list_icons searchbar-found list media-list list-outline-ios list-strong-ios list-dividers-ios">
\n    <ul>`;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml +=`
\n      <li>
\n          <div class="item-inner">
\n            <div class="item-title-row">
\n              <div class="item-title">`+dt[i].name+`</div>
\n              <div class="item-after"><i class="icon f7-icons">`+dt[i].name+`</i></div>
\n            </div>
\n          </div>
\n      </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>
\n   `;  
\n  $$("#icons_content").html(strHtml);
\n})','js','0','2','1','1747703904');
INSERT INTO `cp5_scriptext` VALUES('85','app','signout','$$(\'#signout\')[\'on\'](\'click\', function() {
\n    console.log(\'app signout ready\')    
\n    localStorage.clear();
\n    app.views.main.router.navigate(\'/signin/\');
\n    window.location.reload();
\n});
\n
\n$$(\'.logout\')[\'on\'](\'click\', function() {
\n    console.log(\'app logout ready\')    
\n    localStorage.clear();
\n    app.views.main.router.navigate(\'/signin/\');
\n    window.location.reload();
\n});
\n/*
\n
\n$(document).on(\'click\', \'#signout\', async function (e) {
\n    e.preventDefault();
\n    console.log(\'app signout ready\')    
\n    localStorage.clear();
\n    app.views.main.router.navigate(\'/signin/\');
\n    /*
\n    resolve({redirect: \'/signin/\'});
\n    resolve({url: \'/signin/\'});
\n    resolve({path: \'/signin/\'});
\n    /*
\n    app.views.main.router.navigate(\'/\');
\n    app.views.current.router.
\n    
\n    app.views.current.router.navigate(\'/signin/\',{
\n      transition: \'fade\', // Optional: Add a transition effect
\n    })
\n    
\n    app.router.navigate("/signin/", {
\n      transition: \'fade\', // Optional: Add a transition effect
\n    });
\n    
\n    $(\'.toolbar-bottom\').hide();  
\n})
\n/*
\n$(document).on(\'click\', \'.logout_btn\', async function (e) {
\n    e.preventDefault();
\n    localStorage.removeItem(\'f05_user\')
\n    localStorage.removeItem(\'f05_data\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n})
\n
\n$(document).on(\'click\', \'#signout\', async function (e) {
\n    e.preventDefault();
\n    localStorage.removeItem(\'f05_user\')
\n    localStorage.removeItem(\'f05_data\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n    //window.location.reload()
\n})
\n
\n
\n$$(document).on(\'page:init\', \'.page[data-name="account"]\', function(e) {
\n  $(document).off("click", "#signout").on("click", "#signout", function(e) {
\n  console.log(\'app signout ready\')
\n    e.preventDefault();
\n    localStorage.removeItem(\'f05_user\')
\n    localStorage.removeItem(\'f05_data\');
\n    app.views.main.router.navigate(\'/intro/\');  
\n    window.location.reload()
\n  });
\n})
\n*/','js','0','2','1','1747875718');
INSERT INTO `cp5_scriptext` VALUES('176','utils','signin','function signin(req) {
\n  app.preloader.show(\'multi\');
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'signin\',
\n    data: req,
\n    //    body: JSON.stringify(req),
\n    //    headers: {"Content-Type": "application/json"},
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.removeItem(\'f05_user\');
\n        localStorage.removeItem(\'f05_data\');
\n        localStorage.setItem(\'f05_user\', JSON.stringify({
\n          uuid: res.user.data.uuid,
\n          email: res.user.data.email,
\n          sess_token: res.user.data.token,
\n          data: res.user.data
\n        }))
\n        localStorage.setItem(\'f05_data\', JSON.stringify({
\n          data: res.results
\n        }))
\n        //app.preloader.hide();
\n        app.views.main.router.navigate(\'/home/\');
\n        
\n        setTimeout(() => {
\n          app.preloader.hide();
\n          app.views.main.router.navigate(\'/\');
\n          window.location.reload();
\n          console.log(\'app index ready\')
\n        }, 2500)
\n        
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Login Failed\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748995318');
INSERT INTO `cp5_scriptext` VALUES('177','utils','signup','function signup(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'signup\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.removeItem(\'f05_user\')
\n        localStorage.setItem(\'f05_user\', JSON.stringify({
\n          uuid: response.data.uuid,
\n          phone: response.data.phone,
\n          sess_token: response.data.token,
\n          user_name: response.data.fullname
\n        }))
\n        app.preloader.hide();
\n        app.views.main.router.navigate(\'/homepage/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'SignUp Failed\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748611671');
INSERT INTO `cp5_scriptext` VALUES('178','utils','password_forgot','function password_forgot(req) {
\n  return new Promise((resolve, reject) => {
\n    $.ajax({
\n      type: "post",
\n      data: req,
\n      url: base_url + \'password_forgot\',
\n      success: (response) => {
\n        resolve(response);
\n        //showToast(\'Update Journal Successfull\');
\n      }
\n    })
\n  })
\n}','js','0','2','2','1747987928');
INSERT INTO `cp5_scriptext` VALUES('179','utils','password_change','function password_change(req) {
\n  return new Promise((resolve, reject) => {
\n    $.ajax({
\n      type: "post",
\n      data: req,
\n      url: base_url + \'password_change\',
\n      success: (response) => {
\n        resolve(response);
\n        showToast(\'Update Password Successfull\');
\n      }
\n    })
\n  })
\n}','js','0','2','2','1747987903');
INSERT INTO `cp5_scriptext` VALUES('180','utils','account_edit','function account_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'account_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'f05_user\', JSON.stringify({
\n          uuid: res.user.data.uuid,
\n          email: res.user.data.email,
\n          sess_token: res.user.data.token,
\n          data: res.user.data
\n        }))
\n        app.preloader.hide();
\n        showToast(\'Update Account Successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit Account Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748607921');
INSERT INTO `cp5_scriptext` VALUES('181','utils','account_delete','function account_delete(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'account_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.removeItem(\'f05_user\')
\n        app.preloader.hide();
\n        showToast(\'Delete Account Successfully\');
\n        app.views.main.router.navigate(\'/signup/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Delete Account Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748607904');
INSERT INTO `cp5_scriptext` VALUES('182','utils','address_add','function address_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'address_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_user\', JSON.stringify({
\n          uuid: res.data.uuid,
\n          email: res.data.email,
\n          sess_token: res.data.token,
\n          data: res.data
\n        }))
\n        showToast(\'Add address successfully\');
\n        app.views.main.router.navigate(\'/address/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add Address Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608104');
INSERT INTO `cp5_scriptext` VALUES('183','utils','address_delete','function user_address_delete(req,elId) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'address_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n          app.preloader.hide();
\n          app.dialog.alert("Address deleted successfully", "Success");
\n          $("#"+elId).remove();
\n          localStorage.setItem(\'f05_user\', JSON.stringify({
\n            uuid: res.data.uuid,
\n            email: res.data.email,
\n            sess_token: res.data.token,
\n            data: res.data
\n          }))
\n      } else {
\n          app.preloader.hide();
\n          app.dialog.alert("Failed to delete address", "Error");
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748611744');
INSERT INTO `cp5_scriptext` VALUES('184','utils','address_edit','function address_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'address_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_user\', JSON.stringify({
\n          uuid: res.data.uuid,
\n          email: res.data.email,
\n          sess_token: res.data.token,
\n          data: res.data
\n        }))
\n        showToast(\'Update User Address Successfully\');
\n        //app.views.main.router.navigate(\'/address/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add Address Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747987767');
INSERT INTO `cp5_scriptext` VALUES('185','utils','get_item','function get_item(req) {
\n  //console.log(req)
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'get_items_by_jenis\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'s23_data_item\', JSON.stringify({
\n          data: res.data,
\n          item: res.item,
\n          c1: res.c1
\n        }))
\n      } else {
\n        console.log(\'error get data\')
\n      }
\n    }
\n  })
\n}','js','1','2','2','0');
INSERT INTO `cp5_scriptext` VALUES('186','utils','get_item_c1','function get_item_c1(req) {
\n  //console.log(req)
\n  localStorage.removeItem(\'s23_data_c1\')
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'get_c1\',
\n    data: req,
\n    success: (res) => {
\n      if (res.status) {
\n        localStorage.setItem(\'s23_data_c1\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        console.log(\'error get data\')
\n      }
\n    }
\n  })
\n}','js','1','2','2','0');
INSERT INTO `cp5_scriptext` VALUES('187','utils','action_add','function action_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'action_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_action\');  
\n        localStorage.setItem(\'f05_action\', JSON.stringify({
\n          data: res.results
\n        }))
\n        showToast(\'Add action successfully\');
\n        //app.views.main.router.navigate(\'/action/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add action error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748607978');
INSERT INTO `cp5_scriptext` VALUES('188','utils','action_edit','function action_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'action_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_action\'); 
\n        localStorage.setItem(\'f05_action\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Update action successfully\');
\n        //app.views.main.router.navigate(\'/action/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit action error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608051');
INSERT INTO `cp5_scriptext` VALUES('189','utils','action','function action() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f05_action\'); 
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'action\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_action\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Action Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','0');
INSERT INTO `cp5_scriptext` VALUES('193','utils','journal','function journal() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f05_journal\'); 
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'journal\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_journal\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Journal Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','0');
INSERT INTO `cp5_scriptext` VALUES('194','utils','product_retur','function product_retur(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'product_retur\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_product\');  
\n        localStorage.setItem(\'f05_product\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Add product retur successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Product Retur Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748607714');
INSERT INTO `cp5_scriptext` VALUES('195','utils','journal_edit','function journal_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'journal_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f01_journal\');  
\n        app.preloader.hide();
\n        localStorage.setItem(\'f01_journal\', JSON.stringify({
\n          data: res.results
\n        }))
\n        showToast(\'Update Journal Successfully\');
\n        //app.views.main.router.navigate(\'/journal/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit journal Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747987986');
INSERT INTO `cp5_scriptext` VALUES('196','utils','product_edit','function product_edit(req) {
\n  app.preloader.show();
\n  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'product_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f05_product\');  
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_product\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Update Product Successfully\');
\n        //app.views.main.router.navigate(\'/product/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit product Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748490878');
INSERT INTO `cp5_scriptext` VALUES('197','utils','product_add','function product_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'product_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_product\');
\n        localStorage.setItem(\'f05_product\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Add product successfully\');
\n        //app.views.main.router.navigate(\'/product/\');
\n        window.location.reload();
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add product error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748611237');
INSERT INTO `cp5_scriptext` VALUES('198','utils','product','function product() {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'product\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_product\');  
\n        localStorage.setItem(\'f05_product\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List product Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748611224');
INSERT INTO `cp5_scriptext` VALUES('199','utils','inventory_add','function inventory_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'inventory_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_inventory\');  
\n        localStorage.setItem(\'f05_inventory\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Update Action Successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add inventory Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748436267');
INSERT INTO `cp5_scriptext` VALUES('200','utils','inventory_edit','function inventory_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'inventory_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f05_inventory\');  
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_inventory\', JSON.stringify({
\n          data: res.results
\n        }))
\n        showToast(\'Update Inventory Successfully\');
\n        //app.views.main.router.navigate(\'/inventory/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit inventory Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608358');
INSERT INTO `cp5_scriptext` VALUES('201','utils','inventory','function inventory() {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'inventory\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_inventory\');  
\n        localStorage.setItem(\'f05_inventory\', JSON.stringify({
\n          data: res.data
\n        }))
\n        //showToast(\'Update/Upload Image Successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List inventory Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608336');
INSERT INTO `cp5_scriptext` VALUES('205','utils','product_buy','function product_buy(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'product_buy\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_product\');  
\n        localStorage.setItem(\'f05_product\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Add product stock Successfully\');
\n        //app.views.main.router.navigate(\'/\');
\n        //window.location.reload();
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add product stock error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748506225');
INSERT INTO `cp5_scriptext` VALUES('207','utils','product_sell','function product_sell(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'product_sell\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_product\');  
\n        localStorage.setItem(\'f05_product\', JSON.stringify({
\n          data: res.product.data
\n        }))
\n        localStorage.removeItem(\'f05_sales\');  
\n        localStorage.setItem(\'f05_sales\', JSON.stringify({
\n          data: res.sales.data
\n        }))
\n        showToast(\'Add product sell successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add product sell Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748595815');
INSERT INTO `cp5_scriptext` VALUES('209','utils','company_edit','function company_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'company_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f05_company\');  
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_company\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Update Company Successfully\');
\n        //app.views.main.router.navigate(\'/company/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Company Edit Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747987977');
INSERT INTO `cp5_scriptext` VALUES('210','utils','company_add','function company_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'company_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_company\');  
\n        localStorage.setItem(\'f05_company\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Company Add successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Company Add Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608242');
INSERT INTO `cp5_scriptext` VALUES('211','utils','company','function company() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f05_company\');  
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'company\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_company\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Company Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','0');
INSERT INTO `cp5_scriptext` VALUES('212','utils','person','function person() {
\n  app.preloader.show();
\n  localStorage.removeItem(\'f05_person\');  
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'person\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_person\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Person Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','0');
INSERT INTO `cp5_scriptext` VALUES('213','utils','bank','function bank() {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'bank\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_bank\'); 
\n        localStorage.setItem(\'f05_bank\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Bank Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748473932');
INSERT INTO `cp5_scriptext` VALUES('214','utils','bank_edit','function bank_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'bank_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_bank\');
\n        localStorage.setItem(\'f05_bank\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Update Bank Account Successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Edit Bank Account Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608176');
INSERT INTO `cp5_scriptext` VALUES('215','utils','bank_add','function bank_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'bank_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_bank\'); 
\n        localStorage.setItem(\'f05_bank\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Add Bank Account Successfully\');
\n        //app.views.main.router.navigate(\'/bank/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add Bank Account Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608131');
INSERT INTO `cp5_scriptext` VALUES('216','utils','person_edit','function person_edit(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'person_edit\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f05_person\');  
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_person\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Update Person Successfully\');
\n        //app.views.main.router.navigate(\'/person/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Person Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1747987960');
INSERT INTO `cp5_scriptext` VALUES('217','utils','person_add','function person_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'person_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_person\');  
\n        localStorage.setItem(\'f05_person\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Add person successfully\');
\n        //app.views.main.router.navigate(\'/person/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Person Add Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748611159');
INSERT INTO `cp5_scriptext` VALUES('218','utils','view_product_tab','function view_product_tab() {
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f05_product\'));
\n  if(js) {
\n  //console.log(js)
\n  let dt = js.data.by_brand;
\n  //console.log(dt)
\n  var strHtml = ``;
\n  for(let i=0;i<dt.length;i++) {
\n    strHtml += `<div class="section-title">`+dt[i].brand+`</div>`;
\n    strHtml += ``;
\n    for(let f=0;f<dt[i].items.length;f++) {
\n    strHtml +=`
\n<p class="mt-2 mb-2">`+dt[i].items[f].name+` (`+dt[i].items[f].item_code+`)</p>
\n<div class="movie-header mb-8">
\n  <img src="`+dt[i].items[f].url_img_medium+`" alt="" class="movie-cover">
\n  <div class="movie-infos">
\n    <div class="movie-block">
\n      <i class="icon f7-icons">clock_fill</i>
\n      <div class="movie-block-name">`+dt[i].items[f].hpp+`</div>
\n      <div class="movie-block-text">`+dt[i].items[f].qty+`</div>
\n    </div>
\n    <a href="/product_trx/`+dt[i].items[f].id+`" class="btn btn-xxs btn-primary">Transaction</a>
\n    <a href="/product_sell/`+dt[i].items[f].id+`/4" class="btn btn-xxs btn-warning mt-6">Sell on Cash</a>
\n    <a href="/product_sell/`+dt[i].items[f].id+`/7" class="btn btn-xxs btn-warning mt-6">Sell on Credit</a>
\n    <a href="/product_retur/`+dt[i].items[f].id+`/1" class="btn btn-xxs btn-success mt-6">Retur From</a>
\n  </div>
\n</div>
\n<p class="grid grid-cols-4 grid-gap grid-buttons-demo mt-2 mb-30">
\n  <a href="/product_edit/`+dt[i].items[f].id+`" class="btn btn-xxs btn-primary">Edit</a>
\n  <a href="/image_upload/product/`+dt[i].items[f].id+`" data-image="`+dt[i].items[f].url_img_medium+`" class="btn btn-xxs btn-info image_upload">Image</a>
\n  <a href="/product_buy/`+dt[i].items[f].id+`" class="btn btn-xxs btn-warning">Add Stock</a>
\n  <a href="/product_retur/`+dt[i].items[f].id+`/2" class="btn btn-xxs btn-success">Retur To</a>
\n</p>
\n`;
\n    }
\n    strHtml +=``;
\n  }
\n   strHtml += ``;  
\n  //console.log(strHtml)
\n  $$("#product_tab_content").html(strHtml); 
\n  }
\n}','js','0','2','2','1748602329');
INSERT INTO `cp5_scriptext` VALUES('219','db','dbtest','','','0','1','3','1747872771');
INSERT INTO `cp5_scriptext` VALUES('220','app','panel_left','app.on( \'init\', () => {
\nconsole.log(\'app tab_home ready\')
\n});','js','0','2','1','1747878753');
INSERT INTO `cp5_scriptext` VALUES('221','app','account_image_edit','$(document).on(\'page:init\', \'.page[data-name="account_image_edit"]\', async function (e) {
\n  console.log(\'app account_image_edit ready\')
\n  let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  console.log(user)
\n  if (user.data.url_img) {	
\n   $(\'input[name="profile_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-image\', `url(\'${user.data.url_img}\')`)
\n   $(\'input[name="profile_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-size\', \'contain\')
\n   $(\'input[name="profile_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-position\', \'center\')
\n   $(\'input[name="profile_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-repeat\', \'no-repeat\')
\n  }
\n})
\n
\n$(document).on(\'change\', \'input[name="profile_image"]\', function(e) {
\n  const file = e.target.files[0];
\n  const reader = new FileReader();
\n  reader.onload = function(event) {
\n    //console.log($(\'.custom-file-upload.profile\'));
\n    $(\'.custom-file-upload.profile\')
\n      .find(\'label\')
\n      .css(\'background-image\', `url(\'${event.target.result}\')`)
\n      .css(\'background-size\', \'cover\');
\n  };
\n  if (file) {
\n    reader.readAsDataURL(file);
\n  }
\n});
\n
\n$(document).on(\'click\', \'#account_image_edit_button\', async function() {
\n  var view = app.views.current
\n  let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  let tbl=\'users\';
\n
\n  const profile_image = $(\'input[name="profile_image"]\').prop(\'files\')[0]
\n  let profileBase64 = null
\n  if (profile_image) {
\n    // Wrap the FileReader in a Promise to wait for it to complete
\n    profileBase64 = await new Promise((resolve, reject) => {
\n      const reader = new FileReader()
\n      reader.readAsDataURL(profile_image)
\n      reader.onload = () => resolve(reader.result)
\n      reader.onerror = () => reject(new Error(\'Failed to read image as base64\'))
\n    })
\n  }
\n  if (!profileBase64) {
\n    return
\n  }
\n  try {
\n    app.preloader.show()
\n    let img_data=profileBase64;
\n    let id=user.uuid;
\n    let req = {
\n      id,tbl,img_data
\n    }
\n    let promises = []
\n    if (profileBase64) {
\n    //console.log(req)
\n      promises.push(upload_image(req))
\n    }
\n    const responses = await Promise.all(promises)
\n    app.preloader.hide()
\n    if (responses.every(response => response && response.success)) {
\n      showToast(\'Images updated successfully\', \'Success\')
\n      return
\n    }
\n    if (responses.some(response => response && !response.success)) {
\n      throw new Error(\'Failed to update images\')
\n    }
\n  } catch (error) {
\n    app.preloader.hide()
\n    app.notification.create({
\n      titleRightText: \'now\',
\n      subtitle: \'Oops, something went wrong\',
\n      text: error.message || \'Failed to update images\',
\n    }).open()
\n  }
\n})','js','0','2','1','1748085010');
INSERT INTO `cp5_scriptext` VALUES('222','utils','image_upload','function image_upload(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "POST",
\n    url: base_url + \'image_upload\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        showToast(\'Update/Upload Image Successfully\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Upload Image Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748682023');
INSERT INTO `cp5_scriptext` VALUES('223','app','action_list','$(document).on(\'page:init\', \'.page[data-name="action_list"]\', async function (e) {
\n  console.log(\'app action_list ready\')
\n  var view = app.views.current
\n  let js = JSON.parse(localStorage.getItem(\'f05_action\'));
\n  let dt = js.data.byseq;
\n  //console.log(dt)
\n  var strHtml = `
\n<div class="container mt-20">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n
\n  <p class="grid grid-cols-4 grid-gap grid-buttons-demo">
\n      <a href="#" class="btn btn-xs btn-primary" onClick="SortByDate(\'a2ct\',\'l2ct\',\'dsc\')"><i class="icon f7-icons">sort_down</i></a>
\n      <a href="#" class="btn btn-xs btn-info" onClick="SortByDate(\'a2ct\',\'l2ct\',\'asc\')"><i class="icon f7-icons">sort_up</i></a>
\n      <a href="#" class="btn btn-xs btn-primary" onClick="SortById(\'a2ct\',\'l2ct\',\'dsc\')"><i class="icon f7-icons">sort_down</i></a>
\n      <a href="#" class="btn btn-xs btn-info" onClick="SortById(\'a2ct\',\'l2ct\',\'asc\')"><i class="icon f7-icons">sort_up</i></a>
\n    </p>
\n
\n  <div class="search-list_action_list searchbar-found list detailed-list list-dividers full-width">
\n    <ul id="a2ct">`;
\n    //list detailed-list list-dividers full-width
\n  for (let i in dt) {
\n    strHtml +=`
\n         <li class="l2ct" data-id="`+dt[i].id+`" data-amount="`+dt[i].amount+`" data-date="`+dt[i].action_at+`">
\n          <a href="/action_edit/`+dt[i].id+`" class="item-link item-content">
\n            <div class="item-media"><img src="`+dt[i].image+`" class="event-thumbnail" alt=""></div>
\n            <div class="item-inner">
\n              <div class="item-title">
\n                <div class="item-name">`;
\n    if(dt[i].st_trx==1) {
\n      strHtml +=`<i class="icon f7-icons text-color-green">checkmark_circle_fill</i> `;
\n    } else {
\n      strHtml +=``;
\n    }
\n    strHtml +=  dt[i].descr+`</div>
\n                <div class="item-footer">`+dt[i].invoice+`, `+dt[i].p3+`</div>
\n              </div>
\n              <div class="item-after">
\n              <div class="text-color-`+dt[i].col+`">`+dt[i].rp+`</div>
\n              </div>
\n            </div>
\n          </a>
\n        </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>`;  
\n  $$("#action_list_content").html(strHtml);
\n})','js','0','2','1','1748387814');
INSERT INTO `cp5_scriptext` VALUES('224','app','action_edit','$(document).on(\'page:beforein\', \'.page[data-name="action_edit"]\', async function (e) {
\n  console.log(\'app action_edit ready\')
\n  var i= e.detail.route.params.id
\n  //console.log(aid)
\n  let js = JSON.parse(localStorage.getItem(\'f05_action\'));
\n  let dt = js.data.byid[i];  
\n  console.log(dt)
\n  document.querySelector(\'#a2_id\').value = dt.id || \'\';
\n  document.querySelector(\'#a2_descr\').value = dt.descr || \'\';
\n  document.querySelector(\'#a2_invoice\').value = dt.invoice || \'\';
\n  document.querySelector(\'#a2_action_at\').value = dt.act_date || \'\';
\n  //document.querySelector(\'#a2_bank\').value = dt.bank || \'\';
\n  document.querySelector(\'#a2_amount\').value = dt.amount || \'\';
\n  document.querySelector(\'#a2_pay_to\').value = dt.pay_to || \'\';
\n  document.querySelector(\'#a2_pay_from\').value = dt.pay_from || \'\';
\n  let a2_menu=`
\n  <a href="/image_upload/action/`+dt.id+`" data-image="`+dt.image+`" class="btn btn-xs btn-primary image_upload">Image</a>
\n  <!--<a href="/transaction_add/`+dt.id+`" class="btn btn-xs btn-success">Posting</a>-->  
\n`;
\n$$("#a2_topmenu").html(a2_menu);
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="action_edit"]\', function(e) {
\n  $(document).off("click", "#action_edit_button").on("click", "#action_edit_button", function(e) {
\n    e.preventDefault();
\n    let id = $(\'#a2_id\').val();
\n    let descr = $(\'#a2_descr\').val();
\n    let invoice = $(\'#a2_invoice\').val();
\n    let req = {
\n      id,descr,invoice
\n    }
\n    if (id,descr) {
\n      action_edit(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Edit Action Errors");
\n    }
\n  });
\n})
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="action_edit"]\', function(e) {  
\n  $$(\'#action_delete_button\')[\'on\'](\'click\', function() {
\n  e.preventDefault();
\n    const id = $(\'#a2_id\').val();
\n
\n    let req = {
\n      id
\n    }
\n    if (id) {
\n      action_delete(req);
\n      //console.log(req)
\n    } else {
\n      app.dialog.alert("All fields are required", "Action transaction delete errors");
\n    }    
\n  })
\n});','js','0','2','1','1748744403');
INSERT INTO `cp5_scriptext` VALUES('225','app','image_upload','$(document).on(\'click\', \'.image_upload\', async function (e) {
\n  const image= e.target.closest(\'.image_upload\').dataset.image;
\n  setTimeout(() => {
\n    //console.log(image)
\n    if (image) {
\n      $$(\'input[name="item_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-image\', `url(\'${image}\')`)
\n      $$(\'input[name="item_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-size\', \'contain\')
\n      $$(\'input[name="item_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-position\', \'center\')
\n      $$(\'input[name="item_image"]\').closest(\'.custom-file-upload\').find(\'label\').css(\'background-repeat\', \'no-repeat\')
\n    }
\n  }, 300)    
\n})
\n
\n$(document).on(\'page:beforein\', \'.page[data-name="image_upload"]\', async function(e) {
\n  console.log(\'app image_upload ready\')
\n  var tbl = e.detail.route.params.cat;
\n  var id = e.detail.route.params.id;
\n  /*
\n  if(tbl==\'users\') {
\n    let js=JSON.parse(localStorage.getItem(\'f05_user\'));
\n    let id=js.data.user.id;
\n  } else {
\n    var id = e.detail.route.params.id;
\n  }
\n  */
\n  console.log(id + \', \' + tbl);  
\n  var strHtml = `
\n<div class="custom-file-upload item" id="fileUpload">
\n  <input type="hidden" id="a8_id" value="` + id + `">
\n  <input type="hidden" id="a8_tbl" value="` + tbl + `">
\n  <input type="file" id="fileuploadInput" name="item_image" />
\n  <label for="fileuploadInput">
\n  </label>
\n</div>
\n<div class="centered-text mb-15">Tap to Upload</div>
\n<div class="centered-text">
\n  <a href="#" id="image_upload_button" class="btn btn-primary fw-700">Save</a>
\n</div>`;
\n  $$("#image_upload_content").html(strHtml);  
\n});
\n
\n$(document).on(\'change\', \'input#fileuploadInput\', function(e) {
\n  const file = e.target.files[0]
\n  const reader = new FileReader()
\n  reader.onload = function(e) {
\n    document.querySelector(\'.custom-file-upload label\').style.backgroundImage = `url(\'${e.target.result}\')`
\n    document.querySelector(\'.custom-file-upload label\').style.backgroundSize = \'cover\'
\n  }
\n  reader.readAsDataURL(file)
\n})
\n
\n$(document).on(\'change\', \'input[name="item_image"]\', function(e) {
\n  const file = e.target.files[0];
\n  const reader = new FileReader();
\n  reader.onload = function(event) {
\n    //console.log($(\'.custom-file-upload.item\'));
\n    $(\'.custom-file-upload.item\')
\n      .find(\'label\')
\n      .css(\'background-image\', `url(\'${event.target.result}\')`)
\n      .css(\'background-size\', \'cover\');
\n  };
\n  if (file) {
\n    reader.readAsDataURL(file);
\n  }
\n});
\n
\n$$(document).on(\'click\', \'#image_upload_button\', async function() {
\n  var view = app.views.current
\n  const id = $(\'#a8_id\').val();
\n  const tbl = $(\'#a8_tbl\').val();
\n  const item_image = $(\'input[name="item_image"]\').prop(\'files\')[0]
\n  let itemImgBase64 = null
\n  if (item_image) {
\n    // Wrap the FileReader in a Promise to wait for it to complete
\n    itemImgBase64 = await new Promise((resolve, reject) => {
\n      const reader = new FileReader()
\n      reader.readAsDataURL(item_image)
\n      reader.onload = () => resolve(reader.result)
\n      reader.onerror = () => reject(new Error(\'Failed to read image as base64\'))
\n    })
\n    //console.log(itemImgBase64)
\n  }
\n  if (itemImgBase64) {
\n    let img_data= itemImgBase64;
\n    let req = {
\n      id,tbl,img_data
\n    }
\n    try {
\n      app.preloader.show()
\n      let promises = [];
\n      if (req) {
\n        console.log(req)  
\n        promises.push(image_upload(req))
\n      }
\n      const responses = await Promise.all(promises)
\n      app.preloader.hide()
\n    } catch (error) {
\n      app.preloader.hide()
\n      app.dialog.alert(res.message, \'Upload Image Error\');
\n    }
\n  }
\n});','js','0','2','1','1748700923');
INSERT INTO `cp5_scriptext` VALUES('226','app','transaction_add','$(document).on(\'page:beforein\', \'.page[data-name="transaction_add"]\', async function (e) {
\n  console.log(\'app transaction_add ready\')
\n  var i= e.detail.route.params.id
\n  console.log(i)
\n  let js2 = JSON.parse(localStorage.getItem(\'f05_data\'));
\n  let dtl = js2.data.result.account_trx.data.left;  
\n  //console.log(dtl);
\n  let dtr = js2.data.result.account_trx.data.right;  
\n  //console.log(dtr);
\n  let dta = js2.data.result.account_trx.data.all;  
\n  //console.log(dta);
\n  let js_action = JSON.parse(localStorage.getItem(\'f05_action\'));
\n  let dt = js_action.data.byid[i];  
\n  console.log(dt)
\n    document.querySelector(\'#t1_action_id\').value = dt.id|| \'\';
\n    document.querySelector(\'#t1_action_at\').value = dt.action_at || \'\';
\n  
\n  //console.log(dt)
\n  let sel_debit=`<option value="0"></option>`;
\n  for (let i in dta) {
\n  sel_debit +=`<option value="`+dta[i].code+`">`+dta[i].name+`</option>`;
\n  }
\n  $$("#t1_debit").html(sel_debit);
\n
\n  let sel_credit=`<option value="0"></option>`;
\n  for (let i in dta) {
\n  sel_credit+=`<option value="`+dta[i].code+`">`+dta[i].name+`</option>`;
\n  }
\n  $$("#t1_credit").html(sel_credit);
\n
\n});
\n
\n$$(document).on(\'page:init\', \'.page[data-name="transaction_add"]\', function(e) {
\n  $(document).off("click", "#transaction_add_button").on("click", "#transaction_add_button", function(e) {
\n    e.preventDefault();
\n    let action_at = $(\'#t1_action_at\').val();
\n    let action_id = $(\'#t1_action_id\').val();
\n    let debit = $(\'#t1_debit\').val();
\n    let credit = $(\'#t1_credit\').val();
\n    let req = {
\n      action_id,action_at,debit,credit
\n    }
\n    if (action_id,debit,credit) {
\n      transaction_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Edit Action Errors");
\n    }
\n  });
\n})','js','0','2','1','1748387766');
INSERT INTO `cp5_scriptext` VALUES('227','utils','view_action_list','function view_action_list() {
\n  console.log(\'app view_action_list ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f05_action\'));
\n  let dt = js.data.byseq;
\n  //console.log(dt)
\n  var strHtml = `
\n<div class="container mt-20">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n
\n  <p class="grid grid-cols-4 grid-gap grid-buttons-demo">
\n      <a href="#" class="btn btn-xs btn-primary" onClick="SortByDate(\'a2ct\',\'l2ct\',\'dsc\')"><i class="icon f7-icons">sort_down</i></a>
\n      <a href="#" class="btn btn-xs btn-info" onClick="SortByDate(\'a2ct\',\'l2ct\',\'asc\')"><i class="icon f7-icons">sort_up</i></a>
\n      <a href="#" class="btn btn-xs btn-primary" onClick="SortById(\'a2ct\',\'l2ct\',\'dsc\')"><i class="icon f7-icons">sort_down</i></a>
\n      <a href="#" class="btn btn-xs btn-info" onClick="SortById(\'a2ct\',\'l2ct\',\'asc\')"><i class="icon f7-icons">sort_up</i></a>
\n    </p>
\n
\n  <div class="search-list_action_list searchbar-found list detailed-list list-dividers full-width">
\n    <ul id="a2ct">`;
\n    //list detailed-list list-dividers full-width
\n  for (let i in dt) {
\n    strHtml +=`
\n         <li class="l2ct" data-id="`+dt[i].id+`" data-amount="`+dt[i].amount+`" data-date="`+dt[i].action_at+`">
\n          <a href="/action_edit/`+dt[i].id+`" class="item-link item-content">
\n            <div class="item-media"><img src="`+dt[i].image+`" class="event-thumbnail" alt=""></div>
\n            <div class="item-inner">
\n              <div class="item-title">
\n                <div class="item-name">`;
\n    if(dt[i].st_trx==1) {
\n      strHtml +=`<i class="icon f7-icons text-color-green">checkmark_circle_fill</i> `;
\n    } else {
\n      strHtml +=``;
\n    }
\n    strHtml +=  dt[i].descr+`</div>
\n                <div class="item-footer">`+dt[i].invoice+`, `+dt[i].p3+`</div>
\n              </div>
\n              <div class="item-after">
\n              <div class="text-color-`+dt[i].col+`">`+dt[i].rp+`</div>
\n              </div>
\n            </div>
\n          </a>
\n        </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>`;  
\n  $$("#action_list_content").html(strHtml);  
\n}','js','0','2','2','1748392259');
INSERT INTO `cp5_scriptext` VALUES('228','app','inventory_add','$$(document).on(\'page:init\', \'.page[data-name="inventory_add"]\', function(e) {
\n  $(document).off("click", "#inventory_add_button").on("click", "#inventory_add_button", function(e) {
\n    e.preventDefault();
\n    let name = $(\'#i2_name\').val();
\n    let brand = $(\'#i2_brand\').val();
\n    let qty = $(\'#i2_qty\').val();
\n    let unit = $(\'#i2_unit\').val();
\n    let remark = $(\'#i2_remark\').val();
\n    let position = $(\'#i2_position\').val();
\n    let code = $(\'#i2_code\').val();
\n    let price_per_unit = $(\'#i2_price_per_unit\').val();
\n    let will_age = $(\'#i2_will_age\').val();
\n    let purchase_date = $(\'#i2_purchase_date\').val();
\n    let amount = $(\'#i2_amount\').val();
\n    let img_url = $(\'#i2_img_url\').val();
\n    let debit = $(\'input[name="i2_debit"]:checked\').val();
\n    let credit = $(\'#i2_credit\').val();
\n
\n    let req = {
\n      name,brand,qty,unit,remark,position,code,price_per_unit,will_age,purchase_date,img_url,debit,credit
\n    }
\n    console.log(req)
\n    if (name && price_per_unit && debit && credit) {
\n      inventory_add(req);
\n    } else {
\n      app.dialog.alert("All fields are required", "Inventory Add Errors");
\n    }
\n  });
\n})','js','0','2','1','1748436017');
INSERT INTO `cp5_scriptext` VALUES('229','utils','view_account_tab','function view_account_tab() {
\n  console.log(\'app account_tab_content ready\')
\n  let user = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  //let dt = js.user.data;
\n  console.log(user)
\n  var strHtml = `
\n<div class="profile-header">
\n  <div class="profile-image">
\n    <img src="`+user.data.url_img+`" alt="">
\n    <div class="profile-online bg-color-green">
\n    </div>
\n  </div>
\n  <div class="profile-name">`+user.data.fullname+`</div>
\n  <div class="profile-subtitle">`+user.data.email+`</div>
\n</div>
\n<div class="profile-buttons">
\n  <a href="#" class="link contact-button">
\n    <i class="icon f7-icons arrow-back">logo_instagram</i>
\n  </a>
\n  <a href="#" class="link contact-button">
\n    <i class="icon f7-icons arrow-back">logo_twitter</i>
\n  </a>
\n  <a href="#" class="link contact-button">
\n    <i class="icon f7-icons arrow-back">logo_facebook</i>
\n  </a>
\n  <a href="#" class="button button-fill button-round color-dark button-icon-left author-follow">
\n    <i class="icon f7-icons">plus</i>Follow</a>
\n</div>
\n<div id="user_menu" class="list links-list colored-icons-list list-outline list-dividers full-width">
\n  <ul>
\n    <li>
\n      <a href="/account_delete/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">xmark_square_fill</i>
\n        </div>Account Delete</a>
\n    </li>
\n    <li>
\n      <a href="/account_edit/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">arrow_turn_left_down</i>
\n        </div>Account Edit</a>
\n    </li>
\n    <li>
\n      <a href="/address/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">table_badge_more_fill</i>
\n        </div>Address</a>
\n    </li>
\n    <li>
\n      <a href="/image_upload/users/`+user.uuid+`" data-image="`+user.data.url_img+`" class="image_upload">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">photo</i>
\n        </div>Image Edit</a>
\n    </li>
\n    <li>
\n      <a href="/password_change/">
\n        <div class="colored-icon green">
\n          <i class="icon f7-icons">textformat_123</i>
\n        </div>Password Change</a>
\n    </li>
\n  </ul>
\n</div>`;  
\n  $$("#account_tab_content").html(strHtml);  
\n}','js','0','2','2','1748442560');
INSERT INTO `cp5_scriptext` VALUES('230','utils','bank_delete','function bank_delete(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'bank_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_bank\');
\n        localStorage.setItem(\'f05_bank\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Delete Bank Account Successfully\');
\n        //app.views.main.router.navigate(\'/bank/\');
\n        window.location.reload();
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Delete Bank Account error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608158');
INSERT INTO `cp5_scriptext` VALUES('231','utils','company_delete','function company_delete(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'company_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_company\');
\n        localStorage.setItem(\'f05_company\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Delete company successfully\');
\n        //app.views.main.router.navigate(\'/company/\');
\n        window.location.reload();
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Delete company error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748608259');
INSERT INTO `cp5_scriptext` VALUES('232','utils','person_delete','function person_delete(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'person_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_person\');
\n        localStorage.setItem(\'f05_person\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Delete person successfully\');
\n        //app.views.main.router.navigate(\'/person/\');
\n        window.location.reload();
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Delete person error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748611171');
INSERT INTO `cp5_scriptext` VALUES('233','app','tab_product','$(".tab-product" ).on(\'tab:show\', function(e) {
\n  e.preventDefault();  
\n  console.log(\'app tab_product ready\')
\n  view_product_tab();
\n})','js','0','2','1','1748481170');
INSERT INTO `cp5_scriptext` VALUES('234','app','action_out_add','$(document).on(\'page:beforein\', \'.page[data-name="action_out_add"]\', async function (e) {
\n  console.log(\'app action_out_add ready\')
\n  var i= e.detail.route.params.id
\n  let js = JSON.parse(localStorage.getItem(\'f05_data\'));
\n  let dt=js.data.result.menu.data[i];
\n  console.log(dt)
\n  document.querySelector(\'#a3_inout\').value = dt.inout || \'\';
\n  document.querySelector(\'#a3_cat\').value = dt.cat || \'\';
\n  document.querySelector(\'#a3_bank\').value = dt.bank || \'\';
\n  document.querySelector(\'#a3_credit\').value = dt.credit || \'\';
\n  document.querySelector(\'#credit\').value = dt.n_credit || \'\';
\n
\n  let sDebet =`<div class="list list-outline list-dividers full-width">
\n    <ul>`;
\n  for (let a in dt.items) {
\n    sDebet +=`<li>
\n        <label class="item-radio item-radio-icon-start item-content">
\n          <input type="radio" name="a3_debit" value="`+dt.items[a].debit+`">
\n          <i class="icon icon-radio"></i>
\n          <div class="item-inner">
\n            <div class="item-title">`+dt.items[a].n_debit+` (`+dt.items[a].debit+`)</div>
\n          </div>
\n        </label>
\n      </li>`;
\n    }
\n  sDebet+=`</ul>
\n  </div>`;
\n  $$("#a3_debit").html(sDebet);
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="action_out_add"]\', function(e) {  
\n  $$(\'#action_out_add_button\')[\'on\'](\'click\', function() {
\n  e.preventDefault();
\n    let action_at = $(\'#a3_action_at\').val();
\n    let debit = $(\'input[name="a3_debit"]:checked\').val();
\n    let credit = $(\'#a3_credit\').val();
\n    let cat = $(\'#a3_cat\').val();
\n    let bank = $(\'#a3_bank\').val();
\n    let invoice = $(\'#a3_invoice\').val();
\n    let pay_to = $(\'#a3_pay_to\').val();
\n    let inout = $(\'#a3_inout\').val();
\n    let amount = $(\'#a3_amount\').val();
\n    let descr = $(\'#a3_descr\').val();
\n
\n    let req = {
\n      action_at,debit,credit,cat,bank,invoice,pay_to,inout,amount,descr
\n    }
\n    if (debit && credit && action_at && amount) {
\n      action_out_add(req);
\n      //console.log(req)
\n    } else {
\n      app.dialog.alert("All fields are required", "Add out transaction Errors");
\n    }    
\n  })
\n});','js','0','2','1','1748990474');
INSERT INTO `cp5_scriptext` VALUES('235','utils','action_out_add','function action_out_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'action_out_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f05_action\');  
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_action\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Add cost successfully\');
\n        //app.views.main.router.navigate(\'/company/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add cost error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748989725');
INSERT INTO `cp5_scriptext` VALUES('236','app','journal','$(document).on(\'page:init\', \'.page[data-name="journal"]\', async function (e) {
\n  console.log(\'app journal ready\')
\n  var i = e.detail.route.params.id
\n  let js = JSON.parse(localStorage.getItem(\'f05_journal\'));
\n  let dt = js.data[i];
\n  console.log(dt)
\n  var strHtml = `
\n<div class="container mt-20">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n
\n  <p class="grid grid-cols-2 grid-gap grid-buttons-demo">
\n      <a href="#" class="btn btn-xs btn-primary" onClick="SortBySeq(\'a3ct\',\'jou\',\'asc\')"><i class="icon f7-icons">sort_down</i> First</a>
\n      <a href="#" class="btn btn-xs btn-info" onClick="SortBySeq(\'a3ct\',\'jou\',\'dsc\')"><i class="icon f7-icons">sort_up</i> Last</a>
\n    </p>
\n  <div class="section-title">`+dt.name+`</div>
\n  <div class="search-list_journal searchbar-found list detailed-list list-dividers full-width">
\n    <ul id="a3ct">`;
\n    //list detailed-list list-dividers full-width
\n  for (let i in dt.items) {
\n    strHtml +=`
\n         <li class="jou" data-seq="`+dt.items[i].seq2+`" data-amount="`+dt.items[i].amount+`" data-date="`+dt.items[i].action_at+`">
\n          <a href="/action_edit/`+dt.items[i].action_id+`" class="item-link item-content">
\n            <div class="item-media"><img src="`+dt.items[i].image+`" class="event-thumbnail" alt=""></div>
\n            <div class="item-inner mt-2 mb-2">
\n              <div class="item-title">
\n                <div class="item-name">
\n                <p class="fs-xxs mb-1">`+dt.items[i].tgl+`</p>
\n                `+dt.items[i].descr+`
\n                </div>
\n                <div class="item-footer text-color-`+dt.items[i].col+`">`+dt.items[i].rp+`</div>
\n              </div>
\n              <div class="item-after">                
\n                <div>`+dt.items[i].rp_balance+`</div>
\n              </div>
\n            </div>
\n          </a>
\n        </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>`;  
\n  $$("#journal_content").html(strHtml);
\n})','js','0','2','1','1748744674');
INSERT INTO `cp5_scriptext` VALUES('237','utils','fcode','function fcode() {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'fcode\',
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_fcode\'); 
\n        localStorage.setItem(\'f05_fcode\', JSON.stringify({
\n          data: res.data
\n        }))
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List fcode error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748651907');
INSERT INTO `cp5_scriptext` VALUES('238','utils','sales','function sales() {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "get",
\n    url: base_url + \'sales\',
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f05_sales\'); 
\n        localStorage.setItem(\'f05_sales\', JSON.stringify({
\n          data: res.data
\n        }))
\n        app.preloader.hide();
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'List Journal Error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748652373');
INSERT INTO `cp5_scriptext` VALUES('239','app','tab_home','$(".tab-home" ).on(\'tab:show\', function(e) {
\n  e.preventDefault();  
\n  console.log(\'app tab_home ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f05_fcode\'));
\n  if(js){
\n    let dt = js.data;
\n    //console.log(dt)
\n    strHtml =``;
\n    for(let i in dt) {
\n      strHtml +=`
\n      <div class="section-title">`+dt[i].name+`</div>`;
\n      strHtml +=`<div class="data-table">
\n        <table>
\n          <thead>
\n            <tr>
\n              <th class="label-cell"></th>
\n              <th class="label-cell">Name</th>
\n              <th class="numeric-cell"></th>
\n              <th class="numeric-cell">Amount</th>
\n            </tr>
\n          </thead>
\n          <tbody>`;
\n      for(let b in dt[i].items) {
\n      strHtml +=`
\n      <tr>
\n       <td class="label-cell">`+dt[i].items[b].code+`</td>
\n       <td class="label-cell">`+dt[i].items[b].name+`</td>
\n       <td class="numeric-cell"></td>
\n       <td class="numeric-cell">`+dt[i].items[b].rp+`</td>
\n      </tr>`;  
\n      for (let c in dt[i].items[b].items) {
\n        strHtml +=`
\n        <tr>
\n         <td class="label-cell">`+dt[i].items[b].items[c].code+`</td>
\n         <td class="label-cell">`+dt[i].items[b].items[c].name+`</td>
\n         <td class="numeric-cell">`+dt[i].items[b].items[c].rp+`</td>
\n         <td class="numeric-cell"></td>
\n        </tr>`;      
\n          for (let d in dt[i].items[b].items[c].items) {
\n            if(dt[i].items[b].items[c].items[d].trx==1) {
\n            strHtml +=`
\n            
\n              <tr>
\n               <td class="label-cell"></td>
\n               <td class="label-cell"><i><a class="link" href="/journal/`+dt[i].items[b].items[c].items[d].cd+`">`+dt[i].items[b].items[c].items[d].name+`</a></i></td>
\n               <td class="numeric-cell"><i>`+dt[i].items[b].items[c].items[d].rp+`</i></td>
\n               <td class="numeric-cell"></td>
\n              </tr>
\n            
\n            `; 
\n            } else {
\n            strHtml +=`
\n            <tr>
\n             <td class="label-cell"></td>
\n             <td class="label-cell"><i>`+dt[i].items[b].items[c].items[d].name+`</i></td>
\n             <td class="numeric-cell"><i>`+dt[i].items[b].items[c].items[d].rp+`</i></td>
\n             <td class="numeric-cell"></td>
\n            </tr>`; 
\n
\n            }             
\n          }
\n        }  
\n      }      
\n      strHtml +=`</tbody></table></div>`;    
\n    }
\n      strHtml +=``;
\n    $$("#home_tab_content").html(strHtml);
\n  } else {
\n    fcode();
\n  }
\n})','js','0','2','1','1748671397');
INSERT INTO `cp5_scriptext` VALUES('240','app','sales','$(document).on(\'page:init\', \'.page[data-name="sales"]\', async function (e) {
\n  console.log(\'app sales ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f05_sales\'));
\n  let dt = js.data;
\n  console.log(dt)
\n  var strHtml = `
\n<div class="container mt-20">
\n  <div class="searchbar-backdrop"></div>
\n  <div class="list list-strong-ios list-outline-ios list-dividers-ios simple-list searchbar-not-found">
\n    <ul>
\n      <li>Nothing found</li>
\n    </ul>
\n  </div>
\n
\n  <p class="grid grid-cols-4 grid-gap grid-buttons-demo">
\n      <a href="#" class="btn btn-xs btn-primary" onClick="SortById(\'a5ct\',\'sles\',\'dsc\')"><i class="icon f7-icons">sort_down</i></a>
\n      <a href="#" class="btn btn-xs btn-info" onClick="SortById(\'a5ct\',\'sles\',\'asc\')"><i class="icon f7-icons">sort_up</i></a>
\n    </p>
\n  <div class="search-list_sales searchbar-found list detailed-list list-dividers full-width">
\n    <ul id="a5ct">`;
\n    //list detailed-list list-dividers full-width
\n  for (let i in dt) {
\n    strHtml +=`
\n         <li class="sles item-content" data-id="`+dt[i].id+`" data-amount="`+dt[i].amount+`" data-date="`+dt[i].sales_at+`">
\n            <div class="item-media"><img src="`+dt[i].image+`" class="event-thumbnail" alt=""></div>
\n            <div class="item-inner mt-2 mb-2">
\n              <div class="item-title">
\n                <div class="item-name">
\n                <p class="fs-xxs mb-1">`+dt[i].tgl+`</p>
\n                `+dt[i].descr+`
\n                </div>
\n                <div class="item-footer">`+dt[i].qty+` pcs hpp:`+dt[i].rp_hpp+`</div>
\n              </div>
\n              <div class="item-after">                
\n                <div>`+dt[i].rp_amount+`</div>
\n              </div>
\n            </div>
\n        </li>`;
\n  }
\n   strHtml += `
\n    </ul>
\n  </div>
\n</div>`;  
\n  $$("#sales_content").html(strHtml);
\n})','js','0','2','1','1748677106');
INSERT INTO `cp5_scriptext` VALUES('241','app','action_in_add','$(document).on(\'page:beforein\', \'.page[data-name="action_in_add"]\', async function (e) {
\n  console.log(\'app action_in_add ready\')
\n  var i= e.detail.route.params.id
\n  let js = JSON.parse(localStorage.getItem(\'f05_data\'));
\n  let dt=js.data.result.menu.data[i];
\n  //console.log(dt)
\n  document.querySelector(\'#a4_inout\').value = dt.inout || \'\';
\n  document.querySelector(\'#a4_cat\').value = dt.cat || \'\';
\n  document.querySelector(\'#a4_bank\').value = dt.bank || \'\';
\n  document.querySelector(\'#a4_debit\').value = dt.debit || \'\';
\n  document.querySelector(\'#debit\').value = dt.n_debit || \'\';
\n  let sCredit =`<div class="list list-outline list-dividers full-width">
\n    <ul>`;
\n  for (let a in dt.items) {
\n    sCredit +=`<li>
\n        <label class="item-radio item-radio-icon-start item-content">
\n          <input type="radio" name="a4_credit" value="`+dt.items[a].credit+`">
\n          <i class="icon icon-radio"></i>
\n          <div class="item-inner">
\n            <div class="item-title">`+dt.items[a].n_credit+` (`+dt.items[a].credit+`)</div>
\n          </div>
\n        </label>
\n      </li>`;
\n    }
\n  sCredit+=`</ul>
\n  </div>`;
\n  $$("#a4_credit").html(sCredit);
\n
\n});
\n
\n$$(document)[\'on\'](\'page:init\', \'.page[data-name="action_in_add"]\', function(e) {  
\n  $$(\'#action_in_add_button\')[\'on\'](\'click\', function() {
\n  e.preventDefault();
\n    let action_at = $(\'#a4_action_at\').val();
\n    let credit = $(\'input[name="a4_credit"]:checked\').val();
\n    let debit = $(\'#a4_debit\').val();
\n    let bank = $(\'#a4_bank\').val();
\n    let cat = $(\'#a4_cat\').val();
\n    let invoice = $(\'#a4_invoice\').val();
\n    let pay_from = $(\'#a4_pay_from\').val();
\n    let inout = $(\'#a4_inout\').val();
\n    let amount = $(\'#a4_amount\').val();
\n    let descr = $(\'#a4_descr\').val();
\n
\n    let req = {
\n      action_at,debit,credit,bank,cat,invoice,pay_from,inout,amount,descr
\n    }
\n    if (debit && credit && action_at && amount) {
\n      action_in_add(req);
\n      //console.log(req)
\n    } else {
\n      app.dialog.alert("All fields are required", "Add in transaction errors");
\n    }    
\n  })
\n});','js','0','2','1','1748992832');
INSERT INTO `cp5_scriptext` VALUES('242','utils','action_in_add','function action_in_add(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'action_in_add\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        localStorage.removeItem(\'f05_action\');  
\n        app.preloader.hide();
\n        localStorage.setItem(\'f05_action\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Add cash in successfully\');
\n        //app.views.main.router.navigate(\'/company/\');
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Add cash in error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748706450');
INSERT INTO `cp5_scriptext` VALUES('243','utils','action_delete','function action_delete(req) {
\n  app.preloader.show();
\n  $.ajax({
\n    type: "post",
\n    url: base_url + \'action_delete\',
\n    data: req,
\n    success: (res) => {
\n      if (res.success) {
\n        app.preloader.hide();
\n        localStorage.removeItem(\'f05_action\');
\n        localStorage.setItem(\'f05_action\', JSON.stringify({
\n          data: res.data
\n        }))
\n        showToast(\'Delete action transaction successfully\');
\n        //app.views.main.router.navigate(\'/bank/\');
\n        window.location.reload();
\n      } else {
\n        app.preloader.hide();
\n        app.dialog.alert(res.message, \'Delete Bank Account error\');
\n      }
\n    }
\n  })
\n}','js','0','2','2','1748744142');
INSERT INTO `cp5_scriptext` VALUES('244','app','tab_add','$(".tab-add" ).on(\'tab:show\', function(e) {
\n  e.preventDefault();  
\n  console.log(\'app tab_add ready\')
\n  let js = JSON.parse(localStorage.getItem(\'f05_data\'));
\n  let dt = js.data.result.menu;
\n  let dt2 = js.data.result.menu.data;
\n  //console.log(dt)
\n  let sMenu=``;
\n  for (let a in dt.name) {
\n    sMenu+=`<div class="light-gray-title">`+dt.name[a].title+`</div>`;
\n    sMenu +=`<p class="grid grid-cols-2 grid-gap grid-buttons-demo mt-10">`;
\n    for (let b in dt.name[a].items) {
\n     //console.log(dt.name[a].items[b].title)
\n     sMenu +=`<a href="/`+dt.name[a].items[b].url+`" class="btn btn-xxs btn-`+dt.name[a].col+`">`+dt.name[a].items[b].title+`</a>`;
\n    }
\n    sMenu +=`</p>`;
\n  }
\n  sMenu+=``;
\n  $$("#add_menu").html(sMenu);
\n });','js','0','2','1','1748925083');
INSERT INTO `cp5_scriptext` VALUES('245','app','reload_data','$$(\'.reload_data\')[\'on\'](\'click\', function() {
\n  console.log(\'app reload_data ready\')
\n  app.preloader.show();
\n  let user_data_var = JSON.parse(localStorage.getItem(\'f05_user\'));
\n  if (user_data_var != null) {    
\n      fcode();
\n      action();
\n      bank();
\n      company();
\n      inventory();
\n      journal();
\n      person();
\n      product();
\n      sales();
\n  } else {
\n    app.views.main.router.navigate(\'/signin/\');
\n  }
\n});','js','0','2','1','1748993747');


