|
@@ -115,6 +115,107 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
+ {{-- devices --}}
|
|
|
+ <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>
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span moe>
|
|
|
+ <a start show>Add</a>
|
|
|
+ <form url="/api/clientBdtDevice/create" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Device</label>
|
|
|
+ <select name="deviceUid" class="form-control form-control-sm">
|
|
|
+ <option value=""> --select-- </option>
|
|
|
+ @foreach($devices as $device)
|
|
|
+ <option value="{{$device->uid}}">
|
|
|
+ {{$device->category}} (IMEI: {{$device->imei}})
|
|
|
+ </option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Instructions</label>
|
|
|
+ <input type="text" name="instructions" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Internal Memo</label>
|
|
|
+ <input type="text" name="internalMemo" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Status</label>
|
|
|
+ <input type="text" name="status" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Status Memo</label>
|
|
|
+ <input type="text" name="statusMemo" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <table class="table table-sm border-0 my-0 mx-2">
|
|
|
+ <tbody>
|
|
|
+ @foreach($patient->devices as $device)
|
|
|
+ <tr>
|
|
|
+ <td class="text-black p-0 border-0">
|
|
|
+ <div class="pb-0">
|
|
|
+ <span relative moe>
|
|
|
+ <a class="on-hover-opaque" start show title="Update">
|
|
|
+ <i class="font-size-11 fa fa-edit text-primary"></i>
|
|
|
+ </a>
|
|
|
+ <form url="/api/clientBdtDevice/update">
|
|
|
+ <input type="hidden" name="uid" value="{{ $device->uid }}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Instructions</label>
|
|
|
+ <input type="text" name="instructions"
|
|
|
+ value="{{$device->instructions}}"
|
|
|
+ class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Internal Memo</label>
|
|
|
+ <input type="text" name="internalMemo"
|
|
|
+ value="{{$device->internal_memo}}"
|
|
|
+ class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Status</label>
|
|
|
+ <input type="text" name="status"
|
|
|
+ value="{{$device->status}}"
|
|
|
+ class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Status Memo</label>
|
|
|
+ <input type="text" name="statusMemo"
|
|
|
+ value="{{$device->status_memo}}"
|
|
|
+ class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ <b>{{$device->device->category}}</b> / IMEI: {{$device->device->imei}}
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ @if(!$patient->devices || count($patient->devices) === 0)
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary p-0 border-0">
|
|
|
+ No devices
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
{{-- vitals --}}
|
|
|
@include('app/patient/partials/vitals')
|
|
|
|