"use strict";var KTAppsProjectsListDatatable={init:function(){$("#kt_datatable").KTDatatable({data:{type:"remote",source:{read:{url:HOST_URL+"/api/datatables/demos/default.php"}},pageSize:10,serverPaging:!0,serverFiltering:!0,serverSorting:!0},layout:{scroll:!1,footer:!1},sortable:!0,pagination:!0,search:{input:$("#kt_subheader_search_form"),delay:400,key:"generalSearch"},columns:[{field:"RecordID",title:"#",sortable:"asc",width:40,type:"number",selector:!1,textAlign:"left",template:function(t){return''+t.RecordID+""}},{field:"OrderID",title:"Customer",width:250,template:function(t){var e=KTUtil.getRandomInt(1,10),a=["Angular, React","Vue, Kendo",".NET, Oracle, MySQL","Node, SASS, Webpack","MangoDB, Java","HTML5, jQuery, CSS3","React, Vue","MangoDB, Node.js"];return e<7?'
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
'+t.CompanyAgent+'
\t\t\t\t\t\t\t\t\t
'+a[e-1]+"\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
":'\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t'+t.CompanyAgent.substring(0,1)+'\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t
'+t.CompanyAgent+'
\t\t\t\t\t\t\t\t\t
'+a[e-4]+"\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
"}},{field:"Country",title:"Country",template:function(t){var e="";return e+=''+t.Country+"
",e+='Code: '+t.ShipCountry+"
"}},{field:"ShipDate",title:"Ship Date",type:"date",format:"MM/DD/YYYY",template:function(t){var e="",a=KTUtil.getRandomInt(1,4);return e+=''+t.ShipDate+"
",e+=''+{1:{title:"Paid",class:" label-light-primary"},2:{title:"Approved",class:" label-light-danger"},3:{title:"Pending",class:" label-light-primary"},4:{title:"Rejected",class:" label-light-success"}}[a].title+"
"}},{field:"CompanyName",title:"Company Name",template:function(t){var e="";return e+=''+t.CompanyName+"
"}},{field:"Status",title:"Status",template:function(t){var e={1:{title:"Pending",class:" label-light-primary"},2:{title:"Delivered",class:" label-light-danger"},3:{title:"Canceled",class:" label-light-primary"},4:{title:"Success",class:" label-light-success"},5:{title:"Info",class:" label-light-info"},6:{title:"Danger",class:" label-light-danger"},7:{title:"Warning",class:" label-light-warning"}};return''+e[t.Status].title+""}},{field:"Actions",title:"Actions",sortable:!1,width:130,overflow:"visible",autoHide:!1,template:function(){return' '}}]})}};jQuery(document).ready(function(){KTAppsProjectsListDatatable.init()});