diff --git a/resources/js/pages/patients/patient-profile.vue b/resources/js/pages/patients/patient-profile.vue index d23b923..50dfc35 100644 --- a/resources/js/pages/patients/patient-profile.vue +++ b/resources/js/pages/patients/patient-profile.vue @@ -26,7 +26,7 @@ const tabs = [ title: 'Prescriptions', }, { - icon: 'ri-notification-4-line', + icon: 'ri-survey-line', title: 'Profile', }, // { diff --git a/resources/js/pages/patients/patientprofile.vue b/resources/js/pages/patients/patientprofile.vue index b0ca58c..61f71b5 100644 --- a/resources/js/pages/patients/patientprofile.vue +++ b/resources/js/pages/patients/patientprofile.vue @@ -16,16 +16,10 @@ const address1 = ref(null); const dob = ref(null); const agePatient = ref(null); const isMobile = ref(window.innerWidth <= 768); -const patientId = route.params.patient_id -const props = defineProps({ - patient_id: { - type: Object, - required: true, - }, -}) +const patientId = route.params.id onMounted(async () => { - console.log('patient id',props.patient_id) + // console.log('patient id',props.patient_id) const navbar = document.querySelector('.layout-navbar'); const callDiv = document.querySelector('.layout-page-content'); if (navbar) { @@ -34,8 +28,8 @@ onMounted(async () => { if (callDiv) callDiv.style.padding = '1.5rem'; store.dispatch('updateIsLoading', true) - await store.dispatch('patientDetial',{id:props.patient_id}) - await store.dispatch('getAgentQuestionsAnswers',{patient_id:props.patient_id}) + await store.dispatch('patientDetial',{id:patientId}) + await store.dispatch('getAgentQuestionsAnswers',{patient_id:patientId}) username.value = store.getters.getPatientDetail.patient.first_name + ' ' + store.getters.getPatientDetail.patient.last_name; email.value = store.getters.getPatientDetail.patient.email phone.value = store.getters.getPatientDetail.patient.phone_no