|
@@ -50,22 +50,31 @@
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <table class="table table-striped table-sm table-bordered mb-0" style="table-layout: fixed">
|
|
|
|
|
|
+ <table class="table table-sm table-bordered mb-0" style="table-layout: fixed">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
- <th class="px-2 text-secondary border-bottom-0">Created</th>
|
|
|
|
<th class="px-2 text-secondary border-bottom-0">Category</th>
|
|
<th class="px-2 text-secondary border-bottom-0">Category</th>
|
|
<th class="px-2 text-secondary border-bottom-0">Facility</th>
|
|
<th class="px-2 text-secondary border-bottom-0">Facility</th>
|
|
<th class="px-2 text-secondary border-bottom-0 w-25">Action</th>
|
|
<th class="px-2 text-secondary border-bottom-0 w-25">Action</th>
|
|
|
|
+ <th class="px-2 text-secondary border-bottom-0">Created</th>
|
|
<th class="px-2 text-secondary border-bottom-0">Status</th>
|
|
<th class="px-2 text-secondary border-bottom-0">Status</th>
|
|
<th class="px-2 text-secondary border-bottom-0"> </th>
|
|
<th class="px-2 text-secondary border-bottom-0"> </th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
|
|
+ <?php $prevItemType = false; ?>
|
|
@foreach($patient->actionItems as $item)
|
|
@foreach($patient->actionItems as $item)
|
|
|
|
+ @if(!$prevItemType || $prevItemType !== $item->action_item_category)
|
|
|
|
+ <tr class="bg-light">
|
|
|
|
+ <td colspan="6" class="font-weight-bold px-2">
|
|
|
|
+ {{ucwords(str_replace("_", " ", strtolower($item->action_item_category)))}}
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endif
|
|
<tr>
|
|
<tr>
|
|
- <td class="px-2">{{friendly_date_time($item->created_at, false)}}</td>
|
|
|
|
- <td class="px-2">{{ucwords(str_replace("_", " ", strtolower($item->action_item_category)))}}</td>
|
|
|
|
|
|
+ <td class="px-2">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
<td class="px-2">
|
|
<td class="px-2">
|
|
{{$item->facility ? $item->facility->name : ''}}
|
|
{{$item->facility ? $item->facility->name : ''}}
|
|
<span moe>
|
|
<span moe>
|
|
@@ -108,6 +117,7 @@
|
|
</span>
|
|
</span>
|
|
<div class="text-sm text-secondary">{{$item->content_detail}}</div>
|
|
<div class="text-sm text-secondary">{{$item->content_detail}}</div>
|
|
</td>
|
|
</td>
|
|
|
|
+ <td class="px-2">{{friendly_date_time($item->created_at, false)}}</td>
|
|
<td class="px-2">
|
|
<td class="px-2">
|
|
{{$item->status_category}}
|
|
{{$item->status_category}}
|
|
<span moe>
|
|
<span moe>
|
|
@@ -171,6 +181,7 @@
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ <?php $prevItemType = $item->action_item_category; ?>
|
|
@endforeach
|
|
@endforeach
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|