Эх сурвалжийг харах

NA dashboard appts - also show hcp name

Vijayakrishnan 3 жил өмнө
parent
commit
60249e7e19

+ 1 - 1
resources/views/app/dashboard-dna.blade.php

@@ -272,7 +272,7 @@
             function onDateChange(_newDate) {
             function onDateChange(_newDate) {
                 // ajax load appts list as markup directly from server
                 // ajax load appts list as markup directly from server
                 selectedDate = _newDate;
                 selectedDate = _newDate;
-                $.get('/pro-dashboard-events-display/' + selectedDate + '/' + selectedDate, function (_data) {
+                $.get('/pro-dashboard-events-display/' + selectedDate + '/' + selectedDate + '?for=na', function (_data) {
                     let apptscontainer = $('#dna-dashboard-appointments');
                     let apptscontainer = $('#dna-dashboard-appointments');
                     apptscontainer.html(_data);
                     apptscontainer.html(_data);
                     initFastLoad(apptscontainer);
                     initFastLoad(apptscontainer);

+ 9 - 3
resources/views/app/mcp/dashboard/appointments-list.blade.php

@@ -14,9 +14,15 @@
                 @foreach($appointments as $appointment)
                 @foreach($appointments as $appointment)
                     <tr class="{{$appointment->bgColor}}">
                     <tr class="{{$appointment->bgColor}}">
                         <td>
                         <td>
-                            <a href="/patients/view/{{$appointment->clientUid}}" class="font-weight-bold d-block">
-                                {{$appointment->clientName }}
-                            </a>
+                            <div class="d-flex align-items-baseline">
+                                <a href="/patients/view/{{$appointment->clientUid}}" class="font-weight-bold d-block">
+                                    {{$appointment->clientName }}
+                                </a>
+                                @if(request()->input('for') === 'na')
+                                    <span class="mx-2 text-secondary">•</span>
+                                    <span class="text-secondary font-weight-normal">{{$appointment->proName}}</span>
+                                @endif
+                            </div>
                             <div class="mt-1">
                             <div class="mt-1">
                                 <a href="/patients/view/{{$appointment->clientUid}}/calendar/{{$appointment->uid}}">
                                 <a href="/patients/view/{{$appointment->clientUid}}/calendar/{{$appointment->uid}}">
                                     {{ $appointment->friendlyStartTime }} - {{ $appointment->friendlyEndTime }}</a>
                                     {{ $appointment->friendlyStartTime }} - {{ $appointment->friendlyEndTime }}</a>