diff --git a/resources/js/pages/patients/patient-profile.vue b/resources/js/pages/patients/patient-profile.vue index e99b68f..fe30926 100644 --- a/resources/js/pages/patients/patient-profile.vue +++ b/resources/js/pages/patients/patient-profile.vue @@ -4,8 +4,9 @@ import PatienTabOverview from '@/pages/patients/PatienTabOverview.vue' import PatientBioPanel from '@/pages/patients/PatientBioPanel.vue' import PrescriptionPanel from '@/pages/patients/PrescriptionPanel.vue' -import UserTabNotifications from '@/views/apps/user/view/UserTabNotifications.vue' +// import UserTabNotifications from '@/views/apps/user/view/UserTabNotifications.vue' import { useStore } from 'vuex' +import patientProfile from '../patients/patientprofile.vue' const patientDtail = ref(null); const store = useStore(); @@ -25,6 +26,10 @@ const tabs = [ icon: 'ri-bookmark-line', title: 'Prescriptions', }, + { + icon: 'ri-survey-line', + title: 'Profile', + }, // { // icon: 'ri-notification-4-line', // title: 'Notifications', @@ -98,8 +103,12 @@ onMounted(async () => { - + + + + diff --git a/resources/js/pages/patients/patientprofile.vue b/resources/js/pages/patients/patientprofile.vue index 103b757..b0ca58c 100644 --- a/resources/js/pages/patients/patientprofile.vue +++ b/resources/js/pages/patients/patientprofile.vue @@ -17,9 +17,15 @@ 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, + }, +}) onMounted(async () => { + console.log('patient id',props.patient_id) const navbar = document.querySelector('.layout-navbar'); const callDiv = document.querySelector('.layout-page-content'); if (navbar) { @@ -28,8 +34,8 @@ onMounted(async () => { if (callDiv) callDiv.style.padding = '1.5rem'; store.dispatch('updateIsLoading', true) - await store.dispatch('patientDetial',{id:patientId}) - await store.dispatch('getAgentQuestionsAnswers',{patient_id:patientId}) + await store.dispatch('patientDetial',{id:props.patient_id}) + await store.dispatch('getAgentQuestionsAnswers',{patient_id:props.patient_id}) 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 @@ -116,7 +122,7 @@ const calculateAge = (dateOfBirth) => {