mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
resolved conflicts
This commit is contained in:
+115
@@ -0,0 +1,115 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-6">
|
||||
<h4 class="page-title">Select Patient and Episode</h4>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Patient Timeline</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'audit_trail.select_patient_and_episode', 'method' => 'ANY', 'role' => 'search']) }}
|
||||
|
||||
{{ Form::hidden('patient_id', 0, ['id' => 'patient_id']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<select class="patient_full_name form-control" style="width:100%;" name="patient_full_name" id="patient_full_name"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<button type="submit" class="btn btn-success pull-right"><span class="glyphicon glyphicon-search"></span> Search</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
<hr>
|
||||
|
||||
@if($patient_searched)
|
||||
<h4>{{ $patient->first_name }} {{ $patient->last_name }} ({{ $patient->number }})</h4>
|
||||
<br>
|
||||
|
||||
@if(count($patient_episodes_details) > 0)
|
||||
@php
|
||||
$current_column = 1;
|
||||
$current_item = 1;
|
||||
@endphp
|
||||
|
||||
@foreach($patient_episodes_details as $episode)
|
||||
@if($current_column == 1)
|
||||
<div class="row">
|
||||
@endif
|
||||
|
||||
<div class="col-md-4">
|
||||
<a href="/audit_trail/patient_timeline/{{ $patient->id }}/{{ $episode['id'] }}" class="btn btn-success btn-rounded btn-outline col-md-12">{{ $episode['created_at'] }}</a>
|
||||
</div>
|
||||
|
||||
@if($current_column == 3 || $current_item == count($patient_episodes_details))
|
||||
</div><br>
|
||||
@php $current_column = 1; @endphp
|
||||
@else
|
||||
@php $current_column++; @endphp
|
||||
@endif
|
||||
|
||||
@php
|
||||
$current_item++;
|
||||
@endphp
|
||||
@endforeach
|
||||
@else
|
||||
<h4><span style="color: red">Patient has no episodes</span></h4>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('.patient_full_name').change(function() {
|
||||
let id = $('#patient_full_name').val();
|
||||
$('#patient_id').val(id);
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: "/patients/update_patient_info/" + id,
|
||||
success: function(response){
|
||||
$('#patient_info').html(response).show();
|
||||
},
|
||||
error: function (error) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
}).select2({
|
||||
placeholder: "<?php echo "Search by patient name or number" ?>",
|
||||
ajax: {
|
||||
url: '/patients/search_patient_by_name_number',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.first_name + " " + item.last_name + " ("+ item.number + ") " + item.phone,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+100
@@ -0,0 +1,100 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<style>
|
||||
.no-padding {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
input[type="checkbox"]{
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
margin-right: 0.65rem;
|
||||
}
|
||||
.form-check-label{
|
||||
padding-left: 2.25rem!important;
|
||||
vertical-align: -webkit-baseline-middle;
|
||||
}
|
||||
</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">{{ __('general_settings.general_settings') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('general_settings.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('general_settings.activate_streamline_modules') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<h3><font color="blue">{{ __('general_settings.activate_streamline_modules') }}</font></h3>
|
||||
|
||||
{{ Form::open(['route' => 'streamline_modules.store_activated']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">{{ __('general_settings.check_streamline_modules_to_activate') }} <span class="float-right"> <input type="checkbox" id="check-all" class="form-check-input"> <label class="form-check-label" for="check-all">{{ __('roles.check_all') }}</label></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="streamline_modules_to_activate">
|
||||
@foreach($permission_categories as $key => $category)
|
||||
@if ($key % 2 == 0)
|
||||
<tr>
|
||||
@endif
|
||||
<td>
|
||||
{{ Form::checkbox('permission_category[]', $category->id, $category->is_module_active == 1 ? true : false, ['class' => "permission_category form-check-input", 'id'=>'permission_category_'.$category->id,]) }}
|
||||
<label class="form-check-label" for="permission_category_{{ $category->id }}">{{ $category->name }}</label>
|
||||
</td>
|
||||
@if (($key + 1) % 2 == 0)
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
@if(count($permission_categories) % 2!= 0)
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::submit(__('general_settings.activate_streamline_modules'), ["class" => "btn btn-success", 'id' => 'activate_streamline'])}}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$("[id^=check-all]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if ($('.permission_category').is(':checked')) {
|
||||
$('.permission_category').removeAttr('checked');
|
||||
} else {
|
||||
$('.permission_category').prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$('#activate_streamline').click(function (e){
|
||||
if (!$('#streamline_modules_to_activate input:checked').length > 0) {
|
||||
alert("Please check at least one checkbox");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
File diff suppressed because it is too large
Load Diff
+125
@@ -0,0 +1,125 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
.no-padding {
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg- col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('general_settings.limit_number_of_active_users') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-8 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('general_settings.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('general_settings.edit_general_settings') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
@if (session()->has('streamline_setup'))
|
||||
<h3><font color="blue">{{ __('general_settings.streamline_setup_3') }}</font></h3>
|
||||
@endif
|
||||
|
||||
{{ Form::open(['route' => 'general_settings.save_number_of_active_users_limit_settings']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div>
|
||||
<h3 class="text-center">{{ __('general_settings.number_of_active_users_limit') }}</h3>
|
||||
|
||||
<h4>{{ __('general_settings.description') }}</h4>
|
||||
<div class="card card-inverse card-secondary text-center text-white">
|
||||
<div class="card-block">
|
||||
<p>{{ __('general_settings.number_of_active_users_limit_label') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>{{ __('general_settings.options') }}</h4>
|
||||
|
||||
<div class="card card-outline-secondary text-dark">
|
||||
<div class="card-block">
|
||||
{{ Form::radio('number_of_active_users_limit_option', 'unlimited', ($general_settings['number_of_active_users_limit'] == 'unlimited' ? true : false)) }} {{ __('general_settings.unlimited_users_label') }}
|
||||
<br>
|
||||
{{ Form::radio('number_of_active_users_limit_option', 'limited', ($general_settings['number_of_active_users_limit'] != 'unlimited' ? true : false)) }} {{ __('general_settings.limited_users_label') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="limited_users_div" class="card card-outline-secondary text-dark mt-4" style="display: none;">
|
||||
<p class="pt-2 px-4 mb-0">{{ __('general_settings.number_of_active_users_limit_label') }}</p>
|
||||
<div class="card-block">
|
||||
{{-- {{ Form::number('number_of_active_users_limit', $general_settings['number_of_active_users_limit'], ['class' => 'form-control', 'placeholder' => '1', 'required' => 'true', 'disabled' => 'true', 'id' => 'limited_users_input']) }} --}}
|
||||
{{ Form::number('number_of_active_users_limit', $general_settings['number_of_active_users_limit'], ['class'=>'form-control compulsory','required', 'id'=>'limited_users_input', 'placeholder' => '1']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div id="unlimited_users_div" class="" style="display: none;">
|
||||
{{ Form::hidden('number_of_active_users_limit', 'unlimited', ['class' => 'form-control', 'placeholder' => '1', 'required' => 'true', 'disabled' => 'true', 'id' => 'unlimited_users_input']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
@if (session()->has('streamline_setup'))
|
||||
{{ Form::button(__('general_settings.save_settings'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
@else
|
||||
{{ Form::button(__('general_settings.save_settings'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('general_settings.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
@endif
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
|
||||
const show_or_hide_limited_users_input = () => {
|
||||
let selectedValue = $('input[name="number_of_active_users_limit_option"]:checked').val();
|
||||
if(selectedValue === "limited") {
|
||||
document.getElementById('limited_users_div').style.display = '';
|
||||
document.getElementById('limited_users_input').disabled = false;
|
||||
document.getElementById('unlimited_users_div').style.display = 'none';
|
||||
document.getElementById('unlimited_users_input').disabled = true;
|
||||
|
||||
} else {
|
||||
document.getElementById('unlimited_users_div').style.display = '';
|
||||
document.getElementById('unlimited_users_input').disabled = false;
|
||||
document.getElementById('limited_users_div').style.display = 'none';
|
||||
document.getElementById('limited_users_input').disabled = true;
|
||||
document.getElementById('limited_users_input').value = '';
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
show_or_hide_limited_users_input();
|
||||
$('input[name="number_of_active_users_limit_option"]').on('change', function() {
|
||||
show_or_hide_limited_users_input();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-8 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('home.dashboard') }}</h4>
|
||||
<h4><font style="color: maroon; text-align: center;">
|
||||
{{ __('home.confidentiality_warning') }}</font> -----
|
||||
<b>{{ __('home.logout_warning') }}</b>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="col-lg-4 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ config('app.name') }}</a></li>
|
||||
<li class="active">{{ __('home.dashboard') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card-header box-title" style="border-radius: 10px 10px 0 0;">
|
||||
<h3 class="box-title"><i class="fa fa-envelope-o"></i> {{ __('home.message_board') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="white-box" style="background-color: #ffff99; border-radius: 0 0 10px 10px">
|
||||
@foreach($messages as $message)
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<a href="{{ url('#') }}"><strong>{{ Carbon\Carbon::parse($message->created_at)->format('jS M Y h:ia') }}</strong></a><br/>
|
||||
@if (file_exists(($message->photo)))
|
||||
<img src="{{ asset($message->photo) }}" title="" alt="" width="200" height="200" align="right"/>
|
||||
@endif
|
||||
<font size='2'><?php echo $message->body; ?></font>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
@endforeach
|
||||
|
||||
<div class="row">
|
||||
<div style="margin-left:auto; margin-right:0;">{{ $messages->links() }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box" style="border-radius: 5px;">
|
||||
<div class="row">
|
||||
@if(Module::has('Patients') && Module::isEnabled('Patients') && Auth::user()->can('patient-create'))
|
||||
<div class="col-md-2">
|
||||
<a href="{{ route('patients.create') }}" class="btn btn-rounded btn-success btn-block"
|
||||
style="text-align: left"><i class="fa fa-user"></i> {{ __('home.new_patient') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Patients') && Module::isEnabled('Patients') && Auth::user()->can('patient-list'))
|
||||
<div class="col-md-2">
|
||||
<a href="{{ route('patients.select') }}" class="btn btn-primary btn-rounded btn-block"
|
||||
style="text-align: left"> <i class="fa fa-hand-pointer-o"></i> {{ __('home.select_patient') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Module::has('WardManagement') && Module::isEnabled('WardManagement') &&Auth::user()->can('ward-list'))
|
||||
<div class="col-md-2">
|
||||
<a href="{{ route('wards.select') }}" class="btn btn-primary btn-rounded btn-block"
|
||||
style="text-align: left"><i class="fa fa-hand-pointer-o"></i>{{ __('home.select_ward') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Patients') && Module::isEnabled('Patients') && Auth::user()->can('patient-flow-monitoring'))
|
||||
<div class="col-md-2">
|
||||
<a href="{{ route('patient_flow_monitoring.index') }}" class="btn btn-rounded btn-primary btn-block"
|
||||
style="text-align: left"><i class="fa fa-hand-pointer-o"></i> {{ __('home.select_clinic') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Reports') && Module::isEnabled('Reports') &&Auth::user()->can('streamline-reports-list'))
|
||||
<div class="col-md-2">
|
||||
<a href="{{ url('reports')}}" class="btn btn-rounded btn-info btn-block"
|
||||
style="text-align: left"><i class="fa fa-list-ul"></i> {{ __('home.reports') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Module::has('ClinicalData') && Module::isEnabled('ClinicalData'))
|
||||
<div class="col-md-2">
|
||||
<a href="{{ route('resources.index') }}" class="btn btn-info btn-rounded btn-block"
|
||||
style="text-align: left"><i class="fa fa-file-o"></i> {{ __('home.hospital_resources') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<!-- <div class="col-sm-12">
|
||||
<h4 style="color: maroon; text-align: center;">{{ __('home.confidentiality_warning') }}</h4>
|
||||
<h5 style="color: black;" align="center"><b>{{ __('home.logout_warning') }}</b></h5>
|
||||
</div> -->
|
||||
<div class="col-sm-12">
|
||||
<!--<img src="/uploads/streamline_images/child_with_phone.jpg" class="img-rounded"
|
||||
style=" height: 250px; margin: auto;" alt="child with phone"/> -->
|
||||
<div style="display: block;">
|
||||
<img style="margin: auto;" src="/uploads/streamline_images/home_page_bottom.png" class="img-rounded img-responsive" alt="platinum party"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('general_settings.popup')
|
||||
|
||||
@endsection
|
||||
+218
@@ -0,0 +1,218 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('hospital_information.hospital_information') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('hospital_information.dashboard') }}</a></li>
|
||||
<li><a href="/hospital_information/edit">{{ __('hospital_information.hospital_information') }}</a></li>
|
||||
<li class="active">{{ __('hospital_information.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
@if (session()->has('streamline_setup'))
|
||||
<h3><font color="blue">Stre@mline {{ __('hospital_information.setup') }} ({{ __('hospital_information.step') }} 1 {{ __('hospital_information.of') }} 10)</font></h3>
|
||||
@endif
|
||||
|
||||
{{ Form::open(['route' => 'hospital_information.store', 'data-toggle' => 'validator', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('hospital_information.hospital_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required', 'data-error'=>'']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('level', __('hospital_information.level')) }}
|
||||
{{ Form::text('level', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('code', __('hospital_information.code')) }}
|
||||
{{ Form::text('code', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('parish', __('hospital_information.parish')) }}
|
||||
{{ Form::select('parish', $parishes, '', ['class' => 'form-control parish']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_county', __('hospital_information.sub_county')) }}
|
||||
{{ Form::select('sub_county', $subcounties, '', ['class' => 'form-control sub_county']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_district', __('hospital_information.health_sub_district')) }}
|
||||
{{ Form::text('sub_district', '', ['class' => 'form-control sub_district']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('address', __('hospital_information.address')) }}
|
||||
{{ Form::text('address', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('website', __('hospital_information.website')) }}
|
||||
{{ Form::text('website', '', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('phone_number', __('hospital_information.phone_number')) }}
|
||||
{{ Form::text('phone_number', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('email', __('hospital_information.email')) }}
|
||||
{{ Form::email('email', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('financial_year_start_date', 'Start of Financial Year') }}
|
||||
{{-- {{ Form::date('financial_year_start_date', '', ['class' => 'form-control', 'required']) }} --}}
|
||||
<select id="month" name="financial_year_start_date" class = "form-control compulsory">
|
||||
<option value="">-- Select --</option>
|
||||
<option value="01">January</option>
|
||||
<option value="02">February</option>
|
||||
<option value="03">March</option>
|
||||
<option value="04">April</option>
|
||||
<option value="05">May</option>
|
||||
<option value="06">June</option>
|
||||
<option value="07">July</option>
|
||||
<option value="08">August</option>
|
||||
<option value="09">September</option>
|
||||
<option value="10">October</option>
|
||||
<option value="11">November</option>
|
||||
<option value="12">December</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('back_date', 'Back Dating Cutoff Days') }}
|
||||
{{ Form::number('back_date', '', ['class' => 'form-control compulsory', 'required','min' => 1]) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('district', __('hospital_information.district')) }}
|
||||
{{ Form::select('district', $districts, '', ['class' => 'form-control compulsory district']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('country', __('hospital_information.country')) }}
|
||||
{{ Form::text('country', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{--<div class="form-group">
|
||||
{{ Form::label('app_name', 'App name') }}
|
||||
{{ Form::text('app_name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('app_version', 'App version') }}
|
||||
{{ Form::number('app_version', '', ['class' => 'form-control compulsory', 'required', 'step' => 0.1]) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>--}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('patient_number_abbr', __('hospital_information.patient_number_abbr')) }}
|
||||
{{ Form::text('patient_number_abbr', '', ['class' => 'form-control compulsory', 'required', 'max'=>'3']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
@php
|
||||
use Carbon\Carbon;
|
||||
$currentYear = Carbon::now()->year;
|
||||
$current_year_last_two_digits = substr($currentYear,-2);
|
||||
@endphp
|
||||
|
||||
<div class="form-group">
|
||||
<label for=""> {{ __('hospital_information.patient_number_year_prefix') }}</label>
|
||||
( ABC - {{$current_year_last_two_digits }} - 001 )
|
||||
<a href="javascript::void(0)" data-toggle="tooltip" rel="tooltip" data-placement="top" title="Enabling this feature will add the last two digits of the year to the Patient number abbreviation" data-original-title=""> <i class="fa fa-info-circle"></i></a>
|
||||
<br>
|
||||
|
||||
<div class="card card-outline-secondary text-dark">
|
||||
<div class="card-block">
|
||||
<input checked="checked" name="patient_number_year_prefix" id="year_prefix_disabled" type="radio" value="0">
|
||||
<label for="year_prefix_disabled"> {{ __('hospital_information.disabled') }}</label>
|
||||
<br>
|
||||
<input name="patient_number_year_prefix" type="radio" id="year_prefix_enabled" value="1">
|
||||
<label for="year_prefix_enabled"> {{ __('hospital_information.enabled') }} </label>
|
||||
</div>
|
||||
</div><br>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('logo', __('hospital_information.system_logo')) }}
|
||||
{{ Form::file('logo', null) }}
|
||||
{{ Form::text('current_logo', '', ['class' => 'form-control', 'hidden']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('stamp', __('hospital_information.stamp')) }}
|
||||
{{ Form::file('stamp', null) }}
|
||||
{{ Form::text('current_stamp', '', ['class' => 'form-control', 'hidden']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('lab_stamp', __('hospital_information.lab_stamp')) }}
|
||||
{{ Form::file('lab_stamp', null) }}
|
||||
{{ Form::text('current_lab_stamp', '', ['class' => 'form-control', 'hidden']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('hospital_information.next'),['type'=>'submit','class'=>'btn btn-success btn-lg waves-effect waves-light m-r-10']) }}
|
||||
{{--{{ Form::button('Skip',['type'=>'reset','class'=>'btn btn-default btn-lg waves-effect waves-light']) }}--}}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.parish,.sub_county,.district').select2({
|
||||
placeholder: "-- select --"
|
||||
});
|
||||
|
||||
$('.select2-selection.select2-selection--single').css('height','calc(3.85rem)');
|
||||
$('.select2-selection.select2-selection--single').css('padding-top','5px');
|
||||
//$('.select2-selection.select2-selection--single').css('border-left', '3px solid #F08080');/*add compulsory class*/
|
||||
$('.select2-selection.select2-selection--single.sec_d').css('border-left', '3px solid #aaa');
|
||||
$('.select2-selection__arrow').css('top','3px');
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,217 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('hospital_information.hospital_information') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('hospital_information.dashboard') }}</a></li>
|
||||
<li><a href="/hospital_information/edit">{{ __('hospital_information.hospital_information') }}</a></li>
|
||||
<li class="active">{{ __('hospital_information.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::model($hospital_information, ['method' => 'PUT', 'route' => ['hospital_information.update',$hospital_information], 'data-toggle' => 'validator', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('hospital_information.hospital_name')) }}
|
||||
{{ Form::text('name', $hospital_information->name, ['class' => 'form-control compulsory', 'required', 'data-error'=>'']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('level', __('hospital_information.level')) }}
|
||||
{{ Form::text('level', $hospital_information->level, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('code', __('hospital_information.code')) }}
|
||||
{{ Form::text('code', $hospital_information->code, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('parish', __('hospital_information.parish')) }}
|
||||
{{ Form::select('parish', $parishes, $hospital_information->parish, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_county', __('hospital_information.sub_county')) }}
|
||||
{{ Form::select('sub_county', $subcounties, $hospital_information->sub_county, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_district', __('hospital_information.health_sub_district')) }}
|
||||
{{ Form::text('sub_district', $hospital_information->sub_district, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('address', __('hospital_information.address')) }}
|
||||
{{ Form::text('address', $hospital_information->address, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('website', __('hospital_information.website')) }}
|
||||
{{ Form::text('website', $hospital_information->website, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pdf_print_header', __('hospital_information.print_header')) }}
|
||||
{{ Form::file('pdf_print_header', null) }}
|
||||
<br>
|
||||
<a href="/hospital_information/remove_print_banner">Remove current print banner</a>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('print_footer', __('hospital_information.print_footer')) }}
|
||||
{{ Form::text('print_footer', $hospital_information->print_footer, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('phone_number', __('hospital_information.phone_number')) }}
|
||||
{{ Form::text('phone_number', $hospital_information->phone_number, ['class' => 'form-control', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('email', __('hospital_information.email')) }}
|
||||
{{ Form::email('email', $hospital_information->email, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('financial_year_start_date', 'Start Month Of Financial Year') }}
|
||||
{{--{{ Form::month('financial_year_start_date', $hospital_information->financial_year_start_date, ['class' => 'form-control compulsory', 'required']) }}--}}
|
||||
<select id="month" name="financial_year_start_date" class = "form-control compulsory">
|
||||
<option value="">-- Select --</option>
|
||||
<option value="01" @if($hospital_information->financial_year_start_date == "1")selected @endif>January</option>
|
||||
<option value="02" @if($hospital_information->financial_year_start_date == "2")selected @endif>February</option>
|
||||
<option value="03" @if($hospital_information->financial_year_start_date == "3")selected @endif>March</option>
|
||||
<option value="04" @if($hospital_information->financial_year_start_date == "4")selected @endif>April</option>
|
||||
<option value="05" @if($hospital_information->financial_year_start_date == "5")selected @endif>May</option>
|
||||
<option value="06" @if($hospital_information->financial_year_start_date == "6")selected @endif>June</option>
|
||||
<option value="07" @if($hospital_information->financial_year_start_date == "7")selected @endif>July</option>
|
||||
<option value="08" @if($hospital_information->financial_year_start_date == "8")selected @endif>August</option>
|
||||
<option value="09" @if($hospital_information->financial_year_start_date == "9")selected @endif>September</option>
|
||||
<option value="10" @if($hospital_information->financial_year_start_date == "10")selected @endif>October</option>
|
||||
<option value="11" @if($hospital_information->financial_year_start_date == "11")selected @endif>November</option>
|
||||
<option value="12" @if($hospital_information->financial_year_start_date == "12")selected @endif>December</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('back_date', 'Back Dating Cutoff Days') }}
|
||||
{{ Form::number('back_date', $hospital_information->back_date, ['class' => 'form-control compulsory', 'required', 'min' => 1]) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('district', __('hospital_information.district')) }}
|
||||
{{ Form::select('district', $districts, $hospital_information->district, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('country', __('hospital_information.country')) }}
|
||||
{{ Form::text('country', $hospital_information->country, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('app_name', __('hospital_information.app_name')) }}
|
||||
{{ Form::text('app_name', $hospital_information->app_name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('app_version', __('hospital_information.app_version')) }}
|
||||
{{ Form::number('app_version', $hospital_information->app_version, ['class' => 'form-control compulsory', 'required', 'step' => 0.1]) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('patient_number_abbr', __('hospital_information.patient_number_abbr')) }}
|
||||
{{ Form::text('patient_number_abbr', $hospital_information->patient_number_abbr, ['class' => 'form-control compulsory', 'required', 'max'=>'3']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
@php
|
||||
use Carbon\Carbon;
|
||||
$currentYear = Carbon::now()->year;
|
||||
$current_year_last_two_digits = substr($currentYear,-2);
|
||||
@endphp
|
||||
|
||||
<div class="form-group">
|
||||
<label for=""> {{ __('hospital_information.patient_number_year_prefix') }}</label>
|
||||
( {{ $hospital_information->patient_number_abbr . '-' .$current_year_last_two_digits .'-' . '001' }} )
|
||||
<a href="javascript::void(0)" data-toggle="tooltip" rel="tooltip" data-placement="top" title="Enabling this feature will add the last two digits of the year to the Patient number abbreviation" data-original-title=""> <i class="fa fa-info-circle"></i></a>
|
||||
<br>
|
||||
|
||||
<div class="card card-outline-secondary text-dark">
|
||||
|
||||
<div class="card-block">
|
||||
<input name="patient_number_year_prefix" id="year_prefix_disabled" type="radio" value="0"
|
||||
@if (($hospital_information->patient_number_year_prefix == 0) && isset($hospital_information->patient_number_year_prefix))
|
||||
checked
|
||||
@endif
|
||||
>
|
||||
<label for="year_prefix_disabled"> {{ __('hospital_information.disabled') }}</label>
|
||||
<br>
|
||||
<input name="patient_number_year_prefix" type="radio" id="year_prefix_enabled" value="1"
|
||||
@if (($hospital_information->patient_number_year_prefix == 1) && ($hospital_information->patient_number_year_prefix != null))
|
||||
checked
|
||||
@endif>
|
||||
<label for="year_prefix_enabled"> {{ __('hospital_information.enabled') }} </label>
|
||||
</div>
|
||||
</div><br>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('logo', __('hospital_information.system_logo')) }}
|
||||
{{ Form::file('logo', null) }}
|
||||
{{ Form::text('current_logo', $hospital_information->logo, ['class' => 'form-control', 'hidden']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('stamp', __('hospital_information.stamp')) }}
|
||||
{{ Form::file('stamp', null) }}
|
||||
{{ Form::text('current_stamp', $hospital_information->stamp, ['class' => 'form-control', 'hidden']) }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('lab_stamp', __('hospital_information.lab_stamp')) }}
|
||||
{{ Form::file('lab_stamp', null) }}
|
||||
{{ Form::text('current_lab_stamp', $hospital_information->lab_stamp, ['class' => 'form-control', 'hidden']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('hospital_information.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('hospital_information.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
@@ -0,0 +1,15 @@
|
||||
@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="{{ asset($hospital_info->logo) }}" class="@if(isset($isDom) && $isDom) center @else mx-auto d-block mx-3 @endif" 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="@if(isset($isDom) && $isDom) center @else mx-auto d-block mx-3 @endif" alt="Responsive image">
|
||||
@endif
|
||||
|
||||
<hr>
|
||||
@@ -0,0 +1,152 @@
|
||||
<!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>
|
||||
|
||||
@stack('styles')
|
||||
</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;">
|
||||
@include('general_settings.subscription_noti')
|
||||
{{-- <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')}} © 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>
|
||||
+1083
File diff suppressed because it is too large
Load Diff
+215
@@ -0,0 +1,215 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@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_management') }}</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 class="active">{{ __('users.users') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<!-- .row -->
|
||||
|
||||
<!--Flash messages at the top -->
|
||||
<div>@include('flash::message')</div>
|
||||
<!--<div class="white-box">-->
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('users.menu')
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'find_users_by_role']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('role', __('Search by role')) }}
|
||||
<select class="form-control compulsory" name="role">
|
||||
@foreach($roles as $role)
|
||||
<option value="{{ $role->id }}">{{ $role->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
{{ Form::button(__('audit_trail.search'), ['type' => 'submit', 'class' => 'btn btn-success waves-effect
|
||||
waves-light m-r-10']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table">
|
||||
<thead>
|
||||
<tr>
|
||||
{{-- <th>#</th> --}}
|
||||
<th>{{ __('users.names') }}</th>
|
||||
<th>{{ __('users.username') }}</th>
|
||||
<th>{{ __('users.phone_number') }}</th>
|
||||
<th>{{ __('users.position') }}</th>
|
||||
<th>{{ __('users.roles') }}</th>
|
||||
<th>Last Logged In/Status</th>
|
||||
<th>Created By</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($data as $key => $user)
|
||||
@php
|
||||
$last_seen = Carbon\Carbon::parse($user->last_seen);
|
||||
@endphp
|
||||
<tr>
|
||||
{{-- <td>{{ ++$i }}</td> --}}
|
||||
<td>{{ $user->first_name }} {{ $user->last_name }}</td>
|
||||
<td>{{ $user->username }}</td>
|
||||
<td>{{ $user->phone }}</td>
|
||||
<td>{{ isset($positions[$user->position_id]) ? $positions[$user->position_id] : "N/A" }}</td>
|
||||
<td>
|
||||
@if(!empty($user->getRoleNames()))
|
||||
@foreach($user->getRoleNames() as $v)
|
||||
<span class="label label-success label-rounded badge">{{ $v }}</span>
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(Cache::has('user-is-online-' . $user->id))
|
||||
<span class="badge badge-success">Online</span>
|
||||
@else
|
||||
{{ $last_seen->diffForHumans() }}
|
||||
<span class="badge badge-danger">Offline</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ get_full_name($user->created_by, 'id', 'first_name', 'last_name', 'users') }} at {{ streamline_date_time($user->created_at) }}</td>
|
||||
<td>
|
||||
<a class="fcbtn btn btn-success btn-sm btn-1c" href="{{ route('users.show',$user->id) }}">{{ __('users.details') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-info btn-sm" href="{{ route('users.edit',$user->id) }}">{{ __('users.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
@if($type == 1 )
|
||||
@if ($user->inactive_counter < 3)
|
||||
{!! Form::open(['method' => 'DELETE','route' => ['users.destroy', $user->id],'style'=>'display:inline']) !!}
|
||||
{!! Form::submit(__('users.delete'), ['class' => 'btn btn-danger btn-sm']) !!}
|
||||
{!! Form::close() !!}
|
||||
@else
|
||||
<span style="color:red;" >{{ __('users.no_longer_deletes') }}</span><br/>
|
||||
<a href="javascript:void(0)" data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ __('users.delete_active_user') }}"> <i class="fa fa-info-circle"></i></a>
|
||||
@endif
|
||||
|
||||
@else
|
||||
{!! Form::open(['method' => 'DELETE','route' => ['users.destroy', $user->id],'style'=>'display:inline']) !!}
|
||||
{!! Form::submit(__('users.delete'), ['class' => 'btn btn-danger btn-sm']) !!}
|
||||
{!! Form::close() !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{-- {!! $data->render() !!}--}}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- /.row -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Data table javascript -->
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/tables/js/buttons.colVis.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$('document').ready(function () {
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy',
|
||||
{extend: 'csv',
|
||||
message: '<?php echo __('users.list_of_users');?>',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
},
|
||||
{extend: 'excel',
|
||||
message: '<?php echo __('users.list_of_users');?>',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
sheetName: '<?php echo __('users.list_of_users');?>'
|
||||
},
|
||||
{extend: 'pdf',
|
||||
message: '<?php echo __('users.list_of_users');?>',
|
||||
orientation: 'portrait',
|
||||
pageSize: 'LETTER',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
customize: function (doc) {
|
||||
doc.defaultStyle.fontSize = 10;
|
||||
// doc.styles.tableHeader.alignment = 'left';
|
||||
}
|
||||
},
|
||||
{extend: 'print',
|
||||
message: '<?php echo __('users.list_of_users');?>',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
customize: function (win) {
|
||||
$(win.document.body)
|
||||
.css('font-size', '10pt')
|
||||
.css('background', '#fff')
|
||||
.prepend(
|
||||
'<img src="<?php echo asset('uploads/logo/logo-sm.png'); ?>" style="position:absolute; top:0; right:0;" />'
|
||||
);
|
||||
$(win.document.body).find('table')
|
||||
.addClass('compact')
|
||||
.css('font-size', 'inherit');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
$('.sorting').removeClass('sorting');//remove the sorting class
|
||||
$('.sorting_asc').removeClass('sorting_asc');//remove the sorting class
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
+188
@@ -0,0 +1,188 @@
|
||||
@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;
|
||||
}
|
||||
|
||||
&: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>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<div class="col-md-6"><strong>{{ __('users.position') }}</strong>
|
||||
<p>{{ $positions[$user->position_id] ?? "" }}</p>
|
||||
</div>
|
||||
</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 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>
|
||||
</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">{{ $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 -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user