|
@@ -61,6 +61,59 @@
|
|
|
}
|
|
|
?>
|
|
|
|
|
|
+ {{-- appts list --}}
|
|
|
+ <div class="">
|
|
|
+ <div class="d-flex align-items-end pb-3">
|
|
|
+ <h4 class="font-weight-bold m-0 font-size-16">{{ $patient->displayName() }}'s Appointments</h4>
|
|
|
+ </div>
|
|
|
+ <table class="table table-striped table-sm table-bordered mb-4">
|
|
|
+ @if($appointments && count($appointments))
|
|
|
+ <thead class="bg-light">
|
|
|
+ <tr>
|
|
|
+ <th class="text-secondary border-bottom-0">Date & Time</th>
|
|
|
+ <th class="text-secondary border-bottom-0">Pro</th>
|
|
|
+ <th class="text-secondary border-bottom-0">Title</th>
|
|
|
+ <th class="text-secondary border-bottom-0">Description</th>
|
|
|
+ <th class="text-secondary border-bottom-0">Status</th>
|
|
|
+ <th class="text-secondary border-bottom-0">Confirmation</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach($appointments as $appointment)
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <a href="/patients/view/{{$patient->uid}}/calendar/{{$appointment->uid}}" class="text-nowrap">
|
|
|
+ {{friendlier_date_time($appointment->raw_date . ' ' . $appointment->raw_start_time)}}
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ <td>{{ $appointment->pro->displayName() }}</pre></td>
|
|
|
+ <td>{{ $appointment->title }}</td>
|
|
|
+ <td>{{ $appointment->description }}</td>
|
|
|
+ <td>
|
|
|
+ {{ $appointment->status }}
|
|
|
+ @if($appointment->status_memo)
|
|
|
+ <hr>
|
|
|
+ {{$appointment->status_memo}}
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ @if($appointment->status !== 'CANCELLED' && $appointment->status !== 'COMPLETED')
|
|
|
+ @include('app.patient.partials.appointment-confirmation')
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ @else
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary p-3">No recent or upcoming appointments</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ @endif
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div id="calendarApp">
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
<h4 class="font-weight-bold m-0 font-size-16">
|