|
@@ -20,26 +20,29 @@ $isOmegaHistorySegment = strpos($iName, 'omega_history_') === 0;
|
|
|
?>
|
|
|
|
|
|
@if(!!$segment->display_title)
|
|
|
- <div class="text-dark font-weight-bold font-size-13 mr-2 {{$extraClass}}">
|
|
|
+ <div class="text-dark font-weight-bold font-size-13 mr-2 {{$extraClass}} {{!$segment->is_active ? 'opacity-35' : ''}}">
|
|
|
{{$segment->display_title}}:
|
|
|
</div>
|
|
|
@endif
|
|
|
|
|
|
<div class="flex-grow-1">
|
|
|
- <div class="d-none if-not-edit inset-comment summary-container">
|
|
|
- @if($note->is_signed_by_hcp && $segment->accepted_suggestion_summary_html)
|
|
|
- {!! $segment->accepted_suggestion_summary_html !!}
|
|
|
- @else
|
|
|
- {!! $segment->summary_html !!}
|
|
|
- @endif
|
|
|
- </div>
|
|
|
-
|
|
|
- <?php if($iName !== 'ros' && $iName !== 'omega_ros' && !$isOmegaHistorySegment) { ?>
|
|
|
- <div class="d-none if-edit edit-container">
|
|
|
- {!! $segment->edit_html !!}
|
|
|
- </div>
|
|
|
- <?php } ?>
|
|
|
-
|
|
|
+ @if($segment->is_active)
|
|
|
+ <div class="d-none if-not-edit inset-comment summary-container">
|
|
|
+ @if($note->is_signed_by_hcp && $segment->accepted_suggestion_summary_html)
|
|
|
+ {!! $segment->accepted_suggestion_summary_html !!}
|
|
|
+ @else
|
|
|
+ {!! $segment->summary_html !!}
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <?php if($iName !== 'ros' && $iName !== 'omega_ros' && !$isOmegaHistorySegment) { ?>
|
|
|
+ <div class="d-none if-edit edit-container">
|
|
|
+ {!! $segment->edit_html !!}
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
+ @else
|
|
|
+ <span class="text-warning-dark">Deactivated</span>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -71,6 +74,24 @@ $isOmegaHistorySegment = strpos($iName, 'omega_history_') === 0;
|
|
|
</a>
|
|
|
@endif
|
|
|
|
|
|
+ @if($note->is_signed_by_hcp && $pro->pro_type === 'ADMIN')
|
|
|
+ @if($segment->is_active)
|
|
|
+ <div moe class="ml-2">
|
|
|
+ <form url="/api/segment/deactivate" show>
|
|
|
+ <input type="hidden" name="uid" value="{{$segment->uid}}">
|
|
|
+ <button submit class="p-0 border-0 bg-transparent text-primary text-sm outline-0">Deactivate</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div moe class="ml-2">
|
|
|
+ <form url="/api/segment/reactivate" show>
|
|
|
+ <input type="hidden" name="uid" value="{{$segment->uid}}">
|
|
|
+ <button submit class="p-0 border-0 bg-transparent text-primary text-sm outline-0">Reactivate</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
|