|
@@ -18,6 +18,7 @@
|
|
|
<th class="border-0">Context</th>
|
|
|
<th class="border-0">Minutes</th>
|
|
|
<th class="border-0">Amount</th>
|
|
|
+ <th class="border-0">Sign</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
@@ -25,14 +26,65 @@
|
|
|
<tr>
|
|
|
<td>{{ friendly_date_time($row->effective_date, false) }}</td>
|
|
|
<td>
|
|
|
- <a target="_blank" native href="{{route('patients.view.dashboard', $row->client)}}">
|
|
|
- {{$row->client->displayName()}}
|
|
|
- </a>
|
|
|
+ @if($row->client)
|
|
|
+ <a target="_blank" native href="{{route('patients.view.dashboard', $row->client)}}">
|
|
|
+ {{$row->client->displayName()}}
|
|
|
+ </a>
|
|
|
+ @else
|
|
|
+ -
|
|
|
+ @endif
|
|
|
</td>
|
|
|
<td>{{ $row->code }}</td>
|
|
|
<td>{{ $row->generic_target_entity_type ?: '-' }}</td>
|
|
|
<td>{{ round(floor($row->number_of_units * 60)) }} m</td>
|
|
|
- <td>{{ $row->hcp_expected_payment_amount ? '$'.$row->hcp_expected_payment_amount : '' }}</td>
|
|
|
+ <td>
|
|
|
+ @if($row->generic_pro_id === $pro->id)
|
|
|
+ {{ $row->generic_pro_expected_payment_amount ? '$'.round($row->generic_pro_expected_payment_amount, 2) : '' }}
|
|
|
+ @elseif($row->hcp_pro_id === $pro->id)
|
|
|
+ {{ $row->hcp_expected_payment_amount ? '$'.round($row->hcp_expected_payment_amount, 2) : '' }}
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ @if($row->generic_pro_id === $pro->id)
|
|
|
+ @if($row->is_signed_by_generic_pro)
|
|
|
+ <div class="d-block text-secondary text-nowrap">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ Signed
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe relative>
|
|
|
+ <a class="text-nowrap" href="" show start>Sign</a>
|
|
|
+ <form url="/api/bill/signAsGenericPro" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <p>Sign this bill?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @elseif($row->hcp_pro_id === $pro->id)
|
|
|
+ @if($row->is_signed_by_hcp)
|
|
|
+ <div class="d-block text-secondary text-nowrap">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ Signed
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe relative>
|
|
|
+ <a class="" href="" show start>Sign</a>
|
|
|
+ <form url="/api/bill/signAsHcp" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <p>Sign this bill as HCP?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
@endforeach
|
|
|
</tbody>
|