|
@@ -10,6 +10,9 @@
|
|
method="post"
|
|
method="post"
|
|
enctype="multipart/form-data">
|
|
enctype="multipart/form-data">
|
|
<input type="hidden" name="clientUid" value="{{ $patient->uid }}">
|
|
<input type="hidden" name="clientUid" value="{{ $patient->uid }}">
|
|
|
|
+ @if(request()->input('noteUid'))
|
|
|
|
+ <input type="hidden" name="noteUid" value="{{ request()->input('noteUid') }}">
|
|
|
|
+ @endif
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label for="" class="text-sm text-secondary mb-1">Category</label>
|
|
<label for="" class="text-sm text-secondary mb-1">Category</label>
|
|
<input type="text" class="form-control form-control-sm" name="category"
|
|
<input type="text" class="form-control form-control-sm" name="category"
|
|
@@ -69,12 +72,18 @@
|
|
<tbody>
|
|
<tbody>
|
|
@foreach($patient->incomingReports as $document)
|
|
@foreach($patient->incomingReports as $document)
|
|
<tr class="{{$document->is_entry_error ? 'entry-error' : ''}} {{@$currentReport->uid === $document->uid ? 'bg-aliceblue' : ''}}">
|
|
<tr class="{{$document->is_entry_error ? 'entry-error' : ''}} {{@$currentReport->uid === $document->uid ? 'bg-aliceblue' : ''}}">
|
|
- <td class="px-2">{{ friendly_date_time($document->created_at, false) }}</td>
|
|
|
|
|
|
+ <td class="px-2">
|
|
|
|
+ {{ friendly_date_time($document->created_at, false) }}
|
|
|
|
+ @if(request()->input('noteUid') && $document->note && $document->note->uid === request()->input('noteUid'))
|
|
|
|
+ <div class="mt-1 text-info text-sm">Created on this note</div>
|
|
|
|
+ @endif
|
|
|
|
+ </td>
|
|
<td class="px-2">
|
|
<td class="px-2">
|
|
{{$document->hcp ? $document->hcp->displayName() : '-'}}
|
|
{{$document->hcp ? $document->hcp->displayName() : '-'}}
|
|
</td>
|
|
</td>
|
|
<td class="px-2">
|
|
<td class="px-2">
|
|
- <a mc-initer="incoming-reports" href="{{route('patients.view.incoming-reports', ['patient' => $patient, 'currentReport' => $document])}}"
|
|
|
|
|
|
+ <a mc-initer="incoming-reports"
|
|
|
|
+ href="{{route('patients.view.incoming-reports', ['patient' => $patient, 'currentReport' => $document])}}{{request()->input('noteUid') ? '?noteUid=' . request()->input('noteUid') : ''}}"
|
|
class="{{@$currentReport->uid === $document->uid ? 'font-weight-bold' : ''}}">
|
|
class="{{@$currentReport->uid === $document->uid ? 'font-weight-bold' : ''}}">
|
|
{{ $document->title ? $document->title : '(not set)' }}
|
|
{{ $document->title ? $document->title : '(not set)' }}
|
|
</a>
|
|
</a>
|
|
@@ -205,7 +214,7 @@
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <a class="ml-auto" mc-initer="incoming-reports" href="{{route('patients.view.incoming-reports', ['patient' => $patient, 'currentReport' => null])}}">
|
|
|
|
|
|
+ <a class="ml-auto" mc-initer="incoming-reports" href="{{route('patients.view.incoming-reports', ['patient' => $patient, 'currentReport' => null])}}{{request()->input('noteUid') ? '?noteUid=' . request()->input('noteUid') : ''}}">
|
|
<i class="fa fa-times-circle on-hover-opaque"></i>
|
|
<i class="fa fa-times-circle on-hover-opaque"></i>
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|