|
@@ -1,5 +1,5 @@
|
|
|
<?php
|
|
|
-$iName = $segment->segmentTemplate->internal_name;
|
|
|
+$iName = $segment->segmentTemplate ? $segment->segmentTemplate->internal_name;: '';
|
|
|
$wizardPowered = [
|
|
|
'omega_medications',
|
|
|
'omega_problems',
|
|
@@ -11,7 +11,7 @@ $wizardPowered = [
|
|
|
<div class="border-bottom note-section visit-segment outline-0 {{$note->is_signed_by_hcp ? 'events-none' : (in_array($iName, $wizardPowered) !== FALSE ? 'edit-trigger' : 'edit')}}"
|
|
|
data-segment-uid="{{ $segment->uid }}"
|
|
|
data-segment-template-uid="{{ $segment->segmentTemplate->uid }}"
|
|
|
- data-segment-template-name="{{ $segment->segmentTemplate->internal_name }}">
|
|
|
+ data-segment-template-name="{{ $iName }}">
|
|
|
|
|
|
<div class="bg-white text-dark px-2 py-1">
|
|
|
<div class="d-flex align-items-baseline">
|
|
@@ -39,13 +39,13 @@ $wizardPowered = [
|
|
|
@endif
|
|
|
|
|
|
{{-- if segment has log feature, link --}}
|
|
|
- @if($pro->pro_type === 'ADMIN' && file_exists(resource_path("views/app/patient/segment-templates/{$segment->segmentTemplate->internal_name}/log.blade.php")))
|
|
|
+ @if($pro->pro_type === 'ADMIN' && file_exists(resource_path("views/app/patient/segment-templates/{$iName}/log.blade.php")))
|
|
|
<a native="" target="_blank"
|
|
|
class="c-pointer ml-2 text-decoration-none"
|
|
|
open-in-stag-popup=""
|
|
|
title="{{$segment->display_title}} - Change Log"
|
|
|
popup-style="medium"
|
|
|
- href="/note-segment-view/{{$patient->uid}}/{{$note->uid}}/{{$segment->uid}}/<?= $segment->segmentTemplate->internal_name ?>/log">
|
|
|
+ href="/note-segment-view/{{$patient->uid}}/{{$note->uid}}/{{$segment->uid}}/<?= $iName ?>/log">
|
|
|
<i class="fas fa-history on-hover-opaque"></i>
|
|
|
</a>
|
|
|
@endif
|