Browse Source

Calendar default pro pick

Samson Mutunga 1 year ago
parent
commit
f24db62c8e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      resources/views/app/patient/appointment-calendar.blade.php

+ 2 - 1
resources/views/app/patient/appointment-calendar.blade.php

@@ -687,6 +687,7 @@
             <a start show href="#" class="px-2 pb-1 d-block text-nowrap" data-action="showEditAppointmentModal_Status">Edit status</a>
         </div>
     </div>
+    
     <script>
         (function() {
 
@@ -702,7 +703,7 @@
                         client: {!! json_encode($patient) !!},
                         eventTypes: '{{ $currentAppointment ? 'BOTH_ALL' : 'APPOINTMENTS' }}',
                         calendar: null,
-                        proIds: ['{{ $currentAppointment ? $currentAppointment->pro_id : ($oPro ? $oPro->id : $pro->id) }}'],
+                        proIds: ['{{ $currentAppointment ? $currentAppointment->pro_id : ($oPro ? $oPro->id : ($patient->mcp ? $patient->mcp->id : $pro->id)) }}'],
                         lastSelectedProUid: '',
                         timezone: '{{ $currentAppointment ? $currentAppointment->timezone : 'EASTERN' }}',
                         today: new Date('{{ date('Y-m-d 00:00:00') }}'),