|
@@ -5,7 +5,7 @@
|
|
<?php
|
|
<?php
|
|
$trimLayout = true;
|
|
$trimLayout = true;
|
|
$routeName = request()->route()->getName();
|
|
$routeName = request()->route()->getName();
|
|
-$isVisitNote = ($routeName === 'patients.view.notes.view.dashboard' && @$note && !!$note->visitTemplate);
|
|
|
|
|
|
+$leanLeftNav = ($routeName === 'patients.view.notes.view.dashboard' && @$note && !!$note->visitTemplate) || ($routeName === 'patients.view.sleep-study');
|
|
$isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_create($patient->created_at))->invert === 1);
|
|
$isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_create($patient->created_at))->invert === 1);
|
|
?>
|
|
?>
|
|
<style media="screen">
|
|
<style media="screen">
|
|
@@ -15,7 +15,7 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
|
|
</style>
|
|
</style>
|
|
@section('content')
|
|
@section('content')
|
|
<div class="container-fluid h-100 popup-content-container">
|
|
<div class="container-fluid h-100 popup-content-container">
|
|
- <div class="main-row h-100 {{ !request()->input('popupmode') ? '' : 'px-0' }} {{$isVisitNote ? 'autohide-leftnav' : ''}}">
|
|
|
|
|
|
+ <div class="main-row h-100 {{ !request()->input('popupmode') ? '' : 'px-0' }} {{$leanLeftNav ? 'autohide-leftnav' : ''}}">
|
|
@if(!request()->input('popupmode'))
|
|
@if(!request()->input('popupmode'))
|
|
<nav id="sidebarMenu" class="d-block bg-light sidebar collapse px-0">
|
|
<nav id="sidebarMenu" class="d-block bg-light sidebar collapse px-0">
|
|
<div class="sidebar-sticky pt-3">
|
|
<div class="sidebar-sticky pt-3">
|
|
@@ -63,6 +63,9 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
|
|
<li class="nav-item">
|
|
<li class="nav-item">
|
|
<a class="nav-link {{ strpos($routeName, 'patients.view.vitals-graph') === 0 ? 'active' : '' }}" href="{{ route('patients.view.vitals-graph', ['patient' => $patient]) }}">Vitals Graph</a>
|
|
<a class="nav-link {{ strpos($routeName, 'patients.view.vitals-graph') === 0 ? 'active' : '' }}" href="{{ route('patients.view.vitals-graph', ['patient' => $patient]) }}">Vitals Graph</a>
|
|
</li>
|
|
</li>
|
|
|
|
+ <li class="nav-item">
|
|
|
|
+ <a class="nav-link {{ strpos($routeName, 'patients.view.sleep-study') === 0 ? 'active' : '' }}" href="{{ route('patients.view.sleep-study', ['patient' => $patient]) }}">Sleep Study</a>
|
|
|
|
+ </li>
|
|
<li class="nav-item">
|
|
<li class="nav-item">
|
|
<a class="nav-link {{ strpos($routeName, 'patients.view.care-months') === 0 ? 'active' : '' }}" href="{{ route('patients.view.care-months', ['patient' => $patient]) }}">Care Months</a>
|
|
<a class="nav-link {{ strpos($routeName, 'patients.view.care-months') === 0 ? 'active' : '' }}" href="{{ route('patients.view.care-months', ['patient' => $patient]) }}">Care Months</a>
|
|
</li>
|
|
</li>
|
|
@@ -268,7 +271,7 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</nav>
|
|
@endif
|
|
@endif
|
|
- <main role="main" class="w-100 {{$trimLayout || $isVisitNote ? 'p-0' : ''}}">
|
|
|
|
|
|
+ <main role="main" class="w-100 {{$trimLayout || $leanLeftNav ? 'p-0' : ''}}">
|
|
@if($pro->is_enrolled_as_mcp && !$patient->mcp)
|
|
@if($pro->is_enrolled_as_mcp && !$patient->mcp)
|
|
<div class="d-flex align-items-center alert alert-info bg-white mcp-theme-1 p-3 hide-inside-ticket-popup m-1">
|
|
<div class="d-flex align-items-center alert alert-info bg-white mcp-theme-1 p-3 hide-inside-ticket-popup m-1">
|
|
<div class="font-size-16 mr-3">
|
|
<div class="font-size-16 mr-3">
|
|
@@ -310,7 +313,7 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
- <div class="card {{$trimLayout || $isVisitNote ? 'card m-0 border-0 rounded-0' : 'my-3'}}" id="patient-header">
|
|
|
|
|
|
+ <div class="card {{$trimLayout || $leanLeftNav ? 'card m-0 border-0 rounded-0' : 'my-3'}}" id="patient-header">
|
|
<div id="patient-header-content">
|
|
<div id="patient-header-content">
|
|
<div class="@if($patient->client_engagement_status_category == 'DUMMY') alert-warning @endif hide-inside-ticket-popup">
|
|
<div class="@if($patient->client_engagement_status_category == 'DUMMY') alert-warning @endif hide-inside-ticket-popup">
|
|
@include('layouts.patient-header')
|
|
@include('layouts.patient-header')
|
|
@@ -374,32 +377,16 @@ $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_creat
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
- {{--<div class="text-container border-bottom d-flex align-items-center mcp-theme-1 px-3">
|
|
|
|
-
|
|
|
|
- @if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
|
|
|
|
- <div moe relative class="ml-2">
|
|
|
|
- <a href="" start show class="btn btn-sm btn-success text-white font-weight-bold small">Claim as MCP</a>
|
|
|
|
- <form url="/api/mcpRequest/claim" class="mcp-theme-1" right>
|
|
|
|
- <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
|
- <p>Claim this patient?</p>
|
|
|
|
- <div>
|
|
|
|
- <button submit class="btn btn-sm btn-primary mr-2">Yes</button>
|
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
|
|
|
+ <div class="card-body {{$routeName === 'patients.view.notes.view.dashboard' ? 'p-0' : ''}} border-top">
|
|
|
|
+ {{--<h1 class="h3">@yield('section-title')</h1>--}}
|
|
|
|
+ <div class="mcp-theme-1">
|
|
|
|
+ @yield('inner-content')
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </form>
|
|
|
|
</div>
|
|
</div>
|
|
- @endif
|
|
|
|
- </div>--}}
|
|
|
|
- <div class="card-body {{$routeName === 'patients.view.notes.view.dashboard' ? 'p-0' : ''}} border-top">
|
|
|
|
- {{--<h1 class="h3">@yield('section-title')</h1>--}}
|
|
|
|
- <div class="mcp-theme-1">
|
|
|
|
- @yield('inner-content')
|
|
|
|
- </div>
|
|
|
|
|
|
+ </main>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-</main>
|
|
|
|
-</div>
|
|
|
|
-</div>
|
|
|
|
<script>
|
|
<script>
|
|
(function() {
|
|
(function() {
|
|
function init() {
|
|
function init() {
|