|
@@ -15,9 +15,16 @@
|
|
|
@include('app/patient/partials/appointments')
|
|
|
|
|
|
{{-- devices --}}
|
|
|
+ <?php $availableDevices = 0; ?>
|
|
|
+ @foreach($devices as $device)
|
|
|
+ @if(!$patient->hasDevice($device))
|
|
|
+ <?php $availableDevices++; ?>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
<div class="mt-2 pb-1">
|
|
|
<div class="d-flex align-items-center mb-2 py-2 border-top border-bottom">
|
|
|
<h6 class="my-0 font-weight-bold text-secondary">Devices</h6>
|
|
|
+ @if($availableDevices > 0)
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
|
<span moe>
|
|
|
<a start show>Add</a>
|
|
@@ -28,9 +35,11 @@
|
|
|
<select name="deviceUid" class="form-control form-control-sm">
|
|
|
<option value=""> --select-- </option>
|
|
|
@foreach($devices as $device)
|
|
|
+ @if(!$patient->hasDevice($device))
|
|
|
<option value="{{$device->uid}}">
|
|
|
{{$device->category}} (IMEI: {{$device->imei}})
|
|
|
</option>
|
|
|
+ @endif
|
|
|
@endforeach
|
|
|
</select>
|
|
|
</div>
|
|
@@ -56,6 +65,7 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
<table class="table table-sm border-0 my-0 mx-2">
|
|
|
<tbody>
|