|
@@ -71,7 +71,9 @@
|
|
<td>
|
|
<td>
|
|
<table class="table table-sm border-0 my-0">
|
|
<table class="table table-sm border-0 my-0">
|
|
<tbody>
|
|
<tbody>
|
|
|
|
+ <?php $numAppts = 0; ?>
|
|
@foreach($patient->upcomingAppointments as $appointment)
|
|
@foreach($patient->upcomingAppointments as $appointment)
|
|
|
|
+ @if($appointment->status !== 'CANCELLED' && $appointment->status !== 'ABANDONED')
|
|
<tr>
|
|
<tr>
|
|
<td class="text-black p-0 border-0">
|
|
<td class="text-black p-0 border-0">
|
|
<div class="pb-0">
|
|
<div class="pb-0">
|
|
@@ -83,11 +85,13 @@
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ <?php $numAppts++; ?>
|
|
|
|
+ @endif
|
|
@endforeach
|
|
@endforeach
|
|
- @if(!$patient->upcomingAppointments || count($patient->upcomingAppointments) === 0)
|
|
|
|
|
|
+ @if(!$numAppts)
|
|
<tr>
|
|
<tr>
|
|
<td class="text-secondary p-0 border-0">
|
|
<td class="text-secondary p-0 border-0">
|
|
- No appointments
|
|
|
|
|
|
+ No upcoming appointments
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@endif
|
|
@endif
|