cleanup & setting up sync update

This commit is contained in:
2025-03-24 17:19:51 +03:00
parent a2ce9248f0
commit 22473c8f3f
13650 changed files with 507 additions and 1947259 deletions
@@ -1,48 +0,0 @@
@php
$hospital_information = App::make('hospital_information');
@endphp
<div class="row">
<div class="col-sm-3">
<div class="white-box" style="height: 100px; padding-top: 5px; background: #d8d8d8;">
<a href="{{ $hospital_information->website }}" title="{{ $hospital_information->name }}">
<img style="margin: auto; height: 83px;" src="{{ asset($hospital_information->logo) }}" alt="Hospital Logo">
</a>
</div>
</div>
<div class="col-sm-3">
<div class="white-box" style="height: 100px; padding-top: 5px; background: #d8d8d8;">
<h4><a href="{{ url('http://www.streamlinehealth.org') }}" style="color: green;"><strong>{{ $hospital_information->app_name }}</strong></a></h4>
<br>
</div>
</div>
<div class="col-sm-3"></div>
<div class="col-sm-3">
<div class="white-box" style="height: 100px; padding-top: 5px; background: #d8d8d8;">
<h5 style="color: green">{{ ucwords(Auth::user()->first_name) . ' ' . ucwords(Auth::user()->last_name) }}</h5>
<div class="row">
<div class="col-sm-6">
@if (session()->has('patient_id'))
<a style="background: yellow" class="btn btn-sm" href="/patient_episodes/">{{ __('layout.patient_home') }}</a>
@endif
</div>
<div class="col-sm-6">
@if (session()->has('patient_id'))
<a style="background: #b6895e; color: white; text-shadow: none;" class="btn btn-sm" href="/patient_finance/home">{{ __('layout.finance_home') }}</a>
@endif
</div>
</div>
</div>
</div>
</div>
@push('scripts')
<script type="text/javascript">
</script>
@endpush
@@ -1,253 +0,0 @@
@push('scripts')
@endpush
<div class="white-box">
<div class="row">
<div class="col-md-12">
<div>
<div class="row">
<div class="col-md-9">
<table class="table table-bordered table-condensed table-striped">
<thead>
<tr>
<th style="color: black">{{ __('layout.patient_number') }}</th>
<th style="color: black">{{ __('layout.patient_names') }}</th>
<th style="color: black">{{ __('layout.gender') }}</th>
<th style="color: black">{{ __('layout.age') }}</th>
<th style="color: black">{{ __('layout.patient_category') }}</th>
@if (is_patient_accounts_enabled())
<th style="color: black">{{ __('layout.patient_finance_account') }}</th>
@endif
</tr>
</thead>
<tbody>
@php $dob = new Carbon\Carbon($patient->date_of_birth) @endphp
<tr>
<td>{{ $patient->number }}</td>
<td>{!! insurance_flag($patient->id) !!}</td>
<td>{{ $patient->gender == 1 ? __('layout.male') : __('layout.female') }}</td>
<td>{{ $dob->diffInYears(Carbon\Carbon::now()) }} (yrs)</td>
<td>{{ $categories[$patient->category_id] ?? 'N/A' }}</td>
@if (is_patient_accounts_enabled())
<td>
{{ ugandan_shillings($patient->patient_account_balance) }}
<a href="/patient_accounts/statement/">{{ __('layout.more_details') }}</a>
</td>
@endif
</tr>
</tbody>
</table>
</div>
<div class="col-md-3">
<div class="button-box">
<a class="img" href="#modal-photo" data-toggle="modal" style="color: whitesmoke">
@if (!is_null($patient->photo) && $patient->photo != '')
<img src='{{ asset($patient->photo) }}' class="img-rounded center"
style='height: 59px; width: auto;' alt='Profile Picture' />
@else
<img src="/uploads/streamline_images/person-place-holder.jpg"
class="img-rounded center"
style='height: 59px; width: 50%; margin-right: auto; margin-left: auto; display: block'
alt='Person' />
@endif
</a>
</div>
<div class="modal fade" id="modal-photo" tabindex="-1" role="dialog"
aria-labelledby="modal-photoLabel1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="modal-photoLabel1">
{{ __('layout.insured_patient_photo') }}</h4>
</div>
<div class="modal-body">
<div class="col-sm-12 text-center">
<img src="@if (!is_null($patient->photo) && $patient->photo != '') {{ asset($patient->photo) }} @else {{ asset('/uploads/streamline_images/person-place-holder.jpg') }} @endif"
class="img-rounded center" style="margin: auto"
alt='{{ __('layout.photo_not_available') }}' />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger btn-sm"
data-dismiss="modal">{{ __('layout.close') }}</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-md-2">
<button type="button" class="btn btn-success btn-sm" data-toggle="modal"
data-target="#demographicsModal">{{ __('layout.demographics') }}</button>
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-success btn-sm show-episode-modal" data-backdrop="static"
data-keyboard="false" data-toggle="modal"
data-target="#episodeModal">{{ __('layout.new_episode') }}</button>
</div>
<div class="col-md-3">
<a class="btn btn-success btn-sm" href="/patient_finance/customer_statement"
target="_blank">{{ __('layout.customer_statement') }}</a>
</div>
@if (Auth::user()->can('pay-all-patient-bills'))
<div class="col-md-3">
<!-- If you want to uncomment the below function please know the page it leads to is severely out of date -->
<!-- <a class="btn btn-success btn-sm" href="/patient_finance/pay_all_patient_bills/{{ $patient_id }}">Central Billing</a> -->
</div>
@endif
</div>
</div>
@php $dob = new Carbon\Carbon($patient->date_of_birth); @endphp
<div class="modal fade" id="demographicsModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel1">{{ __('layout.patient_details') }}</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-6">
<table class="table table-bordered">
<tbody>
<tr>
<th class="highlight">{{ __('layout.patient_number') }}</th>
<td>{{ $patient->number }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.patient_names') }}</th>
<td>{{ $patient->first_name }} {{ $patient->last_name }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.gender') }}</th>
<td>{{ $patient->gender == 1 ? __('layout.male') : __('layout.female') }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.date_of_birth') }}</th>
<td>{{ streamline_date($patient->date_of_birth) }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.age') }}</th>
<td>{{ $dob->diffInYears(Carbon\Carbon::now()) }} {{ __('layout.years') }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.residence') }}</th>
<td>{{ patient_residence($patient->id) }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.marital_status') }}</th>
<td>
{{ isset($marital_statuses[$patient->marital_status]) ? $marital_statuses[$patient->marital_status] : 'N/A' }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-6">
<table class="table table-bordered">
<tbody>
<tr>
<th class="highlight">{{ __('layout.next_of_kin') }}</th>
<td>{{ $patient->next_of_kin }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.relationship') }}</th>
<td>
{{ isset($relationships[$patient->next_of_kin_relationship]) ? $relationships[$patient->next_of_kin_relationship] : "N/A" }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.mobile_number') }}</th>
<td>{{ $patient->phone }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.phone_name') }}</th>
<td>{{ $patient->phone_owner }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.insurance_status') }}</th>
<td>
@if($patient->insurance_status == 1)
{{ __('layout.insured') }}
@else
{{ __('layout.not_insured') }}
@endif
</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.occupation') }}</th>
<td>{{ isset($occupations[$patient->occupation_id]) ? $occupations[$patient->occupation_id] : 'N/A' }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.patient_category') }}</th>
<td>{{ isset($patient_categories[$patient->category_id]) ? $patient_categories[$patient->category_id] : 'N/A' }}</td>
</tr>
@php
$registration_fields = !empty($patient->registration_fields)? json_decode($patient->registration_fields, true):[];
@endphp
@foreach ($registration_fields as $key => $registration_field)
@php $keys =explode("_",$key) @endphp
@if (!empty($keys[2]))
<tr>
<th class="highlight">{{ get_name($keys[2], 'id', 'name', 'patient_registration_fields') }}</th>
<td>{{ $registration_field }}</td>
</tr>
@endif
@endforeach
<tr>
<th class="highlight">{{ __('layout.registered_by') }}</th>
<td>{{ get_full_name($patient->created_by, 'id', 'first_name', 'last_name', 'users') }}</td>
</tr>
<tr>
<th class="highlight">{{ __('layout.registered_on') }}</th>
<td>
{{ streamline_date($patient->created_at) }}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">{{ __('layout.close') }}</button>
<button type="button" class="btn btn-primary" id="edit_patient"
onclick="window.location.href='/patients/{{ $patient->id }}/edit'">{{ __('layout.edit_patient') }}</button>
</div>
</div>
</div>
</div>
<!-- modal that pops up when a new episode is clicked -->
<div class="modal fade" id="episodeModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="row">
<div class="col-sm-9" style="margin-top: 5px;">{{ __('layout.begin_episode_for_patient') }}</div>
<div class="col-sm-3">
{{ Form::open(['route' => 'patient_episodes.create_episode']) }}
{{ Form::hidden('patient_id', $patient->id) }}
{{ Form::hidden('is_from_finance', 1) }}
<button type="submit" class="btn btn-success btn-sm">{{ __('layout.yes') }}</button>
<button type="button" class="btn btn-default"
data-dismiss="modal">{{ __('layout.cancel') }}</button>
{{ Form::close() }}
</div>
</div>
</div>
</div>
</div>
</div>
@@ -1,15 +0,0 @@
@php
$hospital_info = \Streamline\Models\HospitalInformation::find(1);
@endphp
@if(is_null($hospital_info->pdf_print_header))
<img style="max-width: 300px; max-height: 140px;" src="{{ public_path($hospital_info->logo) }}" class="mx-auto d-block mx-3" alt="Responsive image">
<br>
<p class="h6 text-center mt-0 font-weight-bold">
{{ $hospital_info->name . ' | ' . $hospital_info->phone_number . ' | ' . $hospital_info->email . ' | ' . $hospital_info->address . ' ' . $hospital_info->country }}
</p>
@else
<img style="max-height: 150px;" src="{{ public_path($hospital_info->pdf_print_header) }}" class="mx-auto d-block mx-3" alt="Responsive image">
@endif
<hr>
@@ -1,168 +0,0 @@
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
<title>{{ config('app.name', 'Streamline') }}</title>
<!-- Bootstrap Core CSS -->
<link href="{{ asset('elite/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('elite/bower_components/bootstrap-extension/css/bootstrap-extension.css') }}" rel="stylesheet">
<!-- Menu CSS -->
<link href="{{ asset('elite/bower_components/sidebar-nav/dist/sidebar-nav.min.css') }}" rel="stylesheet">
<!-- animation CSS -->
<link href="{{ asset('elite/css/animate.css') }}" rel="stylesheet">
<!-- Custom CSS -->
<link href="{{ asset('elite/css/style.css') }}" rel="stylesheet">
<!-- color CSS -->
<link href="{{ asset('elite/css/colors/green-dark.css') }}" id="theme" rel="stylesheet">
<!-- Streamline - custom -->
<link href="{{ asset('css/streamline-custom.css') }}" id="theme" rel="stylesheet">
<style type="text/css">
body{
font-size: 13px;
line-height: 1.2;
}
.fingerprint_box {
height: 280px;
width: 250px;
border: 3px solid green;
border-radius: 20px;
margin: 1rem 0;
background-color: rgb(247, 247, 247);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
</style>
<!--Start of Tawk.to Script-->
{{-- <script type="text/javascript">--}}
{{-- var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date(); --}}
{{-- (function(){--}}
{{-- var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0]; --}}
{{-- s1.async = true; --}}
{{-- s1.src = '{{ asset('enbedtalk / default.js') }}'; --}}
{{-- s1.charset = 'UTF-8'; --}}
{{-- s1.setAttribute('crossorigin', '*'); --}}
{{-- s0.parentNode.insertBefore(s1, s0); --}}
{{-- })(); --}}
{{--</script>--}}
<!--End of Tawk.to Script-->
@stack('styles')
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Preloader -->
<div class="preloader">
<div class="cssload-speeding-wheel"></div>
</div>
<div id="wrapper">
<!-- Top navigation -->
@include('layouts.top')
<!-- .Top navigation -->
@if (session()->has('streamline_setup') == FALSE)
@include('layouts.nav')
@endif
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid" style="background: #708090;">
{{-- <div class="container-fluid">--}}
<!--row -->
@yield('content')
<!-- /.row -->
<!-- .right-sidebar -->
@include('layouts.options')
<!-- /.right-sidebar -->
</div>
<!-- /.container-fluid -->
<footer class="footer text-center"> {{ date('Y')}} &copy; Stre@mline {{ __('layout.powered_by') }} Kisiizi Hospital {{ __('layout.and') }} Streamline Health Ltd - {{ __('layout.version_number') }} - </footer>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="{{ asset('elite/bower_components/jquery/dist/jquery.min.js') }}"></script>
<!-- Bootstrap Core JavaScript -->
<script src="{{ asset('elite/bootstrap/dist/js/tether.min.js') }}"></script>
<script src="{{ asset('elite/bootstrap/dist/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/bootstrap-extension/js/bootstrap-extension.min.js') }}"></script>
<!-- Menu Plugin JavaScript -->
<script src="{{ asset('elite/bower_components/sidebar-nav/dist/sidebar-nav.min.js') }}"></script>
<!--slimscroll JavaScript -->
<script src="{{ asset('elite/js/jquery.slimscroll.js') }}"></script>
<!--Wave Effects -->
<script src="{{ asset('elite/js/waves.js') }}"></script>
<!-- Custom Theme JavaScript -->
<script src="{{ asset('elite/js/custom.min.js') }}"></script>
<!--Style Switcher -->
<script src="{{ asset('elite/bower_components/styleswitcher/jQuery.style.switcher.js') }}"></script>
<script type="text/javascript">
//Set ajax callbacks
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
// prevent multiple submissions of the forms
$("form").submit(function() {
$(this).submit(function() {
return false;
});
return true;
});
// new click event to capture if the user wants to close the sidebar
$(".open-close-custom").on('click', function () {
if ($("body").hasClass("content-wrapper")) {
$("body").trigger("resize");
$(".sidebar-nav, .slimScrollDiv").css("overflow", "hidden").parent().css("overflow", "visible");
$("body").removeClass("content-wrapper");
$(".open-close i").addClass("icon-arrow-left-circle");
$(".logo span").show();
localStorage.setItem("sidebarState", "0");
} else {
$("body").trigger("resize");
$(".sidebar-nav, .slimScrollDiv").css("overflow-x", "visible").parent().css("overflow", "visible");
$("body").addClass("content-wrapper");
$(".open-close i").removeClass("icon-arrow-left-circle");
$(".logo span").hide();
localStorage.setItem("sidebarState", "1");
}
});
$(window).load(function() {
// once all the window elements have loaded, check state of the sidebar
let sidebarState = localStorage.getItem("sidebarState");
if (sidebarState == 1){
// if the sidebar status is hidden, hide the sidebar
$("body").trigger("resize");
$(".sidebar-nav, .slimScrollDiv").css("overflow-x", "visible").parent().css("overflow", "visible");
$("body").addClass("content-wrapper");
$(".open-close i").removeClass("icon-arrow-left-circle");
$(".logo span").hide();
}
});
</script>
@stack('scripts')
<script src="{{ asset('elite/bower_components/styleswitcher/jQuery.style.switcher.js') }}"></script>
</body>
</html>
File diff suppressed because it is too large Load Diff
@@ -1,72 +0,0 @@
<div class="right-sidebar">
<div class="slimscrollright">
<div class="rpanel-title"> Service Panel <span><i class="ti-close right-side-toggle"></i></span> </div>
<div class="r-panel-body">
<ul>
<li><b>Layout Options</b></li>
<li>
<div class="checkbox checkbox-info">
<input id="checkbox1" type="checkbox" class="fxhdr">
<label for="checkbox1"> Fix Header </label>
</div>
</li>
<li>
<div class="checkbox checkbox-warning">
<input id="checkbox2" type="checkbox" class="fxsdr">
<label for="checkbox2"> Fix Sidebar </label>
</div>
</li>
<li>
<div class="checkbox checkbox-success">
<input id="checkbox4" type="checkbox" class="open-close">
<label for="checkbox4"> Toggle Sidebar </label>
</div>
</li>
</ul>
<ul id="themecolors" class="m-t-20">
<li><b>With Light sidebar</b></li>
<li><a href="javascript:void(0)" theme="default" class="default-theme">1</a></li>
<li><a href="javascript:void(0)" theme="green" class="green-theme">2</a></li>
<li><a href="javascript:void(0)" theme="gray" class="yellow-theme">3</a></li>
<li><a href="javascript:void(0)" theme="blue" class="blue-theme">4</a></li>
<li><a href="javascript:void(0)" theme="purple" class="purple-theme">5</a></li>
<li><a href="javascript:void(0)" theme="megna" class="megna-theme working">6</a></li>
<li><b>With Dark sidebar</b></li>
<br/>
<li><a href="javascript:void(0)" theme="default-dark" class="default-dark-theme">7</a></li>
<li><a href="javascript:void(0)" theme="green-dark" class="green-dark-theme">8</a></li>
<li><a href="javascript:void(0)" theme="gray-dark" class="yellow-dark-theme">9</a></li>
<li><a href="javascript:void(0)" theme="blue-dark" class="blue-dark-theme">10</a></li>
<li><a href="javascript:void(0)" theme="purple-dark" class="purple-dark-theme">11</a></li>
<li><a href="javascript:void(0)" theme="megna-dark" class="megna-dark-theme">12</a></li>
</ul>
{{-- <ul class="m-t-20 chatonline">--}}
{{-- <li><b>Chat option</b></li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/varun.jpg" alt="user-img" class="img-circle"> <span>Varun Dhavan <small class="text-success">online</small></span></a>--}}
{{-- </li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/genu.jpg" alt="user-img" class="img-circle"> <span>Genelia Deshmukh <small class="text-warning">Away</small></span></a>--}}
{{-- </li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/ritesh.jpg" alt="user-img" class="img-circle"> <span>Ritesh Deshmukh <small class="text-danger">Busy</small></span></a>--}}
{{-- </li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/arijit.jpg" alt="user-img" class="img-circle"> <span>Arijit Sinh <small class="text-muted">Offline</small></span></a>--}}
{{-- </li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/govinda.jpg" alt="user-img" class="img-circle"> <span>Govinda Star <small class="text-success">online</small></span></a>--}}
{{-- </li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/hritik.jpg" alt="user-img" class="img-circle"> <span>John Abraham<small class="text-success">online</small></span></a>--}}
{{-- </li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/john.jpg" alt="user-img" class="img-circle"> <span>Hritik Roshan<small class="text-success">online</small></span></a>--}}
{{-- </li>--}}
{{-- <li>--}}
{{-- <a href="javascript:void(0)"><img src="../plugins/images/users/pawandeep.jpg" alt="user-img" class="img-circle"> <span>Pwandeep rajan <small class="text-success">online</small></span></a>--}}
{{-- </li>--}}
{{-- </ul>--}}
</div>
</div>
</div>
@@ -1,95 +0,0 @@
@php
$hospital_information = \Streamline\Models\HospitalInformation::first();
@endphp
<nav class="navbar navbar-default navbar-static-top m-b-0">
<div class="navbar-header">
<a class="navbar-toggle hidden-sm hidden-md hidden-lg " href="javascript:void(0)" data-toggle="collapse"
data-target=".navbar-collapse">
<i class="ti-menu"></i>
</a>
<div class="top-left-part" style="background-color: white">
<a class="logo" href="{{ route('home') }}">
<b>
<img src="{{ asset('uploads/streamline/color/60X60-06.png') }}" style="height: 45px; width: 45px;"
alt="home" />
</b>
<span class="hidden-xs"><img src="{{ asset('uploads/streamline/color/280X50-06.png') }}"
style="height: 25px; width: 130px;" alt="home" /></span>
</a>
</div>
<ul class="nav navbar-top-links navbar-left hidden-xs">
<li>
<a href="javascript:void(0)"
class="open-close-custom hidden-xs waves-effect waves-light d-flex align-items-center"
id="open-close-custom">
<i class="icon-arrow-left-circle ti-menu" style="font-size: 20px"></i>
</a>
</li>
<li>
<img src="{{ asset(isset($hospital_information->logo) ? $hospital_information->logo : 'uploads/logo/logo-sm.png') }}"
height="60px" alt="">
</li>
</ul>
<ul class="nav navbar-top-links navbar-right pull-right d-flex align-items-center justify-content-between">
@if (session()->has('patient_id') && possible_patient_record_duplicates(session()->get('patient_id')))
<li>
<div class="alert alert-info position-relative py-2 px-3 my-0 mx-3 br-5">
<button type="button" class="close position-absolute right-0 top-0" style="z-index: 1;"
data-dismiss="alert">×</button>
<span>
<a href="{{ url('possible_duplicate_patients') }}/{{ session()->get('patient_id') }}"
target="_blank">{{ __('layout.has_possible_duplicates') }} &nbsp;&nbsp;</a>
</span>
</li>
@endif()
<li>
@if (session()->has('patient_id'))
<a href="/patient_episodes/"
style="color: #337ab7; background-color: #e6e600; text-shadow: none; height: 5px; line-height: normal"
class="d-flex align-items-center">{{ __('layout.patient_home') }}</a>
@endif
</li>
<li>
@if (session()->has('patient_id'))
<a href="/patient_finance/home"
style="background: #b6895e; color: white; text-shadow: none; height: 5px; line-height: normal"
class="d-flex align-items-center">{{ __('layout.finance_home') }}</a>
@endif
</li>
<li class="dropdown">
<a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#"> <img
src="{{ asset('uploads/users/' . (Auth::user()->photo ?? 'placeholder.png')) }}"
alt="{{ Auth::user()->username }}" width="36" class="img-rounded"><b
class="hidden-xs">{{ Auth::user()->first_name . ' ' . Auth::user()->last_name }}</b> </a>
<ul class="dropdown-menu dropdown-user animated flipInY">
<li><a href="{{ route('users.show', Auth::user()->id) }}"><i class="ti-eye"></i>
{{ __('layout.view_profile') }}</a></li>
<li><a href="{{ route('users.edit', Auth::user()->id) }}"><i class="ti-user"></i>
{{ __('layout.edit_profile') }}</a></li>
<li><a href="{{ route('logout') }}"
onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><i
class="fa fa-power-off"></i> {{ __('layout.sign_out') }}</a></li>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
</ul>
</li>
@if (Auth::user()->can('manage-frequently-asked-questions'))
<li class="dropdown">
<a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#">
<i class="fa fa-question-circle"></i>
<b class="hidden-xs">{{ __('layout.help') }}</b>
</a>
<ul class="dropdown-menu dropdown-user animated flipInY">
<li><a href="{{ route('frequently_asked_questions.index') }}">
{{ __('layout.frequently_asked_question') }}</a></li>
<li><a target="_blank" a href="https://support.streamlinehealth.org/">
{{ __('layout.streamline_support_system') }}</a></li>
</ul>
</li>
@endif
</ul>
</div>
</nav>