Răsfoiți Sursa

Merge branch 'dev' into dev-vj

Vijayakrishnan 3 ani în urmă
părinte
comite
589a6ddb7a
26 a modificat fișierele cu 922 adăugiri și 678 ștergeri
  1. 3 3
      resources/views/app/dashboard-dna.blade.php
  2. 19 17
      resources/views/app/dna/appointments.blade.php
  3. 21 19
      resources/views/app/dna/care-months.blade.php
  4. 105 105
      resources/views/app/dna/dashboard/appointments_pending_confirmation.blade.php
  5. 105 105
      resources/views/app/dna/dashboard/cancelled_appointments_pending_ack.blade.php
  6. 7 6
      resources/views/app/dna/dashboard/coverage_renderer.blade.php
  7. 61 53
      resources/views/app/dna/dashboard/encounters_in_progress.blade.php
  8. 64 0
      resources/views/app/dna/dashboard/encounters_in_progress_dashboard.blade.php
  9. 58 50
      resources/views/app/dna/dashboard/encounters_pending_my_review.blade.php
  10. 61 0
      resources/views/app/dna/dashboard/encounters_pending_my_review_dashboard.blade.php
  11. 54 48
      resources/views/app/dna/dashboard/patients.blade.php
  12. 54 48
      resources/views/app/dna/dashboard/patients_awaiting_mcp_visit.blade.php
  13. 58 50
      resources/views/app/dna/dashboard/patients_without_appointment.blade.php
  14. 61 0
      resources/views/app/dna/dashboard/patients_without_appointment_dashboard.blade.php
  15. 13 20
      resources/views/app/dna/dashboard/reports_pending_ack.blade.php
  16. 14 20
      resources/views/app/dna/dashboard/supply_orders_pending_hcp_approval.blade.php
  17. 14 20
      resources/views/app/dna/dashboard/supply_orders_pending_my_ack.blade.php
  18. 17 15
      resources/views/app/dna/encounters.blade.php
  19. 16 14
      resources/views/app/dna/financial-transactions.blade.php
  20. 14 12
      resources/views/app/dna/my-bills.blade.php
  21. 15 11
      resources/views/app/dna/my-clinical-teams.blade.php
  22. 20 24
      resources/views/app/dna/patients-table.blade.php
  23. 2 2
      resources/views/app/dna/patients_filters.blade.php
  24. 14 0
      resources/views/app/patient/coverage_column_renderer.blade.php
  25. 47 36
      resources/views/app/patient/notes.blade.php
  26. 5 0
      resources/views/app/practice-management/my-teams.blade.php

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

@@ -161,7 +161,7 @@
                                     </strong>
                                 </div>
                                 <div class="card-body p-0">
-                                    @include('app.dna.dashboard.encounters_pending_my_review')
+                                    @include('app.dna.dashboard.encounters_pending_my_review_dashboard')
                                 </div>
                             </div>
 
@@ -173,7 +173,7 @@
                                     </strong>
                                 </div>
                                 <div class="card-body p-0">
-                                    @include('app.dna.dashboard.encounters_in_progress')
+                                    @include('app.dna.dashboard.encounters_in_progress_dashboard')
                                 </div>
                             </div>
 
@@ -185,7 +185,7 @@
                                     </strong>
                                 </div>
                                 <div class="card-body p-0">
-                                    @include('app.dna.dashboard.patients_without_appointment')
+                                    @include('app.dna.dashboard.patients_without_appointment_dashboard')
                                 </div>
                             </div>
 

+ 19 - 17
resources/views/app/dna/appointments.blade.php

@@ -15,30 +15,30 @@
             <div class="p-3">
                 @include('app.dna.appointments_filters')
             </div>
-            <table class="table table-condensed p-0 m-0">
-                <thead class="bg-light">
+            <table class="table table-sm table-striped p-0 m-0">
+                <thead class="bg-light border-top">
                     <tr>
-                        <th class="px-3 border-0">Chart #</th>
-                        <th class="px-3 border-0">Name</th>
-                        <th class="px-3 border-0">DOB</th>
-                        <th class="px-3 border-0">Age</th>
-                        <th class="px-3 border-0">Sex</th>
-                        <th class="px-3 border-0">Insurance</th>
-                        <th class="px-3 border-0">MCP</th>
-                        <th class="px-3 border-0">Time</th>
-                        <th class="px-3 border-0">Status</th>
+                        <th class="border-0">Chart #</th>
+                        <th class="border-0">Name</th>
+                        <th class="border-0">DOB</th>
+                        <th class="border-0">Age</th>
+                        <th class="border-0">Sex</th>
+                        <th class="border-0">Insurance</th>
+                        <th class="border-0">MCP</th>
+                        <th class="border-0">Time</th>
+                        <th class="border-0">Status</th>
                     </tr>
                 </thead>
                 <tbody>
                     @foreach($appointments as $appointment)
                     <tr>
 
-                        <td class="px-3 text-nowrap">
+                        <td class="text-nowrap">
                             <a native target="_blank" href="{{route('patients.view.dashboard', $appointment->client)}}">
                                 {{$appointment->client->chart_number}}
                             </a>
                         </td>
-                        <td class="px-3 text-nowrap">
+                        <td class="text-nowrap">
                             <a native target="_blank" href="{{route('patients.view.dashboard', $appointment->client)}}">
                                 {{$appointment->client->displayName()}}
                             </a>
@@ -64,7 +64,7 @@
                         </td>
                         <td>{{ $appointment->client->mcp->displayName() }}</td>
                         <td>
-                            <a href="/patients/view/{{$appointment->client->uid}}/calendar/{{$appointment->uid}}" class="font-weight-bold text-nowrap">
+                            <a href="/patients/view/{{$appointment->client->uid}}/calendar/{{$appointment->uid}}" class="text-nowrap">
                                 {{friendlier_date_time($appointment->raw_date . ' ' . $appointment->raw_start_time)}}
                             </a>
                         </td>
@@ -86,9 +86,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $appointments->appends(request()->input())->links() }}
-            </div>
+            @if($appointments->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $appointments->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 21 - 19
resources/views/app/dna/care-months.blade.php

@@ -12,33 +12,33 @@
         </div>
 
         <div class="card-body p-0">
-            <div class="p-3">
-                <!-- Filter -->
-            </div>
-            <table class="table table-condensed p-0 m-0">
+            <!-- <div class="p-3">
+                Filter
+            </div> -->
+            <table class="table table-sm table-stripped p-0 m-0">
                 <thead class="bg-light">
                     <tr>
-                        <th class="px-3 border-0">Chart #</th>
-                        <th class="px-3 border-0">Name</th>
-                        <th class="px-3 border-0">DOB</th>
-                        <th class="px-3 border-0">Age</th>
-                        <th class="px-3 border-0">Sex</th>
-                        <th class="px-3 border-0">Insurance</th>
-                        <th class="px-3 border-0">MCP</th>
-                        <th class="px-3 border-0"># Meas. this mt.</th>
-                        <th class="px-3 border-0">My Bill</th>
+                        <th class="border-0">Chart #</th>
+                        <th class="border-0">Name</th>
+                        <th class="border-0">DOB</th>
+                        <th class="border-0">Age</th>
+                        <th class="border-0">Sex</th>
+                        <th class="border-0">Insurance</th>
+                        <th class="border-0">MCP</th>
+                        <th class="border-0"># Meas. this mt.</th>
+                        <th class="border-0">My Bill</th>
                     </tr>
                 </thead>
                 <tbody>
                     @foreach($careMonths as $careMonth)
                     <tr>
 
-                        <td class="px-3 text-nowrap">
+                        <td class="text-nowrap">
                             <a native target="_blank" href="{{route('patients.view.dashboard', $careMonth->client)}}">
                                 {{$careMonth->client->chart_number}}
                             </a>
                         </td>
-                        <td class="px-3 text-nowrap">
+                        <td class="text-nowrap">
                             <a native target="_blank" href="{{route('patients.view.dashboard', $careMonth->client)}}">
                                 {{$careMonth->client->displayName()}}
                             </a>
@@ -69,7 +69,7 @@
                             @if($bill)
                             <div class="d-flex flex-column">
                                 <span>Code: {{ $bill->code }}</span>
-                                <a href="/patients/view/{{ $bill->note->client->uid }}/notes/view/{{ $bill->note->uid }}" class="font-weight-bold">Note</a>
+                                <a href="/patients/view/{{ $bill->note->client->uid }}/notes/view/{{ $bill->note->uid }}">Note</a>
                             </div>
                             @endif
                         </td>
@@ -84,9 +84,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $careMonths->appends(request()->input())->links() }}
-            </div>
+            @if($careMonths->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $careMonths->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 105 - 105
resources/views/app/dna/dashboard/appointments_pending_confirmation.blade.php

@@ -1,118 +1,118 @@
-@php 
-    $appointmentPendingConfirmation = $performer->pro->appointmentsPendingConfirmationRecordsAsDna();
-@endphp 
-<div class="card">
-    <div class="card-body p-0">
-        @if(@$appointmentPendingConfirmation && count($appointmentPendingConfirmation))
-            <table class="mb-0 table table-sm appointments border-top-0">
+@php
+$appointmentPendingConfirmation = $performer->pro->appointmentsPendingConfirmationRecordsAsDna();
+@endphp
+<div class="p-3">
+    <div class="card">
+        <div class="card-body p-0">
+            @if(@$appointmentPendingConfirmation && count($appointmentPendingConfirmation))
+            <table class="mb-0 table table-sm table-striped appointments">
+                <thead class="bg-light">
+                    <tr>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Status</th>
+                        <th class="border-0">Coverage</th>
+                    </tr>
+                </thead>
                 @foreach($appointmentPendingConfirmation as $appointment)
-                    <tr class="{{$appointment->bgColor}}">
-                        <td>
-                            <a href="/patients/view/{{$appointment->clientUid}}" class="font-weight-bold d-block">
-                                {{$appointment->client->name_first }} {{$appointment->client->name_last }}
-                            </a>
-                            <div class="mt-1">
-                                <a href="/patients/view/{{$appointment->clientUid}}/calendar/{{$appointment->uid}}">
-                                    {{ friendly_date_time($appointment->start_time) }} - {{ friendly_date_time($appointment->end_time) }}</a>
-                                <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
-                            </div>
-                            @if($appointment->title)
-                                <span class="d-inline-block mt-1 text-secondary text-sm">
+                <tr class="{{$appointment->bgColor}}">
+                    <td>
+                        <a href="/patients/view/{{$appointment->clientUid}}" class="font-weight-bold d-block">
+                            {{$appointment->client->name_first }} {{$appointment->client->name_last }}
+                        </a>
+                        <div class="mt-1">
+                            <a href="/patients/view/{{$appointment->clientUid}}/calendar/{{$appointment->uid}}">
+                                {{ friendly_date_time($appointment->start_time) }} - {{ friendly_date_time($appointment->end_time) }}</a>
+                            <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
+                        </div>
+                        @if($appointment->title)
+                        <span class="d-inline-block mt-1 text-secondary text-sm">
                             {{ $appointment->title }}
                         </span>
-                            @endif
-                        </td>
-                        <td>
-                            <div class="d-flex flex-column">
-                                <div class="d-flex align-items-baseline flex-nowrap">
-                                    @if($appointment->status === 'PENDING')
-                                        <div class="text-warning-mellow font-weight-bold text-nowrap">
-                                            <i class="fa fa-exclamation-triangle"></i>
-                                            Pending
-                                        </div>
-                                    @elseif($appointment->status === 'CONFIRMED')
-                                        <div class="text-success font-weight-bold text-nowrap">
-                                            <i class="fa fa-check"></i>
-                                            Confirmed
-                                        </div>
-                                    @elseif($appointment->status === 'CANCELLED')
-                                        <div class="text-danger font-weight-bold text-nowrap">
-                                            <i class="fa fa-stop"></i>
-                                            Cancelled
-                                        </div>
-                                    @elseif($appointment->status === 'COMPLETED')
-                                        <div class="text-success font-weight-bold text-nowrap">
-                                            <i class="far fa-calendar-check"></i>
-                                            Completed
-                                        </div>
-                                    @endif
-                                    <div class="ml-2" moe relative center>
-                                        <a href="#" start show><i class="fa fa-edit"></i></a>
-                                        <form url="/api/appointment/updateStatus" hook="refreshDashboardAppointments" center>
-                                            <input type="hidden" name="uid" value="{{$appointment->uid}}">
-                                            <p class="text-nowrap mb-3 font-weight-bold text-secondary">Change appointment status</p>
-                                            <div class="mb-3 border bg-light p-2">
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Patient</span>
-                                                    <b>{{$appointment->clientName }}</b>
-                                                </div>
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Pro</span>
-                                                    <b>{{$appointment->proName}}</b>
-                                                </div>
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Date</span>
-                                                    <b>{{friendly_date($appointment->raw_date)}}</b>
-                                                </div>
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Time</span>
-                                                    <span>
-                                                        <b>{{ $appointment->friendlyStartTime }}</b> - <b>{{ $appointment->friendlyEndTime }}</b>
-                                                        <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
-                                                    </span>
-                                                </div>
-                                                <div class="d-flex align-items-baseline ">
-                                                    <span class="width-70px">Status</span>
-                                                    <b>{{ucwords(strtolower($appointment->status))}}</b>
-                                                </div>
+                        @endif
+                    </td>
+                    <td>
+                        <div class="d-flex flex-column">
+                            <div class="d-flex align-items-baseline flex-nowrap">
+                                @if($appointment->status === 'PENDING')
+                                <div class="text-warning-mellow font-weight-bold text-nowrap">
+                                    <i class="fa fa-exclamation-triangle"></i>
+                                    Pending
+                                </div>
+                                @elseif($appointment->status === 'CONFIRMED')
+                                <div class="text-success font-weight-bold text-nowrap">
+                                    <i class="fa fa-check"></i>
+                                    Confirmed
+                                </div>
+                                @elseif($appointment->status === 'CANCELLED')
+                                <div class="text-danger font-weight-bold text-nowrap">
+                                    <i class="fa fa-stop"></i>
+                                    Cancelled
+                                </div>
+                                @elseif($appointment->status === 'COMPLETED')
+                                <div class="text-success font-weight-bold text-nowrap">
+                                    <i class="far fa-calendar-check"></i>
+                                    Completed
+                                </div>
+                                @endif
+                                <div class="ml-2" moe relative center>
+                                    <a href="#" start show><i class="fa fa-edit"></i></a>
+                                    <form url="/api/appointment/updateStatus" hook="refreshDashboardAppointments" center>
+                                        <input type="hidden" name="uid" value="{{$appointment->uid}}">
+                                        <p class="text-nowrap mb-3 font-weight-bold text-secondary">Change appointment status</p>
+                                        <div class="mb-3 border bg-light p-2">
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Patient</span>
+                                                <b>{{$appointment->clientName }}</b>
                                             </div>
-                                            <label for="" class="mb-2">New Status</label>
-                                            <select name="status" class="form-control form-control-sm input-sm bg-light mb-2">
-                                                <option value="PENDING" {{$appointment->status === 'PENDING' ? 'selected' : ''}}>PENDING</option>
-                                                <option value="CONFIRMED" {{$appointment->status === 'CONFIRMED' ? 'selected' : ''}}>CONFIRMED</option>
-                                                <option value="CANCELLED" {{$appointment->status === 'CANCELLED' ? 'selected' : ''}}>CANCELLED</option>
-                                                <option value="COMPLETED" {{$appointment->status === 'COMPLETED' ? 'selected' : ''}}>COMPLETED</option>
-                                            </select>
-                                            <div class="mb-0">
-                                                <button class="btn btn-primary btn-sm" submit>Submit</button>
-                                                <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Pro</span>
+                                                <b>{{$appointment->proName}}</b>
                                             </div>
-                                        </form>
-                                    </div>
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Date</span>
+                                                <b>{{friendly_date($appointment->raw_date)}}</b>
+                                            </div>
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Time</span>
+                                                <span>
+                                                    <b>{{ $appointment->friendlyStartTime }}</b> - <b>{{ $appointment->friendlyEndTime }}</b>
+                                                    <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
+                                                </span>
+                                            </div>
+                                            <div class="d-flex align-items-baseline ">
+                                                <span class="width-70px">Status</span>
+                                                <b>{{ucwords(strtolower($appointment->status))}}</b>
+                                            </div>
+                                        </div>
+                                        <label for="" class="mb-2">New Status</label>
+                                        <select name="status" class="form-control form-control-sm input-sm bg-light mb-2">
+                                            <option value="PENDING" {{$appointment->status === 'PENDING' ? 'selected' : ''}}>PENDING</option>
+                                            <option value="CONFIRMED" {{$appointment->status === 'CONFIRMED' ? 'selected' : ''}}>CONFIRMED</option>
+                                            <option value="CANCELLED" {{$appointment->status === 'CANCELLED' ? 'selected' : ''}}>CANCELLED</option>
+                                            <option value="COMPLETED" {{$appointment->status === 'COMPLETED' ? 'selected' : ''}}>COMPLETED</option>
+                                        </select>
+                                        <div class="mb-0">
+                                            <button class="btn btn-primary btn-sm" submit>Submit</button>
+                                            <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                                        </div>
+                                    </form>
                                 </div>
-                                
                             </div>
-                        </td>
-                        <td>
-                            <div>
-                                @if($appointment->coverage === 'YES')
-                                    <b class="text-success">Covered</b>
-                                @elseif($appointment->coverage === 'NO')
-                                    <b class="text-danger">Not Covered</b>
-                                @else
-                                    <b v-else class="text-warning-mellow">Pending</b>
-                                @endif
-                            </div>
-                        </td>
-                    </tr>
+
+                        </div>
+                    </td>
+                    <td>
+                        @include('app.patient.coverage_column_renderer', ['patient'=>$appointment->client])
+                    </td>
+                </tr>
                 @endforeach
             </table>
-        @else
+            @else
             <div class="bg-light p-3 text-secondary">
                 <span>You have no appointments pending confirmation.</span>
             </div>
-            
-        @endif
-    </div>
-</div>
 
+            @endif
+        </div>
+    </div>
+</div>

+ 105 - 105
resources/views/app/dna/dashboard/cancelled_appointments_pending_ack.blade.php

@@ -1,118 +1,118 @@
-@php 
-    $cancelledApptsPendingAck = $performer->pro->cancelledAppointmentsPendingAckRecordsAsDna();
-@endphp 
-<div class="card">
-    <div class="card-body p-0">
-        @if(@$cancelledApptsPendingAck && count($cancelledApptsPendingAck))
-            <table class="mb-0 table table-sm appointments border-top-0">
+@php
+$cancelledApptsPendingAck = $performer->pro->cancelledAppointmentsPendingAckRecordsAsDna();
+@endphp
+<div class="p-3">
+    <div class="card">
+        <div class="card-body p-0">
+            @if(@$cancelledApptsPendingAck && count($cancelledApptsPendingAck))
+            <table class="mb-0 table table-sm table-striped appointments">
+                <thead class="bg-light">
+                    <tr>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Status</th>
+                        <th class="border-0">Coverage</th>
+                    </tr>
+                </thead>
                 @foreach($cancelledApptsPendingAck as $appointment)
-                    <tr class="{{$appointment->bgColor}}">
-                        <td>
-                            <a href="/patients/view/{{$appointment->clientUid}}" class="font-weight-bold d-block">
-                                {{$appointment->client->name_first }} {{$appointment->client->name_last }}
-                            </a>
-                            <div class="mt-1">
-                                <a href="/patients/view/{{$appointment->clientUid}}/calendar/{{$appointment->uid}}">
-                                    {{ friendly_date_time($appointment->start_time) }} - {{ friendly_date_time($appointment->end_time) }}</a>
-                                <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
-                            </div>
-                            @if($appointment->title)
-                                <span class="d-inline-block mt-1 text-secondary text-sm">
+                <tr class="{{$appointment->bgColor}}">
+                    <td>
+                        <a href="/patients/view/{{$appointment->clientUid}}" class="font-weight-bold d-block">
+                            {{$appointment->client->name_first }} {{$appointment->client->name_last }}
+                        </a>
+                        <div class="mt-1">
+                            <a href="/patients/view/{{$appointment->clientUid}}/calendar/{{$appointment->uid}}">
+                                {{ friendly_date_time($appointment->start_time) }} - {{ friendly_date_time($appointment->end_time) }}</a>
+                            <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
+                        </div>
+                        @if($appointment->title)
+                        <span class="d-inline-block mt-1 text-secondary text-sm">
                             {{ $appointment->title }}
                         </span>
-                            @endif
-                        </td>
-                        <td>
-                            <div class="d-flex flex-column">
-                                <div class="d-flex align-items-baseline flex-nowrap">
-                                    @if($appointment->status === 'PENDING')
-                                        <div class="text-warning-mellow font-weight-bold text-nowrap">
-                                            <i class="fa fa-exclamation-triangle"></i>
-                                            Pending
-                                        </div>
-                                    @elseif($appointment->status === 'CONFIRMED')
-                                        <div class="text-success font-weight-bold text-nowrap">
-                                            <i class="fa fa-check"></i>
-                                            Confirmed
-                                        </div>
-                                    @elseif($appointment->status === 'CANCELLED')
-                                        <div class="text-danger font-weight-bold text-nowrap">
-                                            <i class="fa fa-stop"></i>
-                                            Cancelled
-                                        </div>
-                                    @elseif($appointment->status === 'COMPLETED')
-                                        <div class="text-success font-weight-bold text-nowrap">
-                                            <i class="far fa-calendar-check"></i>
-                                            Completed
-                                        </div>
-                                    @endif
-                                    <div class="ml-2" moe relative center>
-                                        <a href="#" start show><i class="fa fa-edit"></i></a>
-                                        <form url="/api/appointment/updateStatus" hook="refreshDashboardAppointments" center>
-                                            <input type="hidden" name="uid" value="{{$appointment->uid}}">
-                                            <p class="text-nowrap mb-3 font-weight-bold text-secondary">Change appointment status</p>
-                                            <div class="mb-3 border bg-light p-2">
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Patient</span>
-                                                    <b>{{$appointment->clientName }}</b>
-                                                </div>
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Pro</span>
-                                                    <b>{{$appointment->proName}}</b>
-                                                </div>
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Date</span>
-                                                    <b>{{friendly_date($appointment->raw_date)}}</b>
-                                                </div>
-                                                <div class="d-flex align-items-baseline mb-1">
-                                                    <span class="width-70px">Time</span>
-                                                    <span>
-                                                        <b>{{ $appointment->friendlyStartTime }}</b> - <b>{{ $appointment->friendlyEndTime }}</b>
-                                                        <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
-                                                    </span>
-                                                </div>
-                                                <div class="d-flex align-items-baseline ">
-                                                    <span class="width-70px">Status</span>
-                                                    <b>{{ucwords(strtolower($appointment->status))}}</b>
-                                                </div>
+                        @endif
+                    </td>
+                    <td>
+                        <div class="d-flex flex-column">
+                            <div class="d-flex align-items-baseline flex-nowrap">
+                                @if($appointment->status === 'PENDING')
+                                <div class="text-warning-mellow font-weight-bold text-nowrap">
+                                    <i class="fa fa-exclamation-triangle"></i>
+                                    Pending
+                                </div>
+                                @elseif($appointment->status === 'CONFIRMED')
+                                <div class="text-success font-weight-bold text-nowrap">
+                                    <i class="fa fa-check"></i>
+                                    Confirmed
+                                </div>
+                                @elseif($appointment->status === 'CANCELLED')
+                                <div class="text-danger font-weight-bold text-nowrap">
+                                    <i class="fa fa-stop"></i>
+                                    Cancelled
+                                </div>
+                                @elseif($appointment->status === 'COMPLETED')
+                                <div class="text-success font-weight-bold text-nowrap">
+                                    <i class="far fa-calendar-check"></i>
+                                    Completed
+                                </div>
+                                @endif
+                                <div class="ml-2" moe relative center>
+                                    <a href="#" start show><i class="fa fa-edit"></i></a>
+                                    <form url="/api/appointment/updateStatus" hook="refreshDashboardAppointments" center>
+                                        <input type="hidden" name="uid" value="{{$appointment->uid}}">
+                                        <p class="text-nowrap mb-3 font-weight-bold text-secondary">Change appointment status</p>
+                                        <div class="mb-3 border bg-light p-2">
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Patient</span>
+                                                <b>{{$appointment->clientName }}</b>
                                             </div>
-                                            <label for="" class="mb-2">New Status</label>
-                                            <select name="status" class="form-control form-control-sm input-sm bg-light mb-2">
-                                                <option value="PENDING" {{$appointment->status === 'PENDING' ? 'selected' : ''}}>PENDING</option>
-                                                <option value="CONFIRMED" {{$appointment->status === 'CONFIRMED' ? 'selected' : ''}}>CONFIRMED</option>
-                                                <option value="CANCELLED" {{$appointment->status === 'CANCELLED' ? 'selected' : ''}}>CANCELLED</option>
-                                                <option value="COMPLETED" {{$appointment->status === 'COMPLETED' ? 'selected' : ''}}>COMPLETED</option>
-                                            </select>
-                                            <div class="mb-0">
-                                                <button class="btn btn-primary btn-sm" submit>Submit</button>
-                                                <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Pro</span>
+                                                <b>{{$appointment->proName}}</b>
                                             </div>
-                                        </form>
-                                    </div>
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Date</span>
+                                                <b>{{friendly_date($appointment->raw_date)}}</b>
+                                            </div>
+                                            <div class="d-flex align-items-baseline mb-1">
+                                                <span class="width-70px">Time</span>
+                                                <span>
+                                                    <b>{{ $appointment->friendlyStartTime }}</b> - <b>{{ $appointment->friendlyEndTime }}</b>
+                                                    <span class="text-secondary">{{ friendly_timezone($appointment->timezone) }}</span>
+                                                </span>
+                                            </div>
+                                            <div class="d-flex align-items-baseline ">
+                                                <span class="width-70px">Status</span>
+                                                <b>{{ucwords(strtolower($appointment->status))}}</b>
+                                            </div>
+                                        </div>
+                                        <label for="" class="mb-2">New Status</label>
+                                        <select name="status" class="form-control form-control-sm input-sm bg-light mb-2">
+                                            <option value="PENDING" {{$appointment->status === 'PENDING' ? 'selected' : ''}}>PENDING</option>
+                                            <option value="CONFIRMED" {{$appointment->status === 'CONFIRMED' ? 'selected' : ''}}>CONFIRMED</option>
+                                            <option value="CANCELLED" {{$appointment->status === 'CANCELLED' ? 'selected' : ''}}>CANCELLED</option>
+                                            <option value="COMPLETED" {{$appointment->status === 'COMPLETED' ? 'selected' : ''}}>COMPLETED</option>
+                                        </select>
+                                        <div class="mb-0">
+                                            <button class="btn btn-primary btn-sm" submit>Submit</button>
+                                            <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                                        </div>
+                                    </form>
                                 </div>
-                                
                             </div>
-                        </td>
-                        <td>
-                            <div>
-                                @if($appointment->coverage === 'YES')
-                                    <b class="text-success">Covered</b>
-                                @elseif($appointment->coverage === 'NO')
-                                    <b class="text-danger">Not Covered</b>
-                                @else
-                                    <b v-else class="text-warning-mellow">Pending</b>
-                                @endif
-                            </div>
-                        </td>
-                    </tr>
+
+                        </div>
+                    </td>
+                    <td>
+                    @include('app.patient.coverage_column_renderer', ['patient'=>$appointment->client])
+                    </td>
+                </tr>
                 @endforeach
             </table>
-        @else
+            @else
             <div class="bg-light p-3 text-secondary">
                 <span>You have no cancelled appointments.</span>
             </div>
-            
-        @endif
-    </div>
-</div>
 
+            @endif
+        </div>
+    </div>
+</div>

+ 7 - 6
resources/views/app/dna/dashboard/coverage_renderer.blade.php

@@ -1,13 +1,14 @@
+<div class="d-flex align-items-center">
 <?php $coverageStatus = $patient->getPrimaryCoverageStatus(); ?>
 @if($coverageStatus === 'YES')
-    <div class="text-nowrap">Covered <i class="fa fa-check-circle text-success"></i>
-    </div>
+<i class="fa fa-check-circle text-success"></i>
 @elseif($coverageStatus === 'NO')
-    <div class="text-nowrap">Not Covered <i class="fa fa-times text-danger"></i></div>
+<i class="fa fa-times text-danger"></i>
 @else
-    <div class="text-nowrap">Unknown <i class="fa fa-exclamation-triangle text-warning-mellow"></i></div>
+    <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
 @endif
 <?php $coverage = $patient->getPrimaryCoverage(); ?>
 @if($coverage)
-    {{$coverage->insuranceDisplayName()}}
-@endif
+    <span class="ml-2">{{$coverage->insuranceDisplayName()}}</span>
+@endif
+</div>

+ 61 - 53
resources/views/app/dna/dashboard/encounters_in_progress.blade.php

@@ -1,56 +1,64 @@
-<div>
-@php 
+<div class="p-3">
+    @php
     $encountersInProgress = $performer->pro->encountersInProgressRecordsAsDna();
-@endphp 
-@if($encountersInProgress && count($encountersInProgress))
-    <table class="table table-sm table-striped mb-0">
-        <thead>
-        <tr>
-            <th class="border-bottom-0 border-top-0 text-secondary">Chart #</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Name</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">DOB</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Gender</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Insurance</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">HCP</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Visit Date</th>
-        </tr>
-        </thead>
-        <tbody>
-        @foreach($encountersInProgress as $row)
-            <tr>
-                <td class="text-nowrap">
-                    {{$row->client->chart_number}}
-                </td>
-                <td class="pl-2">
-                    <a href="{{ route('patients.view.dashboard', $row->client) }}">
-                        {{$row->client->displayName()}}
-                    </a>
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->client->dob)}}
-                </td>
-                <td class="text-nowrap">
-                    {{$row->client->sex}}
-                </td>
-                <td class="text-nowrap">
-                    @include('app.dna.dashboard.coverage_renderer', ['patient'=>$row->client])
-                </td>
-                <td class="text-nowrap">
-                    {{$row->client->mcp->name_display ?? '' }}
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->effective_dateest)}}
-                </td>
-            </tr>
-        @endforeach
-        </tbody>
-    </table>
-    <div class="m-2">
-        {{ $encountersInProgress->onEachSide(0)->withQueryString()->links() }}
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+            @if($encountersInProgress && count($encountersInProgress))
+            <div class="table-responsive">
+                <table class="table table-sm table-striped mb-0">
+                    <thead class="bg-light">
+                        <tr>
+                            <th class="border-0">Chart #</th>
+                            <th class="border-0">Name</th>
+                            <th class="border-0">DOB</th>
+                            <th class="border-0">Gender</th>
+                            <th class="border-0">Insurance</th>
+                            <th class="border-0">HCP</th>
+                            <th class="border-0">Visit Date</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        @foreach($encountersInProgress as $row)
+                        <tr>
+                            <td class="text-nowrap">
+                                {{$row->client->chart_number}}
+                            </td>
+                            <td>
+                                <a href="{{ route('patients.view.dashboard', $row->client) }}">
+                                    {{$row->client->displayName()}}
+                                </a>
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->client->dob)}}
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->client->sex}}
+                            </td>
+                            <td class="text-nowrap">
+                                @include('app.patient.coverage_column_renderer', ['patient'=>$row->client])
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->client->mcp->name_display ?? '' }}
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->effective_dateest)}}
+                            </td>
+                        </tr>
+                        @endforeach
+                    </tbody>
+                </table>
+            </div>
+            @if($encountersInProgress->hasPages())
+            <div class="m-2">
+                {{ $encountersInProgress->onEachSide(0)->withQueryString()->links() }}
+            </div>
+            @endif
+            @else
+            <div class="p-3">
+                No encounters in progress
+            </div>
+            @endif
+        </div>
     </div>
-@else
-    <div class="p-3">
-        No encounters in progress
-    </div>
-@endif
 </div>

+ 64 - 0
resources/views/app/dna/dashboard/encounters_in_progress_dashboard.blade.php

@@ -0,0 +1,64 @@
+<div class="">
+    @php
+    $encountersInProgress = $performer->pro->encountersInProgressRecordsAsDna();
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+            @if($encountersInProgress && count($encountersInProgress))
+            <div class="table-responsive">
+                <table class="table table-sm table-striped mb-0">
+                    <thead class="bg-light">
+                        <tr>
+                            <th class="border-0">Chart #</th>
+                            <th class="border-0">Name</th>
+                            <th class="border-0">DOB</th>
+                            <th class="border-0">Gender</th>
+                            <th class="border-0">Insurance</th>
+                            <th class="border-0">HCP</th>
+                            <th class="border-0">Visit Date</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        @foreach($encountersInProgress as $row)
+                        <tr>
+                            <td class="text-nowrap">
+                                {{$row->client->chart_number}}
+                            </td>
+                            <td>
+                                <a href="{{ route('patients.view.dashboard', $row->client) }}">
+                                    {{$row->client->displayName()}}
+                                </a>
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->client->dob)}}
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->client->sex}}
+                            </td>
+                            <td class="text-nowrap">
+                                @include('app.patient.coverage_column_renderer', ['patient'=>$row->client])
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->client->mcp->name_display ?? '' }}
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->effective_dateest)}}
+                            </td>
+                        </tr>
+                        @endforeach
+                    </tbody>
+                </table>
+            </div>
+            @if($encountersInProgress->hasPages())
+            <div class="m-2">
+                {{ $encountersInProgress->onEachSide(0)->withQueryString()->links() }}
+            </div>
+            @endif
+            @else
+            <div class="p-3">
+                No encounters in progress
+            </div>
+            @endif
+        </div>
+    </div>
+</div>

+ 58 - 50
resources/views/app/dna/dashboard/encounters_pending_my_review.blade.php

@@ -1,53 +1,61 @@
-<div>
-@php 
+<div class="p-3">
+    @php
     $encountersPendingMyReview = $performer->pro->encountersPendingMyReviewRecordsAsDna();
-@endphp 
-@if($encountersPendingMyReview && count($encountersPendingMyReview))
-    <table class="table table-sm table-striped mb-0">
-        <thead>
-        <tr>
-            <th class="border-bottom-0 border-top-0 text-secondary">Patient</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Type</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Value</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Timestamp</th>
-        </tr>
-        </thead>
-        <tbody>
-        @foreach($encountersPendingMyReview as $row)
-        <tr>
-                <td class="text-nowrap">
-                    {{$row->client->chart_number}}
-                </td>
-                <td class="pl-2">
-                    <a href="{{ route('patients.view.dashboard', $row->client) }}">
-                        {{$row->client->displayName()}}
-                    </a>
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->client->dob)}}
-                </td>
-                <td class="text-nowrap">
-                    {{$row->client->sex}}
-                </td>
-                <td class="text-nowrap">
-                    @include('app.dna.dashboard.coverage_renderer', ['patient'=>$row->client])
-                </td>
-                <td class="text-nowrap">
-                    {{$row->client->mcp->name_display ?? '' }}
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->effective_dateest)}}
-                </td>
-            </tr>
-        @endforeach
-        </tbody>
-    </table>
-    <div class="m-2">
-        {{ $encountersPendingMyReview->onEachSide(0)->withQueryString()->links() }}
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+        @if($encountersPendingMyReview && count($encountersPendingMyReview))
+        <div class="table-responsive">
+            <table class="table table-sm table-striped mb-0">
+                <thead class="bg-light">
+                    <tr>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Type</th>
+                        <th class="border-0">Value</th>
+                        <th class="border-0">Timestamp</th>
+                    </tr>
+                </thead>
+                <tbody>
+                    @foreach($encountersPendingMyReview as $row)
+                    <tr>
+                        <td class="text-nowrap">
+                            {{$row->client->chart_number}}
+                        </td>
+                        <td>
+                            <a href="{{ route('patients.view.dashboard', $row->client) }}">
+                                {{$row->client->displayName()}}
+                            </a>
+                        </td>
+                        <td class="text-nowrap">
+                            {{friendly_date($row->client->dob)}}
+                        </td>
+                        <td class="text-nowrap">
+                            {{$row->client->sex}}
+                        </td>
+                        <td class="text-nowrap">
+                            @include('app.patient.coverage_column_renderer', ['patient'=>$row->client])
+                        </td>
+                        <td class="text-nowrap">
+                            {{$row->client->mcp->name_display ?? '' }}
+                        </td>
+                        <td class="text-nowrap">
+                            {{friendly_date($row->effective_dateest)}}
+                        </td>
+                    </tr>
+                    @endforeach
+                </tbody>
+            </table>
+        </div>
+        @if($encountersPendingMyReview->hasPages())
+            <div class="m-2">
+                {{ $encountersPendingMyReview->onEachSide(0)->withQueryString()->links() }}
+            </div>
+        @endif
+        @else
+        <div class="p-3">
+            No encounters pending review
+        </div>
+        @endif
+        </div>
     </div>
-@else
-    <div class="p-3">
-        No encounters pending review
-    </div>
-@endif
 </div>

+ 61 - 0
resources/views/app/dna/dashboard/encounters_pending_my_review_dashboard.blade.php

@@ -0,0 +1,61 @@
+<div class="">
+    @php
+    $encountersPendingMyReview = $performer->pro->encountersPendingMyReviewRecordsAsDna();
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+        @if($encountersPendingMyReview && count($encountersPendingMyReview))
+        <div class="table-responsive">
+            <table class="table table-sm table-striped mb-0">
+                <thead class="bg-light">
+                    <tr>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Type</th>
+                        <th class="border-0">Value</th>
+                        <th class="border-0">Timestamp</th>
+                    </tr>
+                </thead>
+                <tbody>
+                    @foreach($encountersPendingMyReview as $row)
+                    <tr>
+                        <td class="text-nowrap">
+                            {{$row->client->chart_number}}
+                        </td>
+                        <td>
+                            <a href="{{ route('patients.view.dashboard', $row->client) }}">
+                                {{$row->client->displayName()}}
+                            </a>
+                        </td>
+                        <td class="text-nowrap">
+                            {{friendly_date($row->client->dob)}}
+                        </td>
+                        <td class="text-nowrap">
+                            {{$row->client->sex}}
+                        </td>
+                        <td class="text-nowrap">
+                            @include('app.patient.coverage_column_renderer', ['patient'=>$row->client])
+                        </td>
+                        <td class="text-nowrap">
+                            {{$row->client->mcp->name_display ?? '' }}
+                        </td>
+                        <td class="text-nowrap">
+                            {{friendly_date($row->effective_dateest)}}
+                        </td>
+                    </tr>
+                    @endforeach
+                </tbody>
+            </table>
+        </div>
+        @if($encountersPendingMyReview->hasPages())
+            <div class="m-2">
+                {{ $encountersPendingMyReview->onEachSide(0)->withQueryString()->links() }}
+            </div>
+        @endif
+        @else
+        <div class="p-3">
+            No encounters pending review
+        </div>
+        @endif
+        </div>
+    </div>
+</div>

+ 54 - 48
resources/views/app/dna/dashboard/patients.blade.php

@@ -1,53 +1,59 @@
-<div>
-@php 
+<div class="p-3">
+    @php
     $patientsRecordsAsDna = $performer->pro->patientsRecordsAsDna();
-@endphp 
-@if($patientsRecordsAsDna && count($patientsRecordsAsDna))
-    <table class="table table-sm table-striped mb-0">
-        <thead>
-        <tr>
-            <th class="border-bottom-0 border-top-0 text-secondary">Chart #</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Name</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">DOB</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Gender</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Insurance</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">HCP</th>
-        </tr>
-        </thead>
-        <tbody>
-        @foreach($patientsRecordsAsDna as $row)
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+        @if($patientsRecordsAsDna && count($patientsRecordsAsDna))
+        <table class="table table-sm table-striped mb-0">
+            <thead class="bg-light">
             <tr>
-                <td class="text-nowrap">
-                    {{$row->chart_number}}
-                </td>
-                <td class="pl-2">
-                    <a href="{{ route('patients.view.dashboard', $row) }}">
-                        {{$row->displayName()}}
-                    </a>
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->dob)}}
-                </td>
-                <td class="text-nowrap">
-                    {{$row->sex}}
-                </td>
-                <td class="text-nowrap">
-                    @include('app.dna.dashboard.coverage_renderer', ['patient'=>$row])
-                </td>
-                <td class="text-nowrap">
-                    {{$row->mcp->name_display ?? '' }}
-                </td>
-               
+                <th class="border-0">Chart #</th>
+                <th class="border-0">Name</th>
+                <th class="border-0">DOB</th>
+                <th class="border-0">Gender</th>
+                <th class="border-0">Insurance</th>
+                <th class="border-0">HCP</th>
             </tr>
-        @endforeach
-        </tbody>
-    </table>
-    <div class="m-2">
-        {{ $patientsRecordsAsDna->onEachSide(0)->withQueryString()->links() }}
+            </thead>
+            <tbody>
+            @foreach($patientsRecordsAsDna as $row)
+                <tr>
+                    <td class="text-nowrap">
+                        {{$row->chart_number}}
+                    </td>
+                    <td class="pl-2">
+                        <a href="{{ route('patients.view.dashboard', $row) }}">
+                            {{$row->displayName()}}
+                        </a>
+                    </td>
+                    <td class="text-nowrap">
+                        {{friendly_date($row->dob)}}
+                    </td>
+                    <td class="text-nowrap">
+                        {{$row->sex}}
+                    </td>
+                    <td class="text-nowrap">
+                        @include('app.patient.coverage_column_renderer', ['patient'=>$row])
+                    </td>
+                    <td class="text-nowrap">
+                        {{$row->mcp->name_display ?? '' }}
+                    </td>
+                
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+        @if($patientsRecordsAsDna->hasPages())
+            <div class="m-2">
+                {{ $patientsRecordsAsDna->onEachSide(0)->withQueryString()->links() }}
+            </div>
+        @endif
+    @else
+        <div class="p-3">
+            No patients
+        </div>
+    @endif
+        </div>
     </div>
-@else
-    <div class="p-3">
-        No patients
-    </div>
-@endif
 </div>

+ 54 - 48
resources/views/app/dna/dashboard/patients_awaiting_mcp_visit.blade.php

@@ -1,53 +1,59 @@
-<div>
-@php 
+<div class="p-3">
+    @php
     $patientsAwaitingMcpVisit = $performer->pro->patientsAwaitingMcpVisitRecordsAsDna();
-@endphp 
-@if($patientsAwaitingMcpVisit && count($patientsAwaitingMcpVisit))
-    <table class="table table-sm table-striped mb-0">
-        <thead>
-        <tr>
-            <th class="border-bottom-0 border-top-0 text-secondary">Chart #</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Name</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">DOB</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Gender</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Insurance</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">HCP</th>
-        </tr>
-        </thead>
-        <tbody>
-        @foreach($patientsAwaitingMcpVisit as $row)
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+        @if($patientsAwaitingMcpVisit && count($patientsAwaitingMcpVisit))
+        <table class="table table-sm table-striped mb-0">
+            <thead class="bg-light">
             <tr>
-                <td class="text-nowrap">
-                    {{$row->chart_number}}
-                </td>
-                <td class="pl-2">
-                    <a href="{{ route('patients.view.dashboard', $row) }}">
-                        {{$row->displayName()}}
-                    </a>
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->dob)}}
-                </td>
-                <td class="text-nowrap">
-                    {{$row->sex}}
-                </td>
-                <td class="text-nowrap">
-                    @include('app.dna.dashboard.coverage_renderer', ['patient'=>$row])
-                </td>
-                <td class="text-nowrap">
-                    {{$row->mcp->name_display ?? '' }}
-                </td>
-               
+                <th class="border-0">Chart #</th>
+                <th class="border-0">Name</th>
+                <th class="border-0">DOB</th>
+                <th class="border-0">Gender</th>
+                <th class="border-0">Insurance</th>
+                <th class="border-0">HCP</th>
             </tr>
-        @endforeach
-        </tbody>
-    </table>
-    <div class="m-2">
-        {{ $patientsAwaitingMcpVisit->onEachSide(0)->withQueryString()->links() }}
+            </thead>
+            <tbody>
+            @foreach($patientsAwaitingMcpVisit as $row)
+                <tr>
+                    <td class="text-nowrap">
+                        {{$row->chart_number}}
+                    </td>
+                    <td class="pl-2">
+                        <a href="{{ route('patients.view.dashboard', $row) }}">
+                            {{$row->displayName()}}
+                        </a>
+                    </td>
+                    <td class="text-nowrap">
+                        {{friendly_date($row->dob)}}
+                    </td>
+                    <td class="text-nowrap">
+                        {{$row->sex}}
+                    </td>
+                    <td class="text-nowrap">
+                        @include('app.patient.coverage_column_renderer', ['patient'=>$row])
+                    </td>
+                    <td class="text-nowrap">
+                        {{$row->mcp->name_display ?? '' }}
+                    </td>
+                
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+        @if($patientsAwaitingMcpVisit->hasPages())
+            <div class="m-2">
+                {{ $patientsAwaitingMcpVisit->onEachSide(0)->withQueryString()->links() }}
+            </div>
+        @endif
+    @else
+        <div class="p-3">
+            No patients awaiting mcp visit
+        </div>
+    @endif
+        </div>
     </div>
-@else
-    <div class="p-3">
-        No patients awaiting mcp visit
-    </div>
-@endif
 </div>

+ 58 - 50
resources/views/app/dna/dashboard/patients_without_appointment.blade.php

@@ -1,53 +1,61 @@
-<div>
-@php 
+<div class="p-3">
+    @php
     $patientsWithoutAppointments = $performer->pro->patientsWithoutAppointmentRecordsAsDna();
-@endphp 
-@if($patientsWithoutAppointments && count($patientsWithoutAppointments))
-    <table class="table table-sm table-striped mb-0">
-        <thead>
-        <tr>
-            <th class="border-bottom-0 border-top-0 text-secondary">Patient</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Type</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Value</th>
-            <th class="border-bottom-0 border-top-0 text-secondary">Timestamp</th>
-        </tr>
-        </thead>
-        <tbody>
-        @foreach($patientsWithoutAppointments as $row)
-            <tr>
-                <td class="text-nowrap">
-                    {{$row->chart_number}}
-                </td>
-                <td class="pl-2">
-                    <a href="{{ route('patients.view.dashboard', $row) }}">
-                        {{$row->displayName()}}
-                    </a>
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->dob)}}
-                </td>
-                <td class="text-nowrap">
-                    {{$row->sex}}
-                </td>
-                <td class="text-nowrap">
-                    @include('app.dna.dashboard.coverage_renderer', ['patient'=>$row])
-                </td>
-                <td class="text-nowrap">
-                    {{$row->mcp->name_display ?? '' }}
-                </td>
-                <td class="text-nowrap">
-                    {{friendly_date($row->most_recent_completed_mcp_note_date)}}
-                </td>
-            </tr>
-        @endforeach
-        </tbody>
-    </table>
-    <div class="m-2">
-        {{ $patientsWithoutAppointments->onEachSide(0)->withQueryString()->links() }}
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+            @if($patientsWithoutAppointments && count($patientsWithoutAppointments))
+            <div class="table-responsive">
+                <table class="table table-sm table-striped mb-0">
+                    <thead class="bg-light">
+                        <tr>
+                            <th class="border-0">Patient</th>
+                            <th class="border-0">Type</th>
+                            <th class="border-0">Value</th>
+                            <th class="border-0" colspan="4">Timestamp</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        @foreach($patientsWithoutAppointments as $row)
+                        <tr>
+                            <td class="text-nowrap">
+                                {{$row->chart_number}}
+                            </td>
+                            <td>
+                                <a href="{{ route('patients.view.dashboard', $row) }}">
+                                    {{$row->displayName()}}
+                                </a>
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->dob)}}
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->sex}}
+                            </td>
+                            <td class="text-nowrap">
+                                @include('app.patient.coverage_column_renderer', ['patient'=>$row])
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->mcp->name_display ?? '' }}
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->most_recent_completed_mcp_note_date)}}
+                            </td>
+                        </tr>
+                        @endforeach
+                    </tbody>
+                </table>
+            </div>
+            @if($patientsWithoutAppointments->hasPages())
+            <div class="m-2">
+                {{ $patientsWithoutAppointments->onEachSide(0)->withQueryString()->links() }}
+            </div>
+            @endif
+            @else
+            <div class="p-3">
+                No patients without appointments
+            </div>
+            @endif
+        </div>
     </div>
-@else
-    <div class="p-3">
-        No patients without appointments
-    </div>
-@endif
 </div>

+ 61 - 0
resources/views/app/dna/dashboard/patients_without_appointment_dashboard.blade.php

@@ -0,0 +1,61 @@
+<div class="">
+    @php
+    $patientsWithoutAppointments = $performer->pro->patientsWithoutAppointmentRecordsAsDna();
+    @endphp
+    <div class="card">
+        <div class="card-body p-0">
+            @if($patientsWithoutAppointments && count($patientsWithoutAppointments))
+            <div class="table-responsive">
+                <table class="table table-sm table-striped mb-0">
+                    <thead class="bg-light">
+                        <tr>
+                            <th class="border-0">Patient</th>
+                            <th class="border-0">Type</th>
+                            <th class="border-0">Value</th>
+                            <th class="border-0" colspan="4">Timestamp</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        @foreach($patientsWithoutAppointments as $row)
+                        <tr>
+                            <td class="text-nowrap">
+                                {{$row->chart_number}}
+                            </td>
+                            <td>
+                                <a href="{{ route('patients.view.dashboard', $row) }}">
+                                    {{$row->displayName()}}
+                                </a>
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->dob)}}
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->sex}}
+                            </td>
+                            <td class="text-nowrap">
+                                @include('app.patient.coverage_column_renderer', ['patient'=>$row])
+                            </td>
+                            <td class="text-nowrap">
+                                {{$row->mcp->name_display ?? '' }}
+                            </td>
+                            <td class="text-nowrap">
+                                {{friendly_date($row->most_recent_completed_mcp_note_date)}}
+                            </td>
+                        </tr>
+                        @endforeach
+                    </tbody>
+                </table>
+            </div>
+            @if($patientsWithoutAppointments->hasPages())
+            <div class="m-2">
+                {{ $patientsWithoutAppointments->onEachSide(0)->withQueryString()->links() }}
+            </div>
+            @endif
+            @else
+            <div class="p-3">
+                No patients without appointments
+            </div>
+            @endif
+        </div>
+    </div>
+</div>

+ 13 - 20
resources/views/app/dna/dashboard/reports_pending_ack.blade.php

@@ -1,26 +1,17 @@
 @php 
     $reportsPendingAck = $performer->pro->reportsPendingAckRecordsAsDna();
 @endphp 
-<div class="p-3 mcp-theme-1" id="patients-list">
+<div class="p-3" id="patients-list">
     <div class="card">
-
-        <div class="card-header px-3 py-2 d-flex align-items-center">
-            <strong class="mr-4">
-                <i class="fas fa-file-invoice-dollar"></i>
-                Reports Pending Acknowledgement
-            </strong>
-        </div>
-
-        <div class="card-body p-0">
-            
-            <table class="table table-condensed p-0 m-0">
+        <div class="card-body p-0">            
+            <table class="table table-sm table-striped p-0 m-0">
                 <thead class="bg-light">
                     <tr>
-                        <th class="px-3 border-0">Patient</th>
-                        <th class="px-3 border-0">Title</th>
-                        <th class="px-3 border-0">Category</th>
-                        <th class="px-3 border-0">Report Date</th>
-                        <th class="px-3 border-0">Sign</th>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Title</th>
+                        <th class="border-0">Category</th>
+                        <th class="border-0">Report Date</th>
+                        <th class="border-0">Sign</th>
                     </tr>
                 </thead>
                 <tbody>
@@ -61,9 +52,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $reportsPendingAck->appends(request()->input())->links() }}
-            </div>
+            @if($reportsPendingAck->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $reportsPendingAck->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 14 - 20
resources/views/app/dna/dashboard/supply_orders_pending_hcp_approval.blade.php

@@ -1,27 +1,19 @@
-@php 
-    $supplyOrdersPendingHcpApproval = $performer->pro->supplyOrdersPendingHcpApprovalRecordsAsDna();
+@php
+$supplyOrdersPendingHcpApproval = $performer->pro->supplyOrdersPendingHcpApprovalRecordsAsDna();
 @endphp
-<div class="p-3 mcp-theme-1" id="patients-list">
+<div class="p-3" id="patients-list">
     <div class="card">
-
-        <div class="card-header px-3 py-2 d-flex align-items-center">
-            <strong class="mr-4">
-                <i class="fas fa-file-invoice-dollar"></i>
-                Supply Orders
-            </strong>
-        </div>
-
         <div class="card-body p-0">
-           
-            <table class="table table-condensed p-0 m-0">
+
+            <table class="table table-sm table-striped p-0 m-0">
                 <thead class="bg-light">
                     <tr>
-                        <th class="px-3 border-0">Date</th>
-                        <th class="px-3 border-0">Patient</th>
-                        <th class="px-3 border-0">Product</th>
-                        <th class="px-3 border-0">Reason</th>
-                        <th class="px-3 border-0">Is Cancelled</th>
-                        <th class="px-3 border-0">Shipment</th>
+                        <th class="border-0">Date</th>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Product</th>
+                        <th class="border-0">Reason</th>
+                        <th class="border-0">Is Cancelled</th>
+                        <th class="border-0">Shipment</th>
                     </tr>
                 </thead>
                 <tbody>
@@ -32,7 +24,7 @@
                         <td>{{ $supplyOrder->product->title }}</td>
                         <td style="width: 300px;">{{ $supplyOrder->reason }}</td>
                         <td>{{ $supplyOrder->is_cancelled ? 'Yes' : 'No' }}</td>
-                        <td class="px-2">
+                        <td>
                             @if($supplyOrder->shipment_id)
                             <i class="fa fa-building"></i>
                             {{$supplyOrder->shipment->status ? $supplyOrder->shipment->status : 'CREATED'}}
@@ -59,9 +51,11 @@
                 </tbody>
 
             </table>
+            @if($supplyOrdersPendingHcpApproval->hasPages())
             <div class="ml-2 mt-2">
                 {{ $supplyOrdersPendingHcpApproval->appends(request()->input())->links() }}
             </div>
+            @endif
         </div>
     </div>
 </div>

+ 14 - 20
resources/views/app/dna/dashboard/supply_orders_pending_my_ack.blade.php

@@ -1,26 +1,18 @@
 @php 
     $supplyOrdersPendingMyAck = $performer->pro->supplyOrdersPendingMyAckRecordsAsDna();
 @endphp
-<div class="p-3 mcp-theme-1" id="patients-list">
+<div class="p-3" id="patients-list">
     <div class="card">
-
-        <div class="card-header px-3 py-2 d-flex align-items-center">
-            <strong class="mr-4">
-                <i class="fas fa-file-invoice-dollar"></i>
-                Supply Orders
-            </strong>
-        </div>
-
         <div class="card-body p-0">
-            <table class="table table-condensed p-0 m-0">
+            <table class="table table-sm table-striped p-0 m-0">
                 <thead class="bg-light">
                     <tr>
-                        <th class="px-3 border-0">Date</th>
-                        <th class="px-3 border-0">Patient</th>
-                        <th class="px-3 border-0">Product</th>
-                        <th class="px-3 border-0">Reason</th>
-                        <th class="px-3 border-0">Is Cancelled</th>
-                        <th class="px-3 border-0">Shipment</th>
+                        <th class="border-0">Date</th>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Product</th>
+                        <th class="border-0">Reason</th>
+                        <th class="border-0">Is Cancelled</th>
+                        <th class="border-0">Shipment</th>
                     </tr>
                 </thead>
                 <tbody>
@@ -31,7 +23,7 @@
                         <td>{{ $supplyOrder->product->title }}</td>
                         <td style="width: 300px;">{{ $supplyOrder->reason }}</td>
                         <td>{{ $supplyOrder->is_cancelled ? 'Yes' : 'No' }}</td>
-                        <td class="px-2">
+                        <td>
                             @if($supplyOrder->shipment_id)
                             <i class="fa fa-building"></i>
                             {{$supplyOrder->shipment->status ? $supplyOrder->shipment->status : 'CREATED'}}
@@ -58,9 +50,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $supplyOrdersPendingMyAck->appends(request()->input())->links() }}
-            </div>
+            @if($supplyOrdersPendingMyAck->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $supplyOrdersPendingMyAck->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 17 - 15
resources/views/app/dna/encounters.blade.php

@@ -15,28 +15,28 @@
             <div class="p-3">
                 @include('app.dna.encounters_filters')
             </div>
-            <table class="table table-condensed p-0 m-0">
-                <thead class="bg-light">
+            <table class="table table-sm table-striped p-0 m-0">
+                <thead class="bg-light border-top">
                     <tr>
-                        <th class="px-3 border-0">Chart #</th>
-                        <th class="px-3 border-0">Name</th>
-                        <th class="px-3 border-0">DOB</th>
-                        <th class="px-3 border-0">Age</th>
-                        <th class="px-3 border-0">Sex</th>
-                        <th class="px-3 border-0">Insurance</th>
-                        <th class="px-3 border-0">MCP</th>
-                        <th class="px-3 border-0">Visit Date</th>
+                        <th class="border-0">Chart #</th>
+                        <th class="border-0">Name</th>
+                        <th class="border-0">DOB</th>
+                        <th class="border-0">Age</th>
+                        <th class="border-0">Sex</th>
+                        <th class="border-0">Insurance</th>
+                        <th class="border-0">MCP</th>
+                        <th class="border-0">Visit Date</th>
                     </tr>
                 </thead>
                 <tbody>
                     @foreach ($notes as $note)
                     <tr class="{{ $note->is_cancelled ? 'cancelled-item always-clickable' : '' }}">
-                        <td class="px-3 text-nowrap">
+                        <td class="text-nowrap">
                             <a native target="_blank" href="{{route('patients.view.dashboard', $note->client)}}">
                                 {{$note->client->chart_number}}
                             </a>
                         </td>
-                        <td class="px-3 text-nowrap">
+                        <td class="text-nowrap">
                             <a native target="_blank" href="{{route('patients.view.dashboard', $note->client)}}">
                                 {{$note->client->displayName()}}
                             </a>
@@ -81,9 +81,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $notes->appends(request()->input())->links() }}
-            </div>
+            @if($notes->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $notes->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 16 - 14
resources/views/app/dna/financial-transactions.blade.php

@@ -12,18 +12,18 @@
         </div>
 
         <div class="card-body p-0">
-            <div class="p-3">
-                <!-- Filter -->
-            </div>
-            <table class="table table-condensed p-0 m-0">
+            <!-- <div class="p-3">
+                Filter
+            </div> -->
+            <table class="table table-sm table-striped p-0 m-0">
                 <thead class="bg-light">
                     <tr>
-                        <th class="px-3 border-0">Date</th>
-                        <th class="px-3 border-0">Type</th>
-                        <th class="px-3 border-0">Chart</th>
-                        <th class="px-3 border-0">Context</th>
-                        <th class="px-3 border-0">Amount</th>
-                        <th class="px-3 border-0">Balance</th>
+                        <th class="border-0">Date</th>
+                        <th class="border-0">Type</th>
+                        <th class="border-0">Chart</th>
+                        <th class="border-0">Context</th>
+                        <th class="border-0">Amount</th>
+                        <th class="border-0">Balance</th>
                     </tr>
                 </thead>
                 <tbody>
@@ -40,7 +40,7 @@
                         </td>
                         <td>{{ $financialTransaction->reason_type }}</td>
                         <td>${{ $financialTransaction->amount }}</td>
-                        <td></td>
+                        <td>${{ $financialTransaction->resulting_balance }}</td>
                     </tr>
                     @endforeach
 
@@ -52,9 +52,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $financialTransactions->appends(request()->input())->links() }}
-            </div>
+            @if($financialTransactions->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $financialTransactions->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 14 - 12
resources/views/app/dna/my-bills.blade.php

@@ -15,16 +15,16 @@
             <div class="p-3">
                 @include('app.dna.my_bills_filters')
             </div>
-            <table class="table table-condensed p-0 m-0">
-                <thead class="bg-light">
+            <table class="table table-sm table-striped p-0 m-0">
+                <thead class="bg-light border-top">
                     <tr>
-                        <th class="px-3 border-0">Date</th>
-                        <th class="px-3 border-0">Patient</th>
-                        <th class="px-3 border-0">Service</th>
-                        <th class="px-3 border-0">Amount</th>
-                        <th class="px-3 border-0">Submitted</th>
-                        <th class="px-3 border-0">Verified</th>
-                        <th class="px-3 border-0">Cancelled</th>
+                        <th class="border-0">Date</th>
+                        <th class="border-0">Patient</th>
+                        <th class="border-0">Service</th>
+                        <th class="border-0">Amount</th>
+                        <th class="border-0">Submitted</th>
+                        <th class="border-0">Verified</th>
+                        <th class="border-0">Cancelled</th>
                     </tr>
                 </thead>
                 <tbody>
@@ -70,9 +70,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $bills->appends(request()->input())->links() }}
-            </div>
+            @if($bills->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $bills->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 15 - 11
resources/views/app/dna/my-clinical-teams.blade.php

@@ -15,14 +15,14 @@
             <div class="p-3">
                 <!-- Filters -->
             </div>
-            <table class="table table-condensed p-0 m-0">
-                <thead class="bg-light">
+            <table class="table table-sm table-striped p-0 m-0">
+                <thead class="bg-light border-top">
                     <tr>
-                        <th class="px-3 border-0">Name</th>
-                        <th class="px-3 border-0">Specialty</th>
-                        <th class="px-3 border-0"># My Patients Assigned</th>
-                        <th class="px-3 border-0">Upcoming Appts.</th>
-                        <th class="px-3 border-0">Public Appointment Page</th>
+                        <th class="border-0">Name</th>
+                        <th class="border-0">Specialty</th>
+                        <th class="border-0"># My Patients Assigned</th>
+                        <th class="border-0">Upcoming Appts.</th>
+                        <th class="border-0">Public Appointment Page</th>
                     </tr>
                 </thead>
                 <tbody>
@@ -32,7 +32,9 @@
                         <td></td>
                         <td></td>
                         <td></td>
-                        <td>{{ $team->slug }}</td>
+                        <td>
+                        <a native target="_blank" href="{{config('app.stagfe6_url') . '/' . $team->slug}}">{{ $team->slug }}</a>
+                        </td>
                     </tr>
                     @endforeach
 
@@ -44,9 +46,11 @@
                 </tbody>
 
             </table>
-            <div class="ml-2 mt-2">
-                {{ $teams->appends(request()->input())->links() }}
-            </div>
+            @if($teams->hasPages())
+                <div class="ml-2 mt-2">
+                    {{ $teams->appends(request()->input())->links() }}
+                </div>
+            @endif
         </div>
     </div>
 </div>

+ 20 - 24
resources/views/app/dna/patients-table.blade.php

@@ -1,19 +1,15 @@
-<table class="table table-condensed p-0 m-0">
-	<thead class="bg-light">
+<table class="table table-sm table-striped p-0 m-0">
+	<thead class="bg-light border-top">
 		<tr>
-			<th class="px-3 border-0">#</th>
-			<th class="px-3 border-0">Name</th>
-			<th class="px-3 border-0">DOB</th>
-			<th class="px-3 border-0">Age</th>
-			<th class="px-3 border-0">Sex</th>
-			<th class="px-3 border-0">BMI</th>
-			<th class="px-3 border-0">Insurance</th>
-			<th class="px-3 border-0">MCP</th>
-			<th class="px-3 border-0">Last Visit</th>
-			<th class="px-3 border-0">Next Appt.</th>
-			<th class="px-3 border-0">Status</th>
-			<th class="px-3 border-0">RPM</th>
-			<th class="px-3 border-0">Assigned On</th>
+			<th class="border-0">#</th>
+			<th class="border-0">Name</th>
+			<th class="border-0">DOB</th>
+			<th class="border-0">Age</th>
+			<th class="border-0">Sex</th>
+			<th class="border-0">BMI</th>
+			<th class="border-0">Insurance</th>
+			<th class="border-0">MCP</th>
+			<th class="border-0">RPM</th>
 		</tr>
 	</thead>
 	<tbody>
@@ -22,7 +18,7 @@
 			$patient->most_recent_weight_measurement_id = 68434;
 		?>
 		<tr>
-			<td class="px-3">
+			<td>
 				<a native target="_blank" href="{{route('patients.view.dashboard', $patient)}}">
 					{{$patient->chart_number}}
 				</a>
@@ -59,7 +55,7 @@
 			</td>
 			<td>
 				<div class="d-flex flex-column">
-					<span>{{ $patient->mcp->displayName() }}</span>					
+					<span>{{ $patient->mcp ? $patient->mcp->displayName() :'' }}</span>					
 					@if($patient->mostRecentCompletedMcpNote)
 						<span>Last Encounter:  
 						<a href="/patients/view/{{ $patient->mostRecentCompletedMcpNote->client->uid }}/notes/view/{{ $patient->mostRecentCompletedMcpNote->uid }}" class="font-weight-bold">
@@ -68,7 +64,7 @@
 						</span>
 					@endif
 					@if($patient->next_mcp_appointment_date)
-						<span>Next Appt. {{ friendly_date_time($patient->next_mcp_appointment_date) }}</span>
+						<span class="text-muted">Next Appt. <b>{{ friendly_date_time($patient->next_mcp_appointment_date) }}</b></span>
 					@endif
 					<?= $recentNote = $patient->mostRecentCompletedMcpNote; ?>
 					@if($recentNote)
@@ -80,25 +76,25 @@
 					@endif
 				</div>
 			</td>
-			<td>{{$patient->lastMcpAppointment ? friendly_date_time($patient->lastMcpAppointment->raw_date.' '.$patient->lastMcpAppointment->raw_start_time) : '-'}}</td>
-			<td>{{$patient->nextMcpAppointment ? friendly_date_time($patient->nextMcpAppointment->raw_date.' '.$patient->nextMcpAppointment->raw_start_time) : '-'}}</td>
-			<td>{{$patient->nextMcpAppointment ? $patient->nextMcpAppointment->status : '-'}}</td>
 			<td>
 			   <div class="d-flex flex-column">
 			   		<span>Enrolled: {{$patient->is_enrolled_in_rm ? 'Yes' : 'No'}}</span>
-				<?php $m = $patient->lastMeasurementOfType('Wt. (lbs.)'); ?>
+				<?php $m = $patient->lastMeasurementOfType('Wt. (lbs.)');?>
+				@if($m)
 				<span>Wt. (lbs.) {{$m && $m->value ? round($m->value, 2) : '-'}}</span>
+				@endif
 				<?php $bp = $patient->lastMeasurementOfType('BP'); ?>
+				@if($bp)
 				<span>BP. {{$bp && $bp->value ? $bp->value : '-'}}</span>
+				@endif
 			   </div>
 			</td>
-			<td>{{$patient->getMcpAssignedOn()}}</td>
 		</tr>
 		@endforeach
 
 		@if(count($patients) === 0)
 		<tr>
-			<td colspan="16">No records found!</td>
+			<td colspan="9">No records found!</td>
 		</tr>
 		@endif
 	</tbody>

+ 2 - 2
resources/views/app/dna/patients_filters.blade.php

@@ -89,7 +89,7 @@
 	</div>
 
 	<!-- LAST VISIT -->
-	<div class="sm-section">
+	<!-- <div class="sm-section">
 		<div class="form-group">
 			<label>Last Visit:</label>
 			<select name="last_visit_category" class="form-control input-sm" v-model="filters.last_visit_category">
@@ -109,7 +109,7 @@
 				</div>
 			</div>
 		</div>
-	</div>
+	</div> -->
 
 	<!-- NEXT APPOINTMENT -->
 	<div>

+ 14 - 0
resources/views/app/patient/coverage_column_renderer.blade.php

@@ -0,0 +1,14 @@
+<div class="d-flex align-items-center">
+<?php $coverageStatus = $patient->getPrimaryCoverageStatus(); ?>
+@if($coverageStatus === 'YES')
+<i class="fa fa-check-circle text-success"></i>
+@elseif($coverageStatus === 'NO')
+<i class="fa fa-times text-danger"></i>
+@else
+    <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
+@endif
+<?php $coverage = $patient->getPrimaryCoverage(); ?>
+@if($coverage)
+    <span class="ml-2">{{$coverage->insuranceDisplayName()}}</span>
+@endif
+</div>

+ 47 - 36
resources/views/app/patient/notes.blade.php

@@ -221,44 +221,55 @@
                     <div class="d-flex align-items-center">
                         <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
                         @if($note->new_or_fu_or_na !== 'NEW')
-                        <span class="px-2 text-secondary">|</span>
-                        <div moe>
-                            <a start show>Clone</a>
-                            <form url="/api/visit/clone" class="mcp-theme-1">
-                                <input type="hidden" name="visitToCloneUid" value="{{$note->uid}}">
-                                <div class="form-group">
-                                    <label for="" class="control-label">Effective Date</label>
-                                    <input type="date" name="effectiveDate" class="form-control input-sm">
-                                </div>
-                                <div class="form-group">
-                                    <label for="" class="control-label">New/Fu</label>
-                                    <select name="newOrFuOrNa" id="" class="form-control input-sm">
-                                        <option value="">--select--</option>
-                                        <option value="NEW">New</option>
-                                        <option value="FU">Fu</option>
-                                        <option value="NA">Na</option>
-                                    </select>
+                            @if(!$note->visit_template_id)
+                                <span class="px-2 text-secondary">|</span>
+                                <div class="d-flex align-items-center">
+                                    <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
+                                    @if($note->new_or_fu_or_na !== 'NEW')
+                                    <span class="px-2 text-secondary">|</span>
+                                    <a href="#" class="text-primary trigger-clone" data-uid="{{$note->uid}}">Clone</a>
+                                    @endif
                                 </div>
+                            @else
+                                <span class="px-2 text-secondary">|</span>
+                                <div moe>
+                                    <a start show>Clone Visit</a>
+                                    <form url="/api/visit/clone" class="mcp-theme-1">
+                                        <input type="hidden" name="visitToCloneUid" value="{{$note->uid}}">
+                                        <div class="form-group">
+                                            <label for="" class="control-label">Effective Date</label>
+                                            <input type="date" name="effectiveDate" class="form-control input-sm">
+                                        </div>
+                                        <div class="form-group">
+                                            <label for="" class="control-label">New/Fu</label>
+                                            <select name="newOrFuOrNa" id="" class="form-control input-sm">
+                                                <option value="">--select--</option>
+                                                <option value="NEW">New</option>
+                                                <option value="FU">Fu</option>
+                                                <option value="NA">Na</option>
+                                            </select>
+                                        </div>
 
-                                <div class="form-group">
-                                    <label for="" class="control-label">Method</label>
-                                    <select name="noteContactMethod" id="" class="form-control input-sm">
-                                        <option value="">--select--</option>
-                                        <option value="VIDEO">Video</option>
-                                        <option value="AUDIO">Audio</option>
-                                        <option value="IN_CLINIC">In Clinic</option>
-                                        <option value="HOUSE_CALL">House Call</option>
-                                    </select>
-                                </div>
-                                <div class="form-group">
-                                    <label for="" class="control-label">Title</label>
-                                    <input type="text" name="title" class="form-control input-sm">
+                                        <div class="form-group">
+                                            <label for="" class="control-label">Method</label>
+                                            <select name="noteContactMethod" id="" class="form-control input-sm">
+                                                <option value="">--select--</option>
+                                                <option value="VIDEO">Video</option>
+                                                <option value="AUDIO">Audio</option>
+                                                <option value="IN_CLINIC">In Clinic</option>
+                                                <option value="HOUSE_CALL">House Call</option>
+                                            </select>
+                                        </div>
+                                        <div class="form-group">
+                                            <label for="" class="control-label">Title</label>
+                                            <input type="text" name="title" class="form-control input-sm">
+                                        </div>
+                                        <div class="form-group m-0">
+                                            <button submit class="btn btn-primary btn-sm">submit</button>
+                                        </div>
+                                    </form>
                                 </div>
-                                <div class="form-group m-0">
-                                    <button submit class="btn btn-primary btn-sm">submit</button>
-                                </div>
-                            </form>
-                        </div>
+                            @endif
                         @endif
                     </div>
                 </td>
@@ -294,7 +305,7 @@
                 $('.trigger-clone')
                     .off('click.clone')
                     .on('click.clone', function() {
-                        $.post('/api/visit/clone', {
+                        $.post('/api/note/clone', {
                             uid: $(this).attr('data-uid')
                         }, function(_data) {
                             if(_data) {

+ 5 - 0
resources/views/app/practice-management/my-teams.blade.php

@@ -43,6 +43,11 @@
                         </td>
                     </tr>
                 @endforeach
+                @if(count($teams) == 0)
+                    <tr>
+                    <td colspan="5" class="text-center">No records found.</td>
+                    </tr>
+                @endif
                 </tbody>
             </table>
         </div>