Import latest app updates from streamline

An updated set of source files and initialization was provided by streamline to
address issues observed during initial testing. These files have been updated in
order to generate a new set of app images.
This commit is contained in:
2024-04-11 11:16:51 -07:00
parent cb4c6b4c1a
commit 4a89356390
10435 changed files with 107737 additions and 1220538 deletions
@@ -1,7 +1,7 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/horizontal-timeline/css/horizontal-timeline.css') }}" rel="stylesheet"/>
<link href="{{ asset('elite/bower_components/horizontal-timeline/css/horizontal-timeline.css') }}" rel="stylesheet" />
<style></style>
@endpush
@@ -21,16 +21,18 @@
<div class="white-box">
<div class="row">
<div class="col-md-4">
@if(!is_null($patient->photo) && $patient->photo != "")
<img src='{{ asset($patient->photo) }}' class="img-rounded center" style='height: 100px; width: 100%' alt='Photo not available' />
@if (!is_null($patient->photo) && $patient->photo != '')
<img src='{{ asset($patient->photo) }}' class="img-rounded center" style='height: auto; width: 100%'
alt='Photo not available' />
@else
<img src="/uploads/streamline_images/person-place-holder.jpg" class="img-rounded center" style='height: 100px; width: 100%' alt='Photo not available' />
<img src="/uploads/streamline_images/person-place-holder.jpg" class="img-rounded center"
style='height: auto; width: 100%' alt='Photo not available' />
@endif
</div>
<div class="col-md-8">
<div class="row">
<div class="col-md-4"><b>Patient Names:</b> {{ $patient->first_name }} {{ $patient->last_name }}</div>
<div class="col-md-4"><b>Gender:</b> {{ $patient->gender == 1 ? "Male" : "Female" }}</div>
<div class="col-md-4"><b>Gender:</b> {{ $patient->gender == 1 ? 'Male' : 'Female' }}</div>
<div class="col-md-4"><b>Age:</b> {{ get_patients_age($patient->date_of_birth) }}</div>
</div>
<br><br>
@@ -49,17 +51,19 @@
// invert side to place record
$inverted = false;
@endphp
@foreach($patient_timeline as $timeline)
<li @if($inverted) class="timeline-inverted" @endif>
<div class="timeline-badge success"><i class="fa @if($inverted) fa-arrow-right @else fa-arrow-left @endif"></i> </div>
@foreach ($patient_timeline as $timeline)
<li @if ($inverted) class="timeline-inverted" @endif>
<div class="timeline-badge success"><i
class="fa @if ($inverted) fa-arrow-right @else fa-arrow-left @endif"></i>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h4 class="timeline-title">{{ $timeline["date"] }}</h4>
<h4 class="timeline-title">{{ $timeline['date'] }}</h4>
</div>
<div class="timeline-body">
<div class="card card-outline-primary text-center text-dark">
<div class="card-block">
<p>{!! $timeline["text"] !!}</p>
<p>{!! $timeline['text'] !!}</p>
</div>
</div>
</div>
File diff suppressed because it is too large Load Diff
@@ -1,5 +1,4 @@
@push('scripts')
@endpush
<div class="white-box">
@@ -10,58 +9,70 @@
<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>
<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) }}
@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>
<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: 100%' alt='Profile Picture' />
@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' />
<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 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>
<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">
<img src='{{ asset($patient->photo) }}' class="img-rounded center" style="margin: auto" alt='{{ __('layout.photo_not_available') }}' />
<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>
<button type="button" class="btn btn-danger btn-sm"
data-dismiss="modal">{{ __('layout.close') }}</button>
</div>
</div>
</div>
@@ -76,19 +87,23 @@
<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>
<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>
<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> -->
<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>
@@ -98,7 +113,8 @@
<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>
<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">
@@ -106,35 +122,36 @@
<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>
<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>
@@ -176,6 +193,18 @@
<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>
@@ -192,8 +221,10 @@
</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>
<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>
@@ -211,7 +242,8 @@
{{ 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>
<button type="button" class="btn btn-default"
data-dismiss="modal">{{ __('layout.cancel') }}</button>
{{ Form::close() }}
</div>
</div>
@@ -219,8 +251,3 @@
</div>
</div>
</div>
@@ -3,13 +3,13 @@
@endphp
@if(is_null($hospital_info->pdf_print_header))
<img style="max-width: 300px; max-height: 140px;" src="{{ asset($hospital_info->logo) }}" class="mx-auto d-block mx-3" alt="Responsive image">
<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="{{ asset($hospital_info->pdf_print_header) }}" class="mx-auto d-block mx-3" alt="Responsive image">
<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>
@@ -46,7 +46,28 @@
}
</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>
@@ -64,11 +85,20 @@
<!-- 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>
<footer class="footer text-center"> {{ date('Y')}} &copy; Stre@mline {{ __('layout.powered_by') }} Kisiizi Hospital {{ __('layout.and') }} Innovation Streams Ltd - {{ __('layout.version_number') }} - </footer>
<!-- /.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 -->
@@ -81,8 +111,6 @@
<script src="{{ asset('elite/js/jquery.slimscroll.js') }}"></script>
<!--Wave Effects -->
<script src="{{ asset('elite/js/waves.js') }}"></script>
<!-- Sparkline chart JavaScript -->
<!-- jQuery peity -->
<!-- Custom Theme JavaScript -->
<script src="{{ asset('elite/js/custom.min.js') }}"></script>
<!--Style Switcher -->
@@ -132,40 +160,6 @@
$(".logo span").hide();
}
});
// Start of Logout user after inactivity time exceeds session expiration time implementation
var sessionTimeoutId;
var session_expiration_time = "<?php echo session('session_expiration_time', 60) * 60000; ?>" || (60 * 60000); // defaults to 60 minutes in milliseconds
const handleLogout = () => {
// Call the logout API endpoint
$.ajax({
url: "<?php echo route('logout'); ?>",
method: 'POST',
success: function(response) {
// Redirect the user to the login page
window.location.href = "<?php echo route('login'); ?>";
window.location.reload();
}
});
}
$(document).ready(function() {
sessionTimeoutId = setTimeout(function() {
handleLogout();
}, session_expiration_time);
});
$(document).on('mousemove keypress', function() { // Track Activity
clearTimeout(sessionTimeoutId);
sessionTimeoutId = setTimeout(function() {
handleLogout();
}, session_expiration_time);
});
// End of Logout user after inactivity time exceeds session expiration time implementation
</script>
@stack('scripts')
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,72 @@
<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,70 +1,95 @@
@php
$hospital_information = \Streamline\Models\HospitalInformation::first();
$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">
<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" />
<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>
<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" id="open-close-custom"><i class="icon-arrow-left-circle ti-menu"></i></a></li>
<li>
<img src="{{ asset(isset($hospital_information->logo) ? $hospital_information->logo : 'uploads/logo/logo-sm.png') }}" height="60px" alt="">
<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">
@if(session()->has('patient_id') && possible_patient_record_duplicates(session()->get('patient_id')))
<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" style="padding: 5px; margin-top: 10px; margin-right: 5px;">
<button type="button" class="close" data-dismiss="alert">×</button>
<span style="padding-top: 5px;">
<a href="{{ url('possible_duplicate_patients') }}/{{ session()->get('patient_id') }}" target="_blank">{{ __('layout.has_possible_duplicates') }} &nbsp;&nbsp;</a>
<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;">{{ __('layout.patient_home') }}</a>
@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;">{{ __('layout.finance_home') }}</a>
@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) }}" alt="{{ Auth::user()->username }}" width="36" class="img-rounded"><b class="hidden-xs">{{ Auth::user()->first_name.' '.Auth::user()->last_name }}</b> </a>
<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>
<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>
@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>
</nav>
@@ -1,188 +1,213 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
<style type="text/css">
.object-fit_fill { object-fit: fill }
.object-fit_contain { object-fit: contain }
.object-fit_cover { object-fit: cover }
.object-fit_none { object-fit: none }
.object-fit_scale-down { object-fit: scale-down }
/* .html {
color: #eee;
padding: 30px;
font-family: 'Source Code Pro', Monaco;
background-color: #333;
}*/
/* p { font-weight: 200; font-size: 13px; margin-bottom: 10px; margin-top: 0;}*/
.img-custom {
height: 240px;
background-color: #444;}
.img-custom[class] {
width: 100%;
}
.original-image {
/*margin-bottom: 50px;*/
}
.image {
/*float: left;*/
width: 100%; /* Was 40% */
margin: 0 30px 20px 0;
&:nth-child(2n) {
clear: left;
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
type="text/css" />
<style type="text/css">
.object-fit_fill {
object-fit: fill
}
&:nth-child(2n+1){
margin-right: 0;
.object-fit_contain {
object-fit: contain
}
}
</style>
.object-fit_cover {
object-fit: cover
}
.object-fit_none {
object-fit: none
}
.object-fit_scale-down {
object-fit: scale-down
}
/* .html {
color: #eee;
padding: 30px;
font-family: 'Source Code Pro', Monaco;
background-color: #333;
}*/
/* p { font-weight: 200; font-size: 13px; margin-bottom: 10px; margin-top: 0;}*/
.img-custom {
height: 240px;
background-color: #444;
}
.img-custom[class] {
width: 100%;
}
.original-image {
/*margin-bottom: 50px;*/
}
.image {
/*float: left;*/
width: 100%;
/* Was 40% */
margin: 0 30px 20px 0;
&:nth-child(2n) {
clear: left;
}
&:nth-child(2n+1) {
margin-right: 0;
}
}
</style>
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('users.user_details') }}</h4>
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('users.user_details') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('users.dashboard') }}</a></li>
<li><a href="{{ route('users.index') }}">{{ __('users.users') }}</a></li>
<li class="active">{{ __('users.user_details') }}</li>
</ol>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('users.dashboard') }}</a></li>
<li><a href="{{ route('users.index') }}">{{ __('users.users') }}</a></li>
<li class="active">{{ __('users.user_details') }}</li>
</ol>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- .row -->
<div class="row" style="margin-top: -20px;">
<div class="col-sm-12">
<!--Flash messages at the top -->
<div>@include('flash::message')</div>
<!-- .row -->
<div class="row" style="margin-top: -20px;">
<div class="col-sm-12">
<!--Flash messages at the top -->
<div>@include('flash::message')</div>
<div class="white-box">
<div class="row">
<div class="col-md-4 col-xs-12">
<div class="white-box">
<div class="user-bg image"> <img class="object-fit_scale-down img-custom" alt="user" src="{{ asset('uploads/users/'.$user->photo) }}"> </div>
<div class="user-btm-box" style="margin-top: -45px;">
<!-- .row -->
<div class="row text-center m-t-10">
<div class="col-md-6 b-r"><strong>{{ __('users.names') }}</strong>
<p>{{ $user->first_name }} {{ $user->last_name }}</p>
<div class="white-box">
<div class="row">
<div class="col-md-4 col-xs-12">
<div class="white-box">
<div class="user-bg image"> <img class="object-fit_scale-down img-custom" alt="user"
src="{{ asset('uploads/users/' . ($user->photo ?? 'placeholder.png')) }}"> </div>
<div class="user-btm-box" style="margin-top: -45px;">
<!-- .row -->
<div class="row text-center m-t-10">
<div class="col-md-6 b-r"><strong>{{ __('users.names') }}</strong>
<p>{{ $user->first_name }} {{ $user->last_name }}</p>
</div>
<div class="col-md-6"><strong>{{ __('users.position') }}</strong>
<p>{{ $positions[$user->position_id] ?? '' }}</p>
</div>
</div>
<div class="col-md-6"><strong>{{ __('users.position') }}</strong>
<p>{{ array_key_exists($user->position_id, $positions) ? $positions[$user->position_id] : "" }}</p>
<!-- /.row -->
<hr>
<!-- .row -->
<div class="row text-center m-t-10">
<div class="col-md-6 b-r"><strong>{{ __('users.email_address') }}</strong>
<p>{{ $user->email == null ? 'NA' : $user->email }}</p>
</div>
<div class="col-md-6"><strong>{{ __('users.phone_number') }}</strong>
<p>{{ $user->phone }}</p>
</div>
</div>
<!-- /.row -->
<hr>
<!-- .row -->
<div class="row text-center m-t-10">
<div class="col-md-12"><strong>{{ __('users.roles_on_streamline') }}</strong>
<p>
@if (!empty($user->getRoleNames()))
@foreach ($user->getRoleNames() as $v)
<span
class="label label-success label-rounded badge">{{ $v }}</span>
@endforeach
@endif
</p>
</div>
</div>
<hr>
</div>
<!-- /.row -->
<hr>
<!-- .row -->
<div class="row text-center m-t-10">
<div class="col-md-6 b-r"><strong>{{ __('users.email_address') }}</strong>
<p>{{ $user->email == NULL ? 'NA' : $user->email }}</p>
</div>
</div>
<div class="col-md-8 col-xs-12">
<div class="white-box">
<div class="row">
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.username') }}</strong>
<br>
<p class="text-muted">{{ $user->username }}</p>
</div>
<div class="col-md-6"><strong>{{ __('users.phone_number') }}</strong>
<p>{{ $user->phone }}</p>
</div>
</div>
<!-- /.row -->
<hr>
<!-- .row -->
<div class="row text-center m-t-10">
<div class="col-md-12"><strong>{{ __('users.roles_on_streamline') }}</strong>
<p> @if(!empty($user->getRoleNames()))
@foreach($user->getRoleNames() as $v)
<span class="label label-success label-rounded badge">{{ $v }}</span>
@endforeach
@endif
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.blood_group') }}</strong>
<br>
<p class="text-muted">
{{ $blood_groups[$user->blood_group_id] ?? '' }}
</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.willing_to_donate') }}</strong>
<br>
<p class="text-muted">
{{ $user->willing_to_donate == 1 ? __('users.yes') : __('users.no') }}</p>
</div>
<div class="col-md-3 col-xs-6"> <strong>{{ __('users.last_donation') }}</strong>
<br>
<p class="text-muted">
{{ $user->last_donation_date == null ? 'NA' : $user->last_donation_date }}</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.council_registration') }}</strong>
<br>
<p class="text-muted">
{{ $user->council_id == 0 ? 'NA' : $councils[$user->council_id] }}</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.registration_number') }}</strong>
<br>
<p class="text-muted">
{{ $user->registration_number == null ? 'NA' : $user->registration_number }}</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.expiry_date') }}</strong>
<br>
<p class="text-muted">{{ $user->expiry_date == null ? 'NA' : $user->expiry_date }}</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.security_question') }}</strong>
<br>
<p class="text-muted">
{{ $user->security_question_id == null ? 'NA' : $security_questions[$user->security_question_id] }}
</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.security_answer') }}</strong>
<br>
<p class="text-muted">******</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.secret_pin') }}</strong>
<br>
<p class="text-muted">******</p>
</div>
</div>
<hr>
<p class="text-muted text-right">{{ __('users.registered_on') }}
<code>{{ $user->created_at }}</code>
</p>
</div>
</div>
</div>
<div class="col-md-8 col-xs-12">
<div class="white-box">
<div class="row">
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.username') }}</strong>
<br>
<p class="text-muted">{{ $user->username }}</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.blood_group') }}</strong>
<br>
<p class="text-muted">{{ array_key_exists($user->blood_group_id, $blood_groups) ? $blood_groups[$user->blood_group_id] : "" }}</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.willing_to_donate') }}</strong>
<br>
<p class="text-muted">{{ $user->willing_to_donate == 1 ? __('users.yes') : __('users.no') }}</p>
</div>
<div class="col-md-3 col-xs-6"> <strong>{{ __('users.last_donation') }}</strong>
<br>
<p class="text-muted">{{ $user->last_donation_date == NULL ? 'NA' : $user->last_donation_date }}</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.council_registration') }}</strong>
<br>
<p class="text-muted">{{ $user->council_id == 0 ? 'NA' : $councils[$user->council_id] }}</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.registration_number') }}</strong>
<br>
<p class="text-muted">{{ $user->registration_number == NULL ? 'NA' : $user->registration_number }}</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.expiry_date') }}</strong>
<br>
<p class="text-muted">{{ $user->expiry_date == NULL ? 'NA' : $user->expiry_date }}</p>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.security_question') }}</strong>
<br>
<p class="text-muted">{{ $user->security_question_id == NULL ? 'NA' : $security_questions[$user->security_question_id] }}</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.security_answer') }}</strong>
<br>
<p class="text-muted">******</p>
</div>
<div class="col-md-3 col-xs-6 b-r"> <strong>{{ __('users.secret_pin') }}</strong>
<br>
<p class="text-muted">******</p>
</div>
</div>
<hr>
<p class="text-muted text-right">{{ __('users.registered_on') }} <code>{{ $user->created_at }}</code></p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.row -->
<!-- /.row -->
@endsection
@push('scripts')
<script type="text/javascript">
</script>
<script type="text/javascript"></script>
@endpush