![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/public/assets/js/visits/ |
(()=>{"use strict";var t="#visitsTable";$(document).ready((function(){var e=$(t).DataTable({processing:!0,serverSide:!0,searchDelay:500,language:{lengthMenu:"Show _MENU_"},order:[[2,"desc"]],ajax:{url:visitUrl},columnDefs:[{targets:[0],width:"30%"},{targets:[1],width:"30%"},{targets:[2],width:"18%"},{targets:[3],orderable:!1,className:"text-center",width:"12%"}],columns:[{data:function(t){return'<div class="symbol symbol-circle symbol-50px overflow-hidden me-3">\n <a href="javascript:void(0)">\n <div class="symbol-label">\n <img src="'.concat(t.visit_doctor.user.profile_image,'" alt=""\n class="w-100 object-cover">\n </div>\n </a>\n </div>\n <div class="d-inline-block align-top">\n <a href="').concat(route("doctors.show",t.visit_doctor.id),'"\n class="text-primary-800 mb-1 d-block">').concat(t.visit_doctor.user.full_name,'</a>\n <span class="d-block">').concat(t.visit_doctor.user.email,"</span>\n </div>")},name:"visit_doctor.user.full_name"},{data:function(t){return'<div class="symbol symbol-circle symbol-50px overflow-hidden me-3">\n <a href="javascript:void(0)">\n <div class="symbol-label">\n <img src="'.concat(t.visit_patient.profile,'" alt=""\n class="w-100 object-cover">\n </div>\n </a>\n </div>\n <div class="d-inline-block align-top">\n <a href="').concat(route("patients.show",t.visit_patient.id),'"\n class="text-primary-800 mb-1 d-block">').concat(t.visit_patient.user.full_name,'</a>\n <span class="d-block">').concat(t.visit_patient.user.email,"</span>\n </div>")},name:"visit_patient.user.full_name"},{data:function(t){return t},render:function(t){return null===t.visit_date?"N/A":'<span class="badge badge-light-info">'.concat(moment(t.visit_date).format("Do MMM, Y"),"</span>")},name:"visit_date"},{data:function(t){var e=[{id:t.id,editUrl:route("visits.edit",t.id),showUrl:route("visits.show",t.id)}];return prepareTemplateRender("#visitsTemplate",e)},name:"id"}]});handleSearchDatatable(e)})),$(document).on("click",".delete-btn",(function(e){var a=$(e.currentTarget).data("id");deleteItem(route("visits.destroy",a),t,"Visit")}))})();