![]() 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/dashboard/ |
(()=>{"use strict";$(document).on("click","#monthData",(function(e){e.preventDefault(),$.ajax({url:route("patientData.dashboard"),type:"GET",data:{month:"month"},success:function(e){e.success&&($("#monthlyReport").empty(),$(document).find("#week").removeClass("show active"),$(document).find("#day").removeClass("show active"),$(document).find("#month").addClass("show active"),""!=e.data.patients.data?$.each(e.data.patients.data,(function(e,t){var a=[{image:t.profile,name:t.user.full_name,email:t.user.email,patientId:t.patient_unique_id,registered:moment.parseZone(t.user.created_at).format("Do MMM Y hh:mm A"),appointment_count:t.appointments_count,route:route("patients.show",t.id)}];$(document).find("#monthlyReport").append(prepareTemplateRender("#adminDashboardTemplate",a))})):$(document).find("#monthlyReport").append('<tr class="text-center">\n <td colspan="5" class="text-muted fw-bold">No Data Available</td>\n </tr>'))},error:function(e){displayErrorMessage(e.responseJSON.message)}})})),$(document).on("click","#weekData",(function(e){e.preventDefault(),$.ajax({url:route("patientData.dashboard"),type:"GET",data:{week:"week"},success:function(e){e.success&&($("#weeklyReport").empty(),$(document).find("#month").removeClass("show active"),$(document).find("#day").removeClass("show active"),$(document).find("#week").addClass("show active"),""!=e.data.patients.data?$.each(e.data.patients.data,(function(e,t){var a=[{image:t.profile,name:t.user.full_name,email:t.user.email,patientId:t.patient_unique_id,registered:moment.parseZone(t.user.created_at).format("Do MMM Y hh:mm A"),appointment_count:t.appointments_count,route:route("patients.show",t.id)}];$(document).find("#weeklyReport").append(prepareTemplateRender("#adminDashboardTemplate",a))})):$(document).find("#weeklyReport").append('<tr class="text-center">\n <td colspan="5" class="text-muted fw-bold">No Data Available</td>\n </tr>'))},error:function(e){displayErrorMessage(e.responseJSON.message)}})})),$(document).on("click","#dayData",(function(e){e.preventDefault(),$.ajax({url:route("patientData.dashboard"),type:"GET",data:{day:"day"},success:function(e){e.success&&($("#dailyReport").empty(),$(document).find("#month").removeClass("show active"),$(document).find("#week").removeClass("show active"),$(document).find("#day").addClass("show active"),""!=e.data.patients.data?$.each(e.data.patients.data,(function(e,t){var a=[{image:t.profile,name:t.user.full_name,email:t.user.email,patientId:t.patient_unique_id,registered:moment.parseZone(t.user.created_at).format("Do MMM Y hh:mm A"),appointment_count:t.appointments_count,route:route("patients.show",t.id)}];$(document).find("#dailyReport").append(prepareTemplateRender("#adminDashboardTemplate",a))})):$(document).find("#dailyReport").append('\n <tr class="text-center">\n <td colspan="5" class="text-muted fw-bold">No Data Available</td>\n </tr>'))},error:function(e){displayErrorMessage(e.responseJSON.message)}})}))})();