"use strict";var KTAppsEducationSchoolTeacher={init:function(){var t;t=$("#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,columns:[{field:"CompanyName",title:"Teacher",width:250,template:function(t){var a="300_"+KTUtil.getRandomInt(1,20)+".jpg",e=KTUtil.getRandomInt(1,5);return'
\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
'+{1:{title:"Mathematics, BA"},2:{title:"Geography, BSc"},3:{title:"History, PhD"},4:{title:"Physics, MS"},5:{title:"astronomy, MA"}}[e].title+"
\t\t\t\t\t\t\t
\t\t\t\t\t\t
"}},{field:"CompanyAgent",title:"Department",template:function(t){var a="";return a+=''+t.CompanyName+""}},{field:"JoinedDate",title:"Joined",type:"date",width:100,format:"MM/DD/YYYY",template:function(t){var a="";return a+=''+t.ShipDate+"
"}},{field:"Status",title:"Status",autoHide:!1,width:100,template:function(t){var a=KTUtil.getRandomInt(1,3),e={1:{title:"New",class:" label-light-primary"},2:{title:"Active",class:" label-light-danger"},3:{title:"In-active",class:" label-light-info"}};return''+e[a].title+""}},{field:"Actions",title:"Actions",sortable:!1,width:130,overflow:"visible",autoHide:!1,template:function(){return'\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 '}}]}),$("#kt_datatable_search_status").on("change",function(){t.search($(this).val().toLowerCase(),"Status")}),$("#kt_datatable_search_type").on("change",function(){t.search($(this).val().toLowerCase(),"Type")})}};jQuery(document).ready(function(){KTAppsEducationSchoolTeacher.init()});