|
@@ -33,20 +33,20 @@
|
|
|
@foreach($appointments as $appointment)
|
|
|
<tr>
|
|
|
<td class="text-nowrap">
|
|
|
- <a native target="_blank" href="{{route('patients.view.dashboard', $appointment->client)}}">
|
|
|
- {{$appointment->client->chart_number}}
|
|
|
+ <a native target="_blank" href="{{route('patients.view.dashboard', $appointment->client_uid)}}">
|
|
|
+ {{$appointment->client_chart_number}}
|
|
|
</a>
|
|
|
</td>
|
|
|
<td class="text-nowrap">
|
|
|
- <a native target="_blank" href="{{route('patients.view.dashboard', $appointment->client)}}">
|
|
|
- {{$appointment->client->displayName()}}
|
|
|
+ <a native target="_blank" href="{{route('patients.view.dashboard', $appointment->client_uid)}}">
|
|
|
+ {{$appointment->client_display_name}}
|
|
|
</a>
|
|
|
</td>
|
|
|
- <td class="text-nowrap">{{ friendly_date_time($appointment->client->dob, false) }}</td>
|
|
|
- <td>{{ $appointment->client->age_in_years ? $appointment->client->age_in_years : '-' }}</td>
|
|
|
- <td>{{ $appointment->client->sex }}</td>
|
|
|
+ <td class="text-nowrap">{{ friendly_date_time($appointment->client_dob, false) }}</td>
|
|
|
+ <td>{{ $appointment->client_age_in_years ? $appointment->client_age_in_years : '-' }}</td>
|
|
|
+ <td>{{ $appointment->client_sex }}</td>
|
|
|
<td>
|
|
|
- <?php $coverageStatus = $appointment->client->getPrimaryCoverageStatus(); ?>
|
|
|
+ <?php $coverageStatus = $appointment->getClientPrimaryCoverageStatus(); ?>
|
|
|
<div class="text-nowrap">
|
|
|
@if($coverageStatus === 'YES')
|
|
|
<i class="fa fa-check-circle text-success" data-toggle="tooltip" data-placement="bottom" title="Covered"></i>
|
|
@@ -55,15 +55,14 @@
|
|
|
@else
|
|
|
<i class="fa fa-exclamation-triangle text-warning-mellow" data-toggle="tooltip" data-placement="bottom" title="Unknown"></i>
|
|
|
@endif
|
|
|
- <?php $coverage = $appointment->client->getPrimaryCoverage(); ?>
|
|
|
- @if($coverage)
|
|
|
- {{$coverage->insuranceDisplayName()}}
|
|
|
+ @if($appointment->clientCoverage())
|
|
|
+ {{$appointment->insuranceNameToString()}}
|
|
|
@endif
|
|
|
</div>
|
|
|
</td>
|
|
|
- <td>{{ $appointment->pro->displayName() }}</td>
|
|
|
+ <td>{{ $appointment->pro_display_name }}</td>
|
|
|
<td>
|
|
|
- <a href="/patients/view/{{$appointment->client->uid}}/calendar/{{$appointment->uid}}" class="text-nowrap">
|
|
|
+ <a href="/patients/view/{{$appointment->client_uid}}/calendar/{{$appointment->uid}}" class="text-nowrap">
|
|
|
{{friendly_date($appointment->raw_date) . ' ' . friendly_time($appointment->raw_start_time)}}
|
|
|
</a>
|
|
|
</td>
|