|
@@ -3,8 +3,8 @@
|
|
|
<link href="/select2/select2.min.css" rel="stylesheet" />
|
|
|
<script src="/select2/select2.min.js"></script>
|
|
|
<div id="patient-devices">
|
|
|
- <div class="d-flex align-items-start pb-2">
|
|
|
- <div class="font-weight-bold m-0">Devices</div>
|
|
|
+ <div class="d-flex align-items-center pb-2">
|
|
|
+ <div class="font-weight-bold m-0 font-size-16">Devices</div>
|
|
|
@if(count($devices))
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
|
<div moe>
|
|
@@ -48,23 +48,23 @@
|
|
|
</div>
|
|
|
<table class="table table-striped table-sm table-bordered mb-0">
|
|
|
@if($patient->devices && count($patient->devices))
|
|
|
- <thead>
|
|
|
+ <thead class="bg-light">
|
|
|
<tr>
|
|
|
- <th class="px-2 text-secondary">Created</th>
|
|
|
- <th class="px-2 text-secondary">Category</th>
|
|
|
- <th class="px-2 text-secondary">IMEI</th>
|
|
|
- <th class="px-2 text-secondary">Last Measurement</th>
|
|
|
- <th class="px-2 text-secondary"></th>
|
|
|
- <th class="px-2 text-secondary"></th>
|
|
|
+ <th class="border-0 text-secondary">Created</th>
|
|
|
+ <th class="border-0 text-secondary">Category</th>
|
|
|
+ <th class="border-0 text-secondary">IMEI</th>
|
|
|
+ <th class="border-0 text-secondary">Last Measurement</th>
|
|
|
+ <th class="border-0 text-secondary"></th>
|
|
|
+ <th class="border-0 text-secondary"></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@foreach($patient->devices as $device)
|
|
|
<tr>
|
|
|
- <td class="px-2 text-nowrap">{{ friendly_date_time($device->device->created_at) }}</td>
|
|
|
- <td class="px-2">{{ $device->device->category }}</td>
|
|
|
- <td class="px-2"><pre class="m-0">{{ $device->device->imei }}</pre></td>
|
|
|
- <td class="px-2">
|
|
|
+ <td class="text-nowrap">{{ friendly_date_time($device->device->created_at) }}</td>
|
|
|
+ <td>{{ $device->device->category }}</td>
|
|
|
+ <td><pre class="m-0">{{ $device->device->imei }}</pre></td>
|
|
|
+ <td>
|
|
|
<?php $lastMeasurement = $device->lastDeviceMeasurement(); ?>
|
|
|
@if($lastMeasurement)
|
|
|
@if($lastMeasurement->is_cellular_zero)
|
|
@@ -114,20 +114,20 @@
|
|
|
<h2>Deactivated Devices</h2>
|
|
|
<table class="table table-striped table-sm table-bordered mb-0">
|
|
|
@if($patient->deactivatedDevices && count($patient->deactivatedDevices))
|
|
|
- <thead>
|
|
|
+ <thead class="bg-light">
|
|
|
<tr>
|
|
|
- <th class="px-2 text-secondary">Created</th>
|
|
|
- <th class="px-2 text-secondary w-25">Category</th>
|
|
|
- <th class="px-2 text-secondary w-50">IMEI</th>
|
|
|
- <th class="px-2 text-secondary"></th>
|
|
|
+ <th class="border-0 text-secondary">Created</th>
|
|
|
+ <th class="border-0 text-secondary w-25">Category</th>
|
|
|
+ <th class="border-0 text-secondary w-50">IMEI</th>
|
|
|
+ <th class="border-0 text-secondary"></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@foreach($patient->deactivatedDevices as $deactivatedDevice)
|
|
|
<tr>
|
|
|
- <td class="px-2">{{ friendly_date_time($deactivatedDevice->device->created_at) }}</td>
|
|
|
- <td class="px-2">{{ $deactivatedDevice->device->category }}</td>
|
|
|
- <td class="px-2"><pre class="m-0">{{ $deactivatedDevice->device->imei }}</pre></td>
|
|
|
+ <td>{{ friendly_date_time($deactivatedDevice->device->created_at) }}</td>
|
|
|
+ <td>{{ $deactivatedDevice->device->category }}</td>
|
|
|
+ <td><pre class="m-0">{{ $deactivatedDevice->device->imei }}</pre></td>
|
|
|
<td>
|
|
|
<div moe relative>
|
|
|
<a start show class="on-hover-opaque">Reactivate</a>
|