modified assests
This commit is contained in:
@@ -147,25 +147,25 @@
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$.ajax({
|
||||
url: "{{ route('alert-notifications') }}",
|
||||
type: "GET",
|
||||
success: function(res){
|
||||
if(res.success){
|
||||
let notify = $('#notify');
|
||||
notify.addClass('rounded-bottom-right-15')
|
||||
notify.addClass('rounded-bottom-left-15')
|
||||
notify.empty();
|
||||
notify.append('<p class="mb-0 font-weight-normal font-13 float-left dropdown-header text-muted" style="margin-right: 150px">{{__('general.notification')}}</p>');
|
||||
res.data.forEach(function(appointment){
|
||||
notify.append('<a class="dropdown-item preview-item app-modal" data-info="Patient: '+appointment.patient.name_en+', Phone: '+appointment.patient.phone_number+', Description: '+appointment.description+', Date: '+appointment.appointment_date+', Doctor: '+appointment.doctor.name_en+', Ap-Type: ' + appointment.appointment_type+'" href="#"><span class="mdi mdi-bell-outline fa"></span><div class="preview-item-content flex-grow"><p class="font-weight-light small-text text-success mb-0">'+appointment.patient.name_en+' - '+appointment.appointment_date+'</p></div></a>');
|
||||
})
|
||||
}
|
||||
$('#app_notify').text(res.count > 0 ? res.count : '').toggleClass('d-none', res.count < 1);
|
||||
}
|
||||
})
|
||||
</script>
|
||||
{{-- <script>--}}
|
||||
{{-- $.ajax({--}}
|
||||
{{-- url: "{{ route('alert-notifications') }}",--}}
|
||||
{{-- type: "GET",--}}
|
||||
{{-- success: function(res){--}}
|
||||
{{-- if(res.success){--}}
|
||||
{{-- let notify = $('#notify');--}}
|
||||
{{-- notify.addClass('rounded-bottom-right-15')--}}
|
||||
{{-- notify.addClass('rounded-bottom-left-15')--}}
|
||||
{{-- notify.empty();--}}
|
||||
{{-- notify.append('<p class="mb-0 font-weight-normal font-13 float-left dropdown-header text-muted" style="margin-right: 150px">{{__('general.notification')}}</p>');--}}
|
||||
{{-- res.data.forEach(function(appointment){--}}
|
||||
{{-- notify.append('<a class="dropdown-item preview-item app-modal" data-info="Patient: '+appointment.patient.name_en+', Phone: '+appointment.patient.phone_number+', Description: '+appointment.description+', Date: '+appointment.appointment_date+', Doctor: '+appointment.doctor.name_en+', Ap-Type: ' + appointment.appointment_type+'" href="#"><span class="mdi mdi-bell-outline fa"></span><div class="preview-item-content flex-grow"><p class="font-weight-light small-text text-success mb-0">'+appointment.patient.name_en+' - '+appointment.appointment_date+'</p></div></a>');--}}
|
||||
{{-- })--}}
|
||||
{{-- }--}}
|
||||
{{-- $('#app_notify').text(res.count > 0 ? res.count : '').toggleClass('d-none', res.count < 1);--}}
|
||||
{{-- }--}}
|
||||
{{-- })--}}
|
||||
{{-- </script>--}}
|
||||
|
||||
<div class="modal" id="appointment-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
<footer class="footer position-fixed w-100" style="bottom: 0; /*width: calc(100% - 236px);*/ z-index: 2;">
|
||||
<div class="card border-0" style="background-color: #29c6ff0f !important; border-top: 1px solid #c0dfe9 !important;">
|
||||
<div class="card border-0" style="background-color: #29ff680f !important; border-top: 1px solid #c1ebd2 !important;">
|
||||
<div class="card-body py-2">
|
||||
<div class="d-sm-flex justify-content-right justify-content-sm-between_ text-center">
|
||||
<span class="text-center text-sm-left d-block d-sm-inline-block">{{__('© '.date('Y').' ' . env('APP_NAME'))}}</span>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}"/>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{env('APP_TITLE', 'Laboratory Information System')}}</title>
|
||||
<title>{{env('APP_TITLE', 'Organization Information System')}}</title>
|
||||
<link rel="stylesheet" href="{{ url(env("APP_URL").'storage/assets/vendors/typicons/typicons.css') }}">
|
||||
<link rel="stylesheet" href="{{ url(env("APP_URL").'storage/assets/vendors/css/vendor.bundle.base.css') }}">
|
||||
<link rel="stylesheet" href="{{ url(env("APP_URL").'storage/assets/css/vertical-layout-light/style.css') }}">
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
|
||||
@php
|
||||
$current_locale= App::currentLocale();
|
||||
$baseLab = (array) Session::get('base_lab');
|
||||
$labName = $baseLab['name_'.$current_locale];
|
||||
$baseOrganization = (array) Session::get('base_organization');
|
||||
$organizationName = $baseOrganization['name_'.$current_locale];
|
||||
@endphp
|
||||
|
||||
<nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
|
||||
@@ -11,7 +11,7 @@
|
||||
<a class="navbar-brand brand-logo" href="javascript:void(0)"><img style="width: 100% !important;" src="{{ url(env("APP_URL").'storage/assets/images/logo.png') }}" alt="logo"/></a>
|
||||
<a class="navbar-brand brand-logo-mini pl-3" href="javascript:void(0)"><img style="width: 65px !important; height: 65px !important;" src="{{url(env("APP_URL").'storage/assets/images/logo-mini.png')}}" alt="logo"/></a>
|
||||
<button class="navbar-toggler text-success navbar-toggler align-self-center" type="button" data-toggle="minimize" style="/*position: absolute; left: 14.5rem; color: #fff !important;*/">
|
||||
<span class="mdi mdi-backburger text-success position-absolute" style="font-size: 20pt; top: 20px; background: #fff; margin-left: 5px; padding: 3px;"></span>
|
||||
<span class="mdi mdi-menu-swap-outline text-primary position-absolute" style="font-size: 20pt; top: 20px; background: #fff; margin-left: 18px; padding: 3px; rotate:90deg;"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<li class="nav-item nav-profile dropdown">
|
||||
<a class="nav-link" href="#" data-toggle="dropdown" id="profileDropdown">
|
||||
<span class="nav-profile-name" style="font-size:20px !important; font-weight: 600; ">{{$labName}}</span>
|
||||
<span class="nav-profile-name" style="font-size:20px !important; font-weight: 600; ">{{$organizationName}}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -54,19 +54,19 @@
|
||||
<div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list rounded-bottom-left-15 rounded-bottom-right-15" aria-labelledby="messageDropdown">
|
||||
<a class="dropdown-item preview-item" href="{{url('my-profile')}}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="mdi mdi-account-circle fa"></i> {{ __('general.profile') }}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-account-circle fa"></i> {{ __('general.profile') }}</p>
|
||||
</div>
|
||||
</a>
|
||||
@if(count(Auth::user()->lab_covers)!=1)
|
||||
@if(count(Auth::user()->userOrganizations)!=1)
|
||||
<a class="dropdown-item preview-item" href="{{route('base.change')}}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="mdi mdi-swap-horizontal fa"></i> {{ __('laboratory.change_base') }}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-swap-horizontal fa"></i> {{ __('laboratory.change_base') }}</p>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
<a class="dropdown-item preview-item" href="{{route('logout')}}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="mdi mdi-logout fa"></i> {{ __('general.logout') }}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-logout fa"></i> {{ __('general.logout') }}</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@@ -82,35 +82,35 @@
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['update_laboratory_information']))
|
||||
<a class="dropdown-item preview-item" href="{{url('laboratory-profile')}}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="mdi mdi-hospital-building fa"></i> {{__('laboratory.info')}}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-home-circle fa"></i> {{__('laboratory.info')}}</p>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['view_user_account','create_user_account','update_user_account', 'delete_user_account']))
|
||||
<a class="dropdown-item preview-item" href="{{ route('user') }}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="mdi mdi-account-group fa"></i> {{ __('general.manage_user_accounts') }}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-account-group fa"></i> {{ __('general.manage_user_accounts') }}</p>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['view_user_role','create_user_role','update_user_role', 'delete_user_role']))
|
||||
<a class="dropdown-item preview-item" href="{{route('role')}}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="mdi mdi-account-key fa"></i> {{ __('general.manage_user_roles') }}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-account-key fa"></i> {{ __('general.manage_user_roles') }}</p>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['system_settings']))
|
||||
<a class="dropdown-item preview-item" href="{{url('laboratory')}}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="fa fa-cog fa"></i> {{ __('general.laboratory_settings') }}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-hospital-building"></i> {{ __('general.laboratory_settings') }}</p>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['view_audit_logs']))
|
||||
<a class="dropdown-item preview-item" href="{{url('activity-logs')}}">
|
||||
<div class="preview-item-content flex-grow">
|
||||
<p class="font-weight-light small-text text-success mb-0 pr-5"><i class="mdi mdi-history fa"></i> {{ __('general.activity_logs') }}</p>
|
||||
<p class="font-weight-light small-text text-dark mb-0 pr-5"><i class="mdi mdi-history fa"></i> {{ __('general.activity_logs') }}</p>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@@ -10,14 +10,7 @@
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['view_patient']))
|
||||
<li class="nav-item {{ request()->segment(1) == 'patient' ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('patient') }}">
|
||||
<i class="mdi mdi-clipboard-account menu-icon"></i>
|
||||
<span class="menu-title text-uppercase">{{ __('sidebar.patients') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['view_sample','create_sample']))
|
||||
<li class="nav-item {{ request()->segment(1) == 'sample' ? 'active' : '' }}">
|
||||
@@ -49,15 +42,7 @@
|
||||
</a>
|
||||
<div class="collapse {{ in_array(request()->segment(1), ['report']) ? 'show' : '' }}" id="reports">
|
||||
<ul class="nav flex-column sub-menu">
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['generate_summary_report']))
|
||||
<li class="nav-item"> <a class="nav-link {{ (request()->segment(2) == 'summary-report') ? 'active' : '' }}" href="{{ url('report/summary-report') }}">{{ __('sidebar.aggregate_report') }}</a></li>
|
||||
@endif
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['generate_doctor_report']))
|
||||
<li class="nav-item"> <a class="nav-link {{ (request()->segment(2) == 'doctor-report') ? 'active' : '' }}" href="{{ url('report/doctor-report') }}">{{ __('sidebar.doctor_report') }}</a></li>
|
||||
@endif
|
||||
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['generate_financial_report']))
|
||||
<li class="nav-item"> <a class="nav-link {{ (request()->segment(2) == 'financial-report') ? 'active' : '' }}" href="{{ url('report/financial-report') }}">{{ __('sidebar.financial_report') }}</a></li>
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user