|
@@ -1,5 +1,6 @@
|
|
|
<?php
|
|
|
/** @var App\Models\Note $note */
|
|
|
+/** @var App\Models\Pro $pro */
|
|
|
?>
|
|
|
@extends ('layouts.patient')
|
|
|
|
|
@@ -50,7 +51,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="card mb-0 {{ $note->is_cancelled ? 'cancelled-item' : '' }}">
|
|
|
- <div class="card-header d-flex align-items-start px-3 border-bottom-0">
|
|
|
+ <div class="card-header d-flex align-items-start px-3 py-2 border-bottom">
|
|
|
<div class="pr-2">
|
|
|
{{$note->title}}
|
|
|
@if(!$note->is_signed_by_hcp)
|
|
@@ -72,7 +73,7 @@
|
|
|
</div>
|
|
|
<div class="px-2 border-left border-right">
|
|
|
<div class="d-flex">
|
|
|
- <span class="mr-2">{{friendly_date_time($note->effective_dateest, false)}}</span>
|
|
|
+ <span class="mr-2">{{friendly_date_time($note->effective_dateest, false, '')}}</span>
|
|
|
@if(!$note->is_signed_by_hcp)
|
|
|
<span moe class="ml-auto">
|
|
|
<a href="" show start><i class="fa fa-calendar"></i></a>
|
|
@@ -91,7 +92,7 @@
|
|
|
@endif
|
|
|
</div>
|
|
|
<div class="d-flex">
|
|
|
- <span class="mr-2">{{friendly_time($note->effective_time)}}</span>
|
|
|
+ <span class="mr-2">{{friendly_time($note->effective_time, '')}}</span>
|
|
|
@if(!$note->is_signed_by_hcp)
|
|
|
<span moe class="ml-auto">
|
|
|
<a href="" show start><i class="fa fa-clock"></i></a>
|
|
@@ -135,6 +136,28 @@
|
|
|
</div>
|
|
|
@endif
|
|
|
</div>
|
|
|
+ <div class="d-flex">
|
|
|
+ <div moe>
|
|
|
+ <a href="" show start>+ Add Section</a>
|
|
|
+ <form url="/api/section/create">
|
|
|
+ <input type="hidden" name="noteUid" value="{{$note->uid}}">
|
|
|
+ <input type="hidden" name="summaryHtml" value="">
|
|
|
+ <input type="hidden" name="contentData" value="">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="sectionTemplateUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- Select Section --</option>
|
|
|
+ @foreach ($sections as $section)
|
|
|
+ <option value="{{$section->uid}}">{{$section->title}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="ml-auto d-flex align-items-start">
|
|
|
<div class="pr-2">
|
|
@@ -173,7 +196,7 @@
|
|
|
<input type="date" name="effectiveDate" class="form-control form-control-sm" value="{{date('Y-m-d')}}" required>
|
|
|
</div>
|
|
|
<div class="mb-2">
|
|
|
- <select autofocus class="form-control" name="code" value="">
|
|
|
+ <select autofocus class="form-control" name="code">
|
|
|
<option value="">-- Select Code --</option>
|
|
|
<?php $noteRates = $pro->noteRates(); ?>
|
|
|
@if($noteRates && count($noteRates))
|
|
@@ -235,22 +258,21 @@
|
|
|
}
|
|
|
$packed = implode("^^^", $packed);
|
|
|
?>
|
|
|
- <div class="primary-form">
|
|
|
+ {{--<div class="primary-form">
|
|
|
<div class="note-content {{ $note->is_cancelled ? 'cancelled' : '' }} {{ $note->is_signed_by_hcp ? 'readonly' : '' }}"
|
|
|
data-note-uid="{{ $note->uid }}"
|
|
|
{{ !$note->is_cancelled && empty($note->free_text_html) ? 'auto-edit' : '' }}
|
|
|
data-shortcuts="{{ $packed }}"
|
|
|
>{!! $note->free_text_html !!}</div>
|
|
|
- </div>
|
|
|
+ </div>--}}
|
|
|
@foreach($note->sections as $section)
|
|
|
- <div class="p-2">
|
|
|
- <strong>{{$section->sectionTemplate->title}}</strong>
|
|
|
- <div>
|
|
|
- <h3>Summary</h3>
|
|
|
- {!! $section->summary_html !!}
|
|
|
- <h3>Edit form</h3>
|
|
|
- @include('sections/'.$section->sectionTemplate->internal_name.'/form')
|
|
|
- </div>
|
|
|
+ <div class="p-3 border-bottom note-section">
|
|
|
+ <a class="font-weight-bold text-primary mb-2 d-flex align-items-center c-pointer" onclick="return $(this).parent().toggleClass('edit')">
|
|
|
+ {{$section->sectionTemplate->title}}
|
|
|
+ <span class="d-none if-not-edit"><i class="fa fa-edit ml-2"></i></span>
|
|
|
+ </a>
|
|
|
+ <div class="d-none if-not-edit bg-light p-2 border">{!! !empty($section->summary_html) ? $section->summary_html : '-' !!}</div>
|
|
|
+ <div class="d-none if-edit">@include('sections/'.$section->sectionTemplate->internal_name.'/form')</div>
|
|
|
</div>
|
|
|
@endforeach
|
|
|
</div>
|
|
@@ -345,7 +367,7 @@
|
|
|
<input type="date" name="effectiveDate" class="form-control form-control-sm" value="{{date('Y-m-d')}}" required>
|
|
|
</div>
|
|
|
<div class="mb-2">
|
|
|
- <select autofocus class="form-control" name="code" value="">
|
|
|
+ <select autofocus class="form-control" name="code">
|
|
|
<option value="">-- Select Code --</option>
|
|
|
<?php $noteRates = $pro->noteRates(); ?>
|
|
|
@if($noteRates && count($noteRates))
|