|
@@ -98,14 +98,14 @@
|
|
<div class="flex-grow-1">
|
|
<div class="flex-grow-1">
|
|
<table class="table table-sm table-striped table-bordered mb-0" style="table-layout: fixed">
|
|
<table class="table table-sm table-striped table-bordered mb-0" style="table-layout: fixed">
|
|
<?php
|
|
<?php
|
|
- $supplyOrdersList = $patient->activeSupplyOrders;
|
|
|
|
|
|
+ $supplyOrdersList = $activeSupplyOrders;
|
|
if(request()->input('filter')) {
|
|
if(request()->input('filter')) {
|
|
switch(request()->input('filter')) {
|
|
switch(request()->input('filter')) {
|
|
case 'cancelled':
|
|
case 'cancelled':
|
|
- $supplyOrdersList = $patient->cancelledSupplyOrders;
|
|
|
|
|
|
+ $supplyOrdersList = $cancelledSupplyOrders;
|
|
break;
|
|
break;
|
|
case 'all':
|
|
case 'all':
|
|
- $supplyOrdersList = $patient->supplyOrders;
|
|
|
|
|
|
+ $supplyOrdersList = $supplyOrders;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -128,11 +128,11 @@
|
|
<td>
|
|
<td>
|
|
@if(request()->input('note-uid') && request()->input('popupmode'))
|
|
@if(request()->input('note-uid') && request()->input('popupmode'))
|
|
<a class="c-pointer" onclick="return refreshDynamicStagPopup('{{route('patients.view.supply-orders', ['patient' => $patient, 'supplyOrder' => $iSupplyOrder])}}?{{request()->input('filter') ? 'filter=' . request()->input('filter') : ''}}&popupmode=1&{{request()->input('note-uid') ? 'note-uid=' . request()->input('note-uid') : ''}}')">
|
|
<a class="c-pointer" onclick="return refreshDynamicStagPopup('{{route('patients.view.supply-orders', ['patient' => $patient, 'supplyOrder' => $iSupplyOrder])}}?{{request()->input('filter') ? 'filter=' . request()->input('filter') : ''}}&popupmode=1&{{request()->input('note-uid') ? 'note-uid=' . request()->input('note-uid') : ''}}')">
|
|
- {{ $iSupplyOrder->product->title }}
|
|
|
|
|
|
+ {{ $iSupplyOrder->product_title }}
|
|
</a>
|
|
</a>
|
|
@else
|
|
@else
|
|
<a href="{{route('patients.view.supply-orders', ['patient' => $patient, 'supplyOrder' => $iSupplyOrder])}}{{request()->input('filter') ? '?filter=' . request()->input('filter') : ''}}">
|
|
<a href="{{route('patients.view.supply-orders', ['patient' => $patient, 'supplyOrder' => $iSupplyOrder])}}{{request()->input('filter') ? '?filter=' . request()->input('filter') : ''}}">
|
|
- {{ $iSupplyOrder->product->title }}
|
|
|
|
|
|
+ {{ $iSupplyOrder->product_title }}
|
|
</a>
|
|
</a>
|
|
@endif
|
|
@endif
|
|
@if($iSupplyOrder->is_cancelled)
|
|
@if($iSupplyOrder->is_cancelled)
|
|
@@ -141,12 +141,12 @@
|
|
</td>
|
|
</td>
|
|
<td>{{ $iSupplyOrder->reason }}</td>
|
|
<td>{{ $iSupplyOrder->reason }}</td>
|
|
<td>{{ friendlier_date_time($iSupplyOrder->created_at) }}</td>
|
|
<td>{{ friendlier_date_time($iSupplyOrder->created_at) }}</td>
|
|
- <td>{{ $iSupplyOrder->is_signed_by_pro ? $iSupplyOrder->signedPro->displayName() : '-' }}</td>
|
|
|
|
|
|
+ <td>{{ $iSupplyOrder->signed_by_pro_display_name ? $iSupplyOrder->signed_by_pro_display_name : '-' }}</td>
|
|
<td>{{ $iSupplyOrder->is_cancelled ? 'Yes' : 'No' }}</td>
|
|
<td>{{ $iSupplyOrder->is_cancelled ? 'Yes' : 'No' }}</td>
|
|
<td>
|
|
<td>
|
|
@if($iSupplyOrder->shipment_id)
|
|
@if($iSupplyOrder->shipment_id)
|
|
<i class="fa fa-building"></i>
|
|
<i class="fa fa-building"></i>
|
|
- {{$iSupplyOrder->shipment->status ? $iSupplyOrder->shipment->status : 'CREATED'}}
|
|
|
|
|
|
+ {{$iSupplyOrder->shipment_status ? $iSupplyOrder->shipment_status : 'CREATED'}}
|
|
@elseif($iSupplyOrder->is_cleared_for_shipment)
|
|
@elseif($iSupplyOrder->is_cleared_for_shipment)
|
|
<span class="text-info">
|
|
<span class="text-info">
|
|
<i class="fa fa-user-nurse"></i>
|
|
<i class="fa fa-user-nurse"></i>
|