|
@@ -1,53 +1,59 @@
|
|
|
-<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)
|
|
|
+ @endphp
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-0">
|
|
|
+ @if($patientsWithoutAppointments && count($patientsWithoutAppointments))
|
|
|
+ <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>
|
|
|
- <td class="text-nowrap">
|
|
|
- {{friendly_date($row->most_recent_completed_mcp_note_date)}}
|
|
|
- </td>
|
|
|
+ <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>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <div class="m-2">
|
|
|
- {{ $patientsWithoutAppointments->onEachSide(0)->withQueryString()->links() }}
|
|
|
+ </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.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>
|
|
|
+ @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>
|