mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
Build modified streamline images
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
This commit is contained in:
+18287
File diff suppressed because it is too large
Load Diff
+153
@@ -0,0 +1,153 @@
|
||||
<!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="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16"
|
||||
href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Patient Receipt - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
/*thead, tfoot { display: table-row-group }*/
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<table class="table table-bordered">
|
||||
{{-- <tr>
|
||||
<td><b>{{ __('patient_finance.date') }}</b></td>
|
||||
<td colspan="2">{{ streamline_date_time_short($receipt_date) }}</td>
|
||||
<td><b>{{ __('patient_finance.receipt_number') }}</b></td>
|
||||
<td colspan="2">{{ $receipt_number }}</td>
|
||||
<td><b>{{ __('family_accounts.deposit_date') }}</b></td>
|
||||
<td colspan="2">{{ $new_family_deposit->deposit_date }}</td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered" id="receipt_table">
|
||||
<thead>
|
||||
<th>{{ __('No.') }}</th>
|
||||
<th>{{ __('audit_trail.date_and_time') }}</th>
|
||||
<th>{{ __('audit_trail.action_performed') }}</th>
|
||||
<th>{{ __('Old Values') }}</th>
|
||||
<th>{{ __('New Values') }}</th>
|
||||
<th>{{ __('audit_trail.computer_ip_address') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($audit_trail as $key => $value)
|
||||
@php
|
||||
$record_affected = str_replace('Streamline\\', '', $value->auditable_type);
|
||||
$exploded_array = preg_split('/(?=[A-Z])/', $record_affected);
|
||||
$record_affected = implode(' ', $exploded_array);
|
||||
$user = Streamline\Models\User::where('id', $value->user_id)->first();
|
||||
$full_names = $user->first_name . ' ' . $user->last_name;
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ ++$key }}</td>
|
||||
<td>{{ streamline_date_time_short($value->created_at) }}</td>
|
||||
<td>
|
||||
@if($value->auditable_type == "Streamline\Models\User")
|
||||
@if($value->user_id == $value->auditable_id && str_contains($value->url, 'login') == 1)
|
||||
<b>{{ get_full_name($value->user_id, 'id', 'first_name', 'last_name', 'users') }}</b>
|
||||
logged into their account </b>
|
||||
@elseif($value->user_id !== $value->auditable_id && str_contains($value->url, 'login')
|
||||
!== 1)
|
||||
<b>{{ get_full_name($value->user_id, 'id', 'first_name', 'last_name', 'users') }}</b>
|
||||
updated account of <b>{{ get_full_name($value->auditable_id, 'id', 'first_name',
|
||||
'last_name', 'users') }}</b>
|
||||
@else
|
||||
<b>{{ get_full_name($value->user_id, 'id', 'first_name', 'last_name', 'users') }}</b>
|
||||
{{ $value->event
|
||||
}} {{ __('audit_trail.a') }} <b>{{ $record_affected
|
||||
}}</b>
|
||||
{{ __('audit_trail.record') }}
|
||||
@endif
|
||||
@else
|
||||
<b>{{ get_full_name($value->user_id, 'id', 'first_name', 'last_name', 'users') }}</b>
|
||||
{{ $value->event
|
||||
}} {{ __('audit_trail.a') }} <b>{{ $record_affected
|
||||
}}</b>
|
||||
{{ __('audit_trail.record') }}
|
||||
@endif
|
||||
</td>
|
||||
@if($value->auditable_type !== "Streamline\Models\User")
|
||||
<td>
|
||||
{!! read_more(json_encode($value->old_values), 'comments_short' . $value->id,
|
||||
'comments_long' . $value->id) !!}
|
||||
|
||||
<div id="comments_long{{ $value->id }}" style="display: none;">
|
||||
{!! json_encode($value->old_values) !!}<br />
|
||||
<a class="read_more" style="color : #0099CC;"
|
||||
onclick="hide('comments_long{{ $value->id }}');show('comments_short{{ $value->id }}');">{{
|
||||
__('patient_episode.read_less') }}</a>
|
||||
</div>
|
||||
</td>
|
||||
@else
|
||||
<td></td>
|
||||
@endif
|
||||
@if($value->auditable_type !== "Streamline\Models\User")
|
||||
<td>
|
||||
{!! read_more(json_encode($value->new_values), 'short_comment' . $value->id,
|
||||
'long_comment' . $value->id) !!}
|
||||
|
||||
<div id="long_comment{{ $value->id }}" style="display: none;">
|
||||
{!! json_encode($value->new_values) !!}<br />
|
||||
<a class="read_more" style="color : #0099CC;"
|
||||
onclick="hide('long_comment{{ $value->id }}');show('short_comment{{ $value->id }}');">{{
|
||||
__('patient_episode.read_less') }}</a>
|
||||
</div>
|
||||
</td>
|
||||
@else
|
||||
<td></td>
|
||||
@endif
|
||||
{{-- <td class="td-truncate">{{ $audit->user_agent }}</td> --}}
|
||||
<td>{{ $value->ip_address }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<i style="font-size: 0.8em; float: left">© {{ date('Y') }} Stre@mline</i>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i style="float: right">Printed On {{ date(" d M Y h:ia") }} By {{ auth()->user()->first_name }} {{
|
||||
auth()->user()->last_name }}</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,106 @@
|
||||
<!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="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16"
|
||||
href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Failed Login - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
/*thead, tfoot { display: table-row-group }*/
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<table class="table table-bordered">
|
||||
{{-- <tr>
|
||||
<td><b>{{ __('patient_finance.date') }}</b></td>
|
||||
<td colspan="2">{{ streamline_date_time_short($receipt_date) }}</td>
|
||||
<td><b>{{ __('patient_finance.receipt_number') }}</b></td>
|
||||
<td colspan="2">{{ $receipt_number }}</td>
|
||||
<td><b>{{ __('family_accounts.deposit_date') }}</b></td>
|
||||
<td colspan="2">{{ $new_family_deposit->deposit_date }}</td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 10px;">No.</th>
|
||||
<th style="width: 150px;">Name</th>
|
||||
<th style="width: 50px;">Email</th>
|
||||
<th style="width: 80px;">IP Address</th>
|
||||
<th style="width: 150px;">Time & Date</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($failed_login_data as $key => $value)
|
||||
@php
|
||||
$user = Streamline\Models\User::where('id', $value->user_id)->select('first_name',
|
||||
'last_name')->first();
|
||||
$date = Carbon\Carbon::parse($value->created_at);
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ ++$key }}</td>
|
||||
<td>{{ $user->first_name }} {{ $user->last_name }}</td>
|
||||
<td>{{ $value->email_address }}</td>
|
||||
<td>{{ $value->ip_address }}</td>
|
||||
<td>{{ streamline_date_time($value->created_at) }} ({{ $date->diffForHumans() }})
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{-- <div class="row">
|
||||
<div class="col">
|
||||
<i style="float: left"> Printed By {{ Auth::user()->first_name }} {{ Auth::user()->last_name }}</i>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i style="float: right">Printed On: {{ Carbon\Carbon::now()->format('d-m-Y'); }}</i>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<i style="font-size: 0.8em; float: left">© {{ date('Y') }} Stre@mline</i>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i style="float: right">Printed On {{ date(" d M Y h:ia") }} By {{ auth()->user()->first_name }} {{
|
||||
auth()->user()->last_name }}</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,307 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<style>
|
||||
th,
|
||||
td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
,
|
||||
table {
|
||||
width: 100%
|
||||
}
|
||||
|
||||
td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.td-truncate {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 100%;
|
||||
max-width: 0;
|
||||
word-break: break-all;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
,
|
||||
.td-truncate:hover {
|
||||
overflow: visible;
|
||||
white-space: normal;
|
||||
height: auto;
|
||||
/* just added this line */
|
||||
}
|
||||
</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">{{ __('audit_trail.audit_trail') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('audit_trail.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('audit_trail.audit_trail') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('audit_trail.menu')
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'audit_trail.search']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('user_id', __('audit_trail.staff_member')) }}
|
||||
{{ Form::select('user_id', $user_id, null, ['class' => 'user_id form-control compulsory', 'required'])
|
||||
}}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('action_performed',__('audit_trail.action_performed')) }}
|
||||
{{ Form::select('action_performed', $action_performed, null, ['class' => 'action_performed form-control
|
||||
compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('records_affected', __('audit_trail.records_affected')) }}
|
||||
{{ Form::select('records_affected', $records_affected, null, ['class' => 'records_affected form-control
|
||||
compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('date_range', __('audit_trail.select_the_date')) }}
|
||||
<select class="form-control compulsory required" name="dates" id="dates" required>
|
||||
<option value="ALL">{{ __('audit_trail.all_dates') }}</option>
|
||||
<option value="today" selected>{{ __('audit_trail.today') }}</option>
|
||||
<option value="yesterday">{{ __('audit_trail.yesterday') }}</option>
|
||||
<option value="week">{{ __('audit_trail.last_7') }}</option>
|
||||
<option value="month">{{ __('audit_trail.last_30') }}</option>
|
||||
<option value="custom-date">{{ __('audit_trail.custom_date') }}</option>
|
||||
<option value="custom-range">{{ __('audit_trail.date_range') }}</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-3" style="display: none;" id="start-date-div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('audit_trail.date_from')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id'
|
||||
=> 'datepicker-from']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="display: none;" id="end-date-div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('audit_trail.date_to')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id' =>
|
||||
'datepicker-to']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<Code>Colors Codes</Code>
|
||||
<span style="color:black" class="badge badge-danger">Deleted</span>
|
||||
<span style="color:black" class="badge badge-success">Created</span>
|
||||
<span style="color:black" class="badge badge-info">Updated</span>
|
||||
<span style="color:black" class="badge badge-warning">Restored</span>
|
||||
</div>
|
||||
<div class="col-md-0">
|
||||
{{ Form::button(__('audit_trail.search'), ['type' => 'submit', 'class' => 'btn btn-success waves-effect
|
||||
waves-light m-r-10']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
<div class="row">
|
||||
<div class="col-md-0">
|
||||
{{ Form::open(['method'=>'post','route' => 'audit_trail_print']) }}
|
||||
{{ Form::hidden('data', json_encode($audits)) }}
|
||||
{{ Form::submit('Print', ['style' => 'float: right;', 'class'=>'btn btn-success btn-success']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('No.') }}</th>
|
||||
<th>{{ __('audit_trail.date_and_time') }}</th>
|
||||
<th>{{ __('audit_trail.action_performed') }}</th>
|
||||
<th>{{ __('Old Values') }}</th>
|
||||
<th>{{ __('New Values') }}</th>
|
||||
{{-- <th>{{ __('audit_trail.device') }}</th> --}}
|
||||
<th>{{ __('audit_trail.computer_ip_address') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($audits as $audit)
|
||||
<tr @class([
|
||||
'text-success' => $audit->event === "created",
|
||||
'text-primary' => $audit->event === "updated",
|
||||
'text-danger' => $audit->event === "deleted",
|
||||
'text-warning' => $audit->event === "restored",
|
||||
])>
|
||||
<td>
|
||||
{{ $loop->iteration }}
|
||||
</td>
|
||||
<td>
|
||||
{{ streamline_date_time_short($audit->created_at) }}
|
||||
</td>
|
||||
<td>
|
||||
{{
|
||||
get_audit_trail_action_description(
|
||||
$audit->auditable_type,
|
||||
$audit->user_id,
|
||||
$audit->auditable_id,
|
||||
$audit->url,
|
||||
$audit->event,
|
||||
$audit->record_affected
|
||||
)
|
||||
}}
|
||||
</td>
|
||||
<td>
|
||||
{!! format_audit_trail_values($audit, 'old') !!}
|
||||
</td>
|
||||
<td>
|
||||
{!! format_audit_trail_values($audit, 'new') !!}
|
||||
</td>
|
||||
{{-- <td class="td-truncate">{{ $audit->user_agent }}</td> --}}
|
||||
<td>{{ $audit->ip_address }}</td>
|
||||
<td>
|
||||
<a
|
||||
href="/audit_trail/audit_trail_details/{{ $audit->id }}"
|
||||
class="btn btn-success btn-rounded btn-sm">
|
||||
{{ __('audit_trail.details') }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ $audits->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display === 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
$('#datepicker-from, #datepicker-to').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy',
|
||||
});
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
buttons: [{
|
||||
extend: 'copy',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
},
|
||||
{
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
}
|
||||
]
|
||||
});
|
||||
$('#dates').change(function() {
|
||||
|
||||
var val = $(this).val();
|
||||
switch (val) {
|
||||
case 'custom-date':
|
||||
$('#end-date-div').hide();
|
||||
$('#start-date-div').show();
|
||||
break;
|
||||
case 'custom-range':
|
||||
$('#end-date-div').show();
|
||||
$('#start-date-div').show();
|
||||
break;
|
||||
default:
|
||||
$('#end-date-div').hide();
|
||||
$('#start-date-div').hide();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$('.user_id,.action_performed,.records_affected,#dates').select2({
|
||||
placeholder: "-select-"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="/audit_trail" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-cogs"></i>
|
||||
<span style="margin-left: 10px">{{ __('Audit Trail') }}</span></a>
|
||||
<a href="/failed_logins" class="nav-item btn btn-danger" style="border-radius: 5px;"><i class="fa fa-close"></i>
|
||||
<span style="margin-left: 10px">{{ __('Failed Logins') }}</span></a>
|
||||
<a href="/online_users" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-dot-circle-o"></i>
|
||||
<span style="margin-left: 10px">{{ __('Online Users') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
<!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="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16"
|
||||
href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Online User - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
/*thead, tfoot { display: table-row-group }*/
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<table class="table table-bordered">
|
||||
{{-- <tr>
|
||||
<td><b>{{ __('patient_finance.date') }}</b></td>
|
||||
<td colspan="2">{{ streamline_date_time_short($receipt_date) }}</td>
|
||||
<td><b>{{ __('patient_finance.receipt_number') }}</b></td>
|
||||
<td colspan="2">{{ $receipt_number }}</td>
|
||||
<td><b>{{ __('family_accounts.deposit_date') }}</b></td>
|
||||
<td colspan="2">{{ $new_family_deposit->deposit_date }}</td>
|
||||
</tr> --}}
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 10px;">No</th>
|
||||
<th style="width: 10px;">Name</th>
|
||||
<th style="width: 5px;">Email</th>
|
||||
<th style="width: 10px;">Status</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($online_users as $key => $value)
|
||||
@php
|
||||
$now = \Carbon\Carbon::now();
|
||||
$check_online_status =
|
||||
\Carbon\Carbon::parse($value['last_seen'])->diffInDays(\Carbon\Carbon::parse($now));
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $value['id'] }}</td>
|
||||
<td>{{ $value['first_name'] }} {{ $value['last_name'] }}</td>
|
||||
<td>{{ $value['email'] }}</td>
|
||||
<td>
|
||||
@if(Cache::has('user-is-online-' . $value['id']))
|
||||
<span class="badge badge-success">Online</span>
|
||||
@else
|
||||
<span class="badge badge-primary">Offline</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<i style="font-size: 0.8em; float: left">© {{ date('Y') }} Stre@mline</i>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i style="float: right">Printed On {{ date(" d M Y h:ia") }} By {{ auth()->user()->first_name }} {{
|
||||
auth()->user()->last_name }}</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/horizontal-timeline/css/horizontal-timeline.css') }}" rel="stylesheet"/>
|
||||
<style></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">Patient Timeline</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Patient Timeline</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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' />
|
||||
@else
|
||||
<img src="/uploads/streamline_images/person-place-holder.jpg" class="img-rounded center" style='height: 100px; 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>Age:</b> {{ get_patients_age($patient->date_of_birth) }}</div>
|
||||
</div>
|
||||
<br><br>
|
||||
<div class="row">
|
||||
<div class="col-md-4"><b>Patient Number:</b> {{ $patient->number }}</div>
|
||||
<div class="col-md-4"><b>Phone:</b> {{ $patient->phone }}</div>
|
||||
<div class="col-md-4"><b>Email:</b> {{ $patient->email }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<ul class="timeline">
|
||||
@php
|
||||
// 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>
|
||||
<div class="timeline-panel">
|
||||
<div class="timeline-heading">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@php $inverted = !($inverted == true); @endphp
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/horizontal-timeline/js/horizontal-timeline.js') }}"></script>
|
||||
<script type="text/javascript"></script>
|
||||
@endpush
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
@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
|
||||
|
||||
{{-- @php--}}
|
||||
{{-- $episode_chunk = round(count($patient_episodes_details) / 2);--}}
|
||||
{{-- $episodes = array_chunk($patient_episodes_details, $episode_chunk, true);--}}
|
||||
{{-- @endphp--}}
|
||||
|
||||
{{-- @foreach($episodes as $episode)--}}
|
||||
{{-- {{ dd($episode) }}--}}
|
||||
{{-- --}}{{--<div class="row">--}}
|
||||
{{-- @foreach($episode as $ee)--}}
|
||||
{{-- <div class="col-md-4">{{ $ee['id'] }}</div>--}}
|
||||
{{-- @endforeach--}}
|
||||
{{-- </div>--}}
|
||||
{{-- @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
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
<!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="">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name') }}</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">
|
||||
<!-- 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/megna.css') }}" id="theme" rel="stylesheet">
|
||||
|
||||
<!-- Streamline - custom -->
|
||||
<link href="{{ asset('css/streamline-custom.css') }}" id="theme" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Preloader -->
|
||||
<div class="preloader">
|
||||
<div class="cssload-speeding-wheel"></div>
|
||||
</div>
|
||||
<section id="wrapper" class="login-register" style="background:url(../../uploads/streamline_images/login_cover.png) center center/cover no-repeat!important;">
|
||||
<div class="login-box login-sidebar">
|
||||
<div class="white-box">
|
||||
<!--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
|
||||
|
||||
<form class="form-horizontal form-material" id="loginform" method="POST" action="{{ route('login') }}">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<a href="javascript:void(0)" class="text-center db">
|
||||
<img src="{{ asset(isset($hospital_information->logo) ? $hospital_information->logo :'uploads/logo/logo.png') }}" height="120px" alt="Home" /><br/>
|
||||
</a>
|
||||
|
||||
<div class="form-group m-t-40 {{ $errors->has('username') ? ' has-error' : '' }}">
|
||||
<div class="col-xs-12">
|
||||
<input class="form-control" type="text" name="username" required value="{{ old('username') }}" autofocus placeholder="{{ __('auth.username') }}">
|
||||
@if ($errors->has('username'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('username') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
<div class="col-xs-12">
|
||||
<input class="form-control" type="password" name="password" required="" placeholder="{{ __('auth.password') }}">
|
||||
@if ($errors->has('password'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<div class="checkbox checkbox-primary pull-left p-t-0">
|
||||
<input id="checkbox-signup" type="checkbox" name="remember" disabled="true" {{ old('remember') ? 'checked' : '' }}>
|
||||
<label for="checkbox-signup"> {{ __('auth.remember_me') }} </label>
|
||||
</div>
|
||||
<a href="javascript:void(0)" id="to-recover" class="text-dark pull-right"><i class="fa fa-lock m-r-5"></i> {{ __('auth.reset_password') }}</a> </div>
|
||||
</div>
|
||||
<div class="form-group text-center m-t-20">
|
||||
<div class="col-xs-12">
|
||||
<button class="btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light" type="submit">{{ __('auth.log_in') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group m-b-0">
|
||||
<div class="col-sm-12 text-center">
|
||||
<p>{{ __('auth.visit') }} <a href="http://www.streamlinehealth.org" target="_blank" class="text-primary m-l-4"><b>www.streamlinehealth.org</b></a></p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<form class="form-horizontal" id="recoverform" method="POST" action="{{ route('reset.check') }}">
|
||||
{{ csrf_field() }}
|
||||
<div class="form-group ">
|
||||
<div class="col-xs-12">
|
||||
<h3>{{ __('auth.reset_password') }}</h3>
|
||||
<p class="text-muted">{{ __('auth.login_prompt') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<div class="col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_question_id',__('auth.recorded_security_question')) }}
|
||||
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_answer',__('auth.security_answer')) }}
|
||||
{{ Form::text('security_answer','',['class' => 'form-control compulsory','placeholder'=>'Security answer']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group ">
|
||||
{{ Form::label('pin',__('auth.your_pin')) }}
|
||||
{{ Form::text('pin','',['class' => 'form-control compulsory','placeholder'=>'PIN']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group ">
|
||||
<button class="btn btn-success text-uppercase waves-effect waves-light float-right" type="submit">{{ __('auth.reset_password') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group text-center m-t-20">
|
||||
<div class="col-xs-12">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- 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>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,222 @@
|
||||
@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/custom-select/custom-select.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('js/password-strength-check/password-check.css') }}" rel="stylesheet" type="text/css" />
|
||||
<!--<link href=" asset('elite/bower_components/multiselect/css/multi-select.css') " rel="stylesheet" type="text/css" />-->
|
||||
<style type="text/css">
|
||||
.pin{
|
||||
-webkit-text-security: square;
|
||||
-moz-text-security:square;
|
||||
text-security:square;
|
||||
}
|
||||
</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.new_user') }}</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.register') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
@include('users.menu')
|
||||
|
||||
<!-- .row -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
<div>@include('flash::message')</div>
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
{{ __('users.add_user_error') }}<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'auth.store','id'=>'register','method'=>'POST','enctype'=>'multipart/form-data','data-toggle'=>'validator','autocomplete'=>'off']) }}
|
||||
{{ csrf_field() }}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('first_name',__('users.first_name')) }}
|
||||
{{ Form::text('first_name','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('last_name',__('users.last_name')) }}
|
||||
{{ Form::text('last_name','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('phone',__('users.phone_number')) }}
|
||||
{{ Form::text('phone','',['class' => 'form-control','data-mask'=>"0799 999 999"]) }}
|
||||
<span class="font-13 text-muted">(07xx) 123-456</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('email',__('users.email_address')) }}
|
||||
{{ Form::email('email','',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('position_id',__('users.position')) }}
|
||||
{{ Form::select('position_id',$positions,'',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('photo',__('users.photo')) }}
|
||||
{{ Form::file('photo',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label("council_registration",__('users.any_council_registration')) }}<br>
|
||||
{{ Form::radio('council_registration',1,'',['class'=>'council_radio', 'required']) }} {{ __('users.yes') }}
|
||||
{{ Form::radio('council_registration',0,'',['class'=>'council_radio', 'required']) }} {{ __('users.no') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('council_id',__('users.council_name')) }}
|
||||
{{ Form::select('council_id',$councils,'',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('registration_number',__('users.registration_number')) }}
|
||||
{{ Form::text('registration_number','',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('expiry_date',__('users.expiry_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('expiry_date',null,['class' => 'form-control datepicker','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
{{ Form::label('blood_group_id',__('users.blood_group')) }}
|
||||
{{ Form::select('blood_group_id',$blood_groups,'',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label("willing_to_donate",__('users.are_willing_to_donate')) }}<br>
|
||||
{{ Form::radio('willing_to_donate',1, ['required']) }} {{ __('users.yes') }}
|
||||
{{ Form::radio('willing_to_donate',0, ['required']) }} {{ __('users.no') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('last_donation_date',__('users.when_last_donation')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('last_donation_date','',['class' => 'form-control datepicker','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('roles[]',__('users.roles_on_streamline')) }}
|
||||
{{ Form::select('roles[]',$roles,[],['class' => 'roles compulsory select2 m-b-10 select2-multiple', 'multiple','data-placeholder'=>'- select role -']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('username',__('users.username')) }}
|
||||
{{ Form::text('username','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('password',__('users.password')) }}
|
||||
{{ Form::password('password',['class' => 'form-control compulsory']) }}
|
||||
<span id="result"></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('password_confirm',__('users.confirm_password')) }}
|
||||
{{ Form::password('password_confirmation',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pin',__('users.secret_pin')) }}
|
||||
{{ Form::number('pin',null,['class' => 'form-control compulsory pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_question_id',__('users.security_question')) }}
|
||||
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_answer',__('users.security_answer')) }}
|
||||
{{ Form::text('security_answer','',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-8"><hr></div>
|
||||
<div class="col-md-4">
|
||||
{{ Form::button(__('users.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('users.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/mask.js') }}"></script>
|
||||
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/custom-select/custom-select.min.js') }}"></script>
|
||||
<!--<script type="text/javascript" src=" asset('elite/bower_components/multiselect/js/jquery.multi-select.js')"></script>-->
|
||||
|
||||
<script type="text/javascript">
|
||||
$('document').ready(function () {
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
$('.council_radio').click(function (){
|
||||
|
||||
if ($(this).val() === '1'){
|
||||
$('.council_hide').show()
|
||||
}
|
||||
else{
|
||||
$('.council_hide').hide();
|
||||
}
|
||||
|
||||
});
|
||||
// For multiselect
|
||||
$('.roles').select2();
|
||||
// $('.roles').multiSelect();
|
||||
// $('.roles').multiSelect({
|
||||
// selectableOptgroup: true
|
||||
// });
|
||||
});</script>
|
||||
|
||||
<script type="text/javascript" src="{{ asset('js/password-strength-check/password-check.js') }}"></script>
|
||||
@endpush
|
||||
@@ -0,0 +1,89 @@
|
||||
@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/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" />
|
||||
<style type="text/css">
|
||||
.color-bordered-table.success-bordered-table {
|
||||
border-top: 0px;
|
||||
}
|
||||
</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">{{ __('blood_donations.new_blood_donation') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('blood_donations.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('blood_donations.index') }}">{{ __('blood_donations.blood_donors') }}</a></li>
|
||||
<li class="active">{{ __('blood_donations.new_blood_donation') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 20%">{{ __('blood_donations.blood_group') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.name') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.phone') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.new_donation_date') }}</th>
|
||||
<th style="width: 20%">{{ __('blood_donations.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@php $blood_group = \Streamline\Models\BloodGroup::find($donor->blood_group_id); @endphp
|
||||
<td>{{ $blood_group->name }}</td>
|
||||
<td>{{ $donor->first_name }} {{ $donor->last_name }}</td>
|
||||
<td>{{ $donor->phone }}</td>
|
||||
<td>
|
||||
{{ Form::open(['method' => 'POST', 'route' => ['blood_donations.store']]) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('donation_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="donor_id" value="{{ $donor->id }}">
|
||||
<button type="submit" class="btn btn-success btn-sm"> {{ __('blood_donations.update') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<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>
|
||||
jQuery('#datepicker-autoclose').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,127 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
<style type="text/css">
|
||||
.color-bordered-table.success-bordered-table {
|
||||
border-top: 0px;
|
||||
}
|
||||
</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">{{ __('blood_donations.blood_donations') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('blood_donations.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('blood_donations.index') }}">{{ __('blood_donations.blood_donors') }}</a></li>
|
||||
<li class="active">{{ __('blood_donations.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-sm-4"></div>
|
||||
<div class="col-sm-4">
|
||||
{{ Form::open(['method' => 'post', 'route'=>'select.blood_group'])}}
|
||||
|
||||
{{ Form::label('blood_group_id', __('blood_donations.select_blood_group')) }}
|
||||
{{ Form::select('blood_group_id', $blood_groups, null, ['class'=>'form-control compulsory','required']) }}
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="col-sm-3 form-group" style="padding-top: 28px;">
|
||||
{{ Form::button(__('blood_donations.search'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.name') }}</th>
|
||||
<th>{{ __('blood_donations.blood_group') }}</th>
|
||||
<th>{{ __('blood_donations.phone') }}</th>
|
||||
<th>{{ __('blood_donations.last_donated') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(count($willing_donors) > 0)
|
||||
@foreach($willing_donors as $donor)
|
||||
<tr>
|
||||
<td>{{ $donor->first_name }} {{ $donor->last_name }}</td>
|
||||
@php $blood_group = \Streamline\Models\BloodGroup::find($donor->blood_group_id); @endphp
|
||||
<td>{{ is_null($blood_group) ? '' : $blood_group->name }}</td>
|
||||
<td>{{ $donor->phone }}</td>
|
||||
<td>
|
||||
{{ (get_name($donor->id, "donor_id", "last_donation_date", "blood_donations") != 'N/A') ? streamline_date(get_name($donor->id, "donor_id", "last_donation_date", "blood_donations")) : 'N/A' }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::open(['method' => 'POST', 'route' => ['blood_donations.create_donation', $donor->id]]) }}
|
||||
<input type="hidden" name="donor_id" value="{{ $donor->id }}">
|
||||
<button type="submit" class="btn btn-success btn-rounded btn-sm"><i class="fa fa-plus"></i><span style="margin-left: 10px;">{{ __('blood_donations.add_donation') }}</span></button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" href="blood_donations/{{$donor->id}}"><i class="fa fa-eye"></i><span style="margin-left: 10px;">{{ __('blood_donations.view_details') }}</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr><td colspan="5"><font color="red">{{ __('blood_donations.no_records_found') }}</font></td></tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', {
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 3 ]
|
||||
},
|
||||
title: '<?php echo __('blood_donations.blood_donations'); ?>'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 3 ]
|
||||
},
|
||||
title: '<?php echo __('blood_donations.blood_donations'); ?>'
|
||||
},
|
||||
{
|
||||
extend: 'excel',
|
||||
exportOptions: {
|
||||
columns: [ 0, 1, 2, 3 ]
|
||||
},
|
||||
title: '<?php echo __('blood_donations.blood_donations'); ?>'
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,90 @@
|
||||
@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">
|
||||
.color-bordered-table.success-bordered-table {
|
||||
border-top: 0px;
|
||||
}
|
||||
</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">{{ __('blood_donations.blood_donations') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('blood_donations.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('blood_donations.index') }}">{{ __('blood_donations.blood_donors') }}</a></li>
|
||||
<li class="active">{{ __('blood_donations.blood_donations') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h4>{{ __('blood_donations.member_details') }}</h4>
|
||||
<br>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-thead-simple">
|
||||
<tr>
|
||||
@php $blood_group = \Streamline\Models\BloodGroup::find($donor->blood_group_id); @endphp
|
||||
<th>{{ __('blood_donations.blood_group') }} : </th><td><font color="green"> {{ $blood_group->name }} </font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.name') }} : </th><td>{{ $donor->first_name }} {{ $donor->last_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.phone') }} : </th><td>{{ $donor->phone }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('blood_donations.willing_to_donate') }} : </th><td>{{ $donor->willing_to_donate == 1 ? __('blood_donations.yes') : __('blood_donations.no') }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<h4>{{ __('blood_donations.donation_details') }}</h4>
|
||||
<br>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<th style="width: 20%">#</th>
|
||||
<th style="width: 80%">{{ __('blood_donations.donation_date') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; @endphp
|
||||
@foreach($blood_donations as $donation)
|
||||
<tr>
|
||||
<td>{{ $counter }}. </td>
|
||||
<td>{{ streamline_date($donation->last_donation_date) }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
jQuery('#datepicker-autoclose').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,95 @@
|
||||
@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">Import Data</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li class="active">Import Data</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<h3 class="text-center">
|
||||
Import {{ $tag_name }} Data
|
||||
</h3>
|
||||
|
||||
<h3 style="color: red"><u>Important note, the document columns must be arranged in the order below. Do not add column headers.</u></h3>
|
||||
|
||||
<ol>
|
||||
<li>Item Code</li>
|
||||
<li>Item Name</li>
|
||||
@if(in_array($tag_id, [3, 5]))<li>Cost Price</li>@endif
|
||||
<li>Cash Selling Price</li>
|
||||
@if($tag_id == 3)<li>Unit ID</li>@endif
|
||||
@if($tag_id == 3)<li>Form ID</li>@endif
|
||||
@if($tag_id == 3)<li>Strength</li>@endif
|
||||
</ol>
|
||||
|
||||
<br>
|
||||
|
||||
{{ Form::open(['route' => 'data_extraction.import_csv_upload', 'data-toggle' => 'validator', 'files' => true, 'enctype'=>'multipart/form-data']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="name">Upload CSV File</label>
|
||||
{{ Form::file('file', ['class' => 'form-control compulsory', 'required', 'accept' => '.csv']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('account_id', 'Income Account') }}
|
||||
{{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($tag_id == 5 || $tag_id == 3)
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cog_account', __('drugs.cost_of_goods_account')) }}
|
||||
{{ Form::select('cog_account', $cost_of_goods_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('inventory_account', __('drugs.inventory_asset_account')) }}
|
||||
{{ Form::select('inventory_account', $inventory_asset_accounts, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ Form::hidden('tag_id', $tag_id) }}
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success pull-right waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
@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">Import Data Progress</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li class="active">Import Data</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<h3 class="text-center"> Please be patient whilst the data is imported... </h3>
|
||||
|
||||
<br><br><br>
|
||||
|
||||
<div class="progress text-lg" style="height: 30px">
|
||||
<div class="progress-bar progress-bar-striped active" role="progressbar"
|
||||
aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%" id="progressbar"></div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
@if(get_name($id, 'id', 'has_price_list', 'csv_imports_processes') == 1)
|
||||
<a class="btn btn-primary btn-block" onclick="start_price_list_manually();">Stuck? Manually Start Process</a>
|
||||
@else
|
||||
<a class="btn btn-primary btn-block" onclick="start_manually();">Stuck? Manually Start Process</a>
|
||||
@endif
|
||||
|
||||
{{ Form::hidden('progress_id', $id, ['id' => 'progress_id'])}}
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
check_progress();
|
||||
|
||||
function check_progress(){
|
||||
var progress_id = $("#progress_id").val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/data_extraction/fetch_progress/' + progress_id,
|
||||
success: function(response){
|
||||
$('#progressbar').css({
|
||||
'width' : response + '%'
|
||||
});
|
||||
|
||||
if(response == 100){
|
||||
alert("Records have been imported. Continue...");
|
||||
window.location.href = "/home";
|
||||
} else {
|
||||
check_progress();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function start_manually(){
|
||||
var progress_id = $("#progress_id").val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/data_extraction/start_process/' + progress_id,
|
||||
success: function(response){
|
||||
alert("Process has been started");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function start_price_list_manually(){
|
||||
var progress_id = $("#progress_id").val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/data_extraction/start_price_list_process/' + progress_id,
|
||||
success: function(response){
|
||||
alert("Process has been started");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
@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">Import Data With Price List</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('departments.dashboard') }}</a></li>
|
||||
<li class="active">Import Data With Price List</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<h3 class="text-center">
|
||||
Import {{ $tag_name }} Price List
|
||||
</h3>
|
||||
|
||||
<h3 style="color: red"><u>Important note, the document columns must be arranged in the order below. Column headers for patient category price lists must have the same name as the patient category in Stre@mline.</u></h3>
|
||||
|
||||
<ol>
|
||||
<li>Item Name</li>
|
||||
<li>Add As Many Columns For The Patient Category Price Lists...</li>
|
||||
</ol>
|
||||
|
||||
<br>
|
||||
|
||||
{{ Form::open(['route' => 'data_extraction.import_price_list_csv_upload', 'data-toggle' => 'validator', 'files' => true, 'enctype'=>'multipart/form-data']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="name">Upload CSV File</label>
|
||||
{{ Form::file('file', ['class' => 'form-control compulsory', 'required', 'accept' => '.csv']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::hidden('tag_id', $tag_id) }}
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success pull-right waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-6">
|
||||
<h4 class="page-title">Select CSV Import Type</h4>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Select CSV Import Type</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/3" class="btn btn-success btn-rounded btn-outline btn-block">Drugs</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/2" class="btn btn-success btn-rounded btn-outline btn-block">Investigations</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/4" class="btn btn-success btn-rounded btn-outline btn-block">Procedures</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_csv/6" class="btn btn-success btn-rounded btn-outline btn-block">Services</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="/data_extraction/import_csv/5" class="btn btn-success btn-rounded btn-outline btn-block">Sundries</a>
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/3" class="btn btn-primary btn-rounded btn-outline btn-block">Drugs Price List</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/2" class="btn btn-primary btn-rounded btn-outline btn-block">Investigations Price List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/4" class="btn btn-primary btn-rounded btn-outline btn-block">Procedures Price List</a>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-5">
|
||||
<a href="/data_extraction/import_price_list_csv/6" class="btn btn-primary btn-rounded btn-outline btn-block">Services Price List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="/data_extraction/import_price_list_csv/5" class="btn btn-primary btn-rounded btn-outline btn-block">Sundries Price List</a>
|
||||
|
||||
<br><br><br>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@endpush
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('ACCESS DENIED'))
|
||||
@section('code', '401')
|
||||
@section('message', __('ACCESS DENIED'))
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Payment Required'))
|
||||
@section('code', '402')
|
||||
@section('message', __('Payment Required'))
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Forbidden'))
|
||||
@section('code', '403')
|
||||
@section('message', __($exception->getMessage() ?: 'Forbidden'))
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Not Found'))
|
||||
@section('code', '404')
|
||||
@section('message', __('Not Found'))
|
||||
+486
@@ -0,0 +1,486 @@
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Page Expired</title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html {
|
||||
line-height: 1.15;
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
header,
|
||||
nav,
|
||||
section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
figcaption,
|
||||
main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
-webkit-text-decoration-skip: objects;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font-family: sans-serif;
|
||||
font-size: 100%;
|
||||
line-height: 1.15;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
button {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
button,
|
||||
html [type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
legend {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
color: inherit;
|
||||
display: table;
|
||||
max-width: 100%;
|
||||
padding: 0;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
[type="search"]::-webkit-search-cancel-button,
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
menu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
canvas {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
-webkit-box-sizing: inherit;
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
outline: 1px dotted;
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
border-width: 0;
|
||||
border-style: solid;
|
||||
border-color: #dae1e7;
|
||||
}
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
input::-webkit-input-placeholder {
|
||||
color: inherit;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
input:-ms-input-placeholder {
|
||||
color: inherit;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
input::-ms-input-placeholder {
|
||||
color: inherit;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
input::placeholder {
|
||||
color: inherit;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
button,
|
||||
[role=button] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bg-transparent {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.bg-teal-light {
|
||||
background-color: #64d5ca;
|
||||
}
|
||||
|
||||
.bg-blue-dark {
|
||||
background-color: #2779bd;
|
||||
}
|
||||
|
||||
.bg-indigo-light {
|
||||
background-color: #7886d7;
|
||||
}
|
||||
|
||||
.bg-purple-light {
|
||||
background-color: #a779e9;
|
||||
}
|
||||
|
||||
.bg-no-repeat {
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.bg-cover {
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.border-grey-light {
|
||||
border-color: #dae1e7;
|
||||
}
|
||||
|
||||
.hover\:border-grey:hover {
|
||||
border-color: #b8c2cc;
|
||||
}
|
||||
|
||||
.rounded-lg {
|
||||
border-radius: .5rem;
|
||||
}
|
||||
|
||||
.border-2 {
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.items-center {
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.justify-center {
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.font-sans {
|
||||
font-family: Nunito, sans-serif;
|
||||
}
|
||||
|
||||
.font-light {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.font-bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.font-black {
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.h-1 {
|
||||
height: .25rem;
|
||||
}
|
||||
|
||||
.leading-normal {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.m-8 {
|
||||
margin: 2rem;
|
||||
}
|
||||
|
||||
.my-3 {
|
||||
margin-top: .75rem;
|
||||
margin-bottom: .75rem;
|
||||
}
|
||||
|
||||
.mb-8 {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.max-w-sm {
|
||||
max-width: 30rem;
|
||||
}
|
||||
|
||||
.min-h-screen {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.py-3 {
|
||||
padding-top: .75rem;
|
||||
padding-bottom: .75rem;
|
||||
}
|
||||
|
||||
.px-6 {
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.pb-full {
|
||||
padding-bottom: 100%;
|
||||
}
|
||||
|
||||
.absolute {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.relative {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pin {
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.text-black {
|
||||
color: #22292f;
|
||||
}
|
||||
|
||||
.text-grey-darkest {
|
||||
color: #3d4852;
|
||||
}
|
||||
|
||||
.text-grey-darker {
|
||||
color: #606f7b;
|
||||
}
|
||||
|
||||
.text-2xl {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.text-5xl {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.uppercase {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.antialiased {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.tracking-wide {
|
||||
letter-spacing: .05em;
|
||||
}
|
||||
|
||||
.w-16 {
|
||||
width: 4rem;
|
||||
}
|
||||
|
||||
.w-full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.md\:bg-left {
|
||||
background-position: left;
|
||||
}
|
||||
|
||||
.md\:bg-right {
|
||||
background-position: right;
|
||||
}
|
||||
|
||||
.md\:flex {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.md\:my-6 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.md\:min-h-screen {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.md\:pb-0 {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.md\:text-3xl {
|
||||
font-size: 1.875rem;
|
||||
}
|
||||
|
||||
.md\:text-15xl {
|
||||
font-size: 9rem;
|
||||
}
|
||||
|
||||
.md\:w-1\/2 {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.lg\:bg-center {
|
||||
background-position: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="antialiased font-sans">
|
||||
<div class="md:flex min-h-screen">
|
||||
<div class="w-full md:w-1/2 bg-white flex items-center justify-center">
|
||||
<div class="max-w-sm m-8">
|
||||
<div class="text-black text-5xl md:text-15xl font-black">
|
||||
419 </div>
|
||||
|
||||
<div class="w-16 h-1 bg-purple-light my-3 md:my-6"></div>
|
||||
|
||||
<p class="text-grey-darker text-2xl md:text-3xl font-light mb-8 leading-normal">
|
||||
Sorry, your session has expired. Please refresh and try again. </p>
|
||||
|
||||
<a href="{{ url('home') }}">
|
||||
<button class="bg-transparent text-grey-darkest font-bold uppercase tracking-wide py-3 px-6 border-2 border-grey-light hover:border-grey rounded-lg">
|
||||
Log into Stre@mline
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="relative pb-full md:flex md:pb-0 md:min-h-screen w-full md:w-1/2">
|
||||
<div style="background-image: url(http://localhost:8000/svg/403.svg);" class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Too Many Requests'))
|
||||
@section('code', '429')
|
||||
@section('message', __('Too Many Requests'))
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Server Error'))
|
||||
@section('code', '500')
|
||||
@section('message', __('Server Error'))
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Service Unavailable'))
|
||||
@section('code', '503')
|
||||
@section('message', __('Service Unavailable'))
|
||||
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>@yield('title')</title>
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
color: #636b6f;
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
font-weight: 100;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.full-height {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.position-ref {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36px;
|
||||
padding: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-center position-ref full-height">
|
||||
<div class="content">
|
||||
<div class="title">
|
||||
@yield('message')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
File diff suppressed because one or more lines are too long
+101
@@ -0,0 +1,101 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('frequently_asked_questions.index') }}">{{ __('frequently_asked_questions.faq') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'frequently_asked_questions.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('question', __('frequently_asked_questions.question')) }}
|
||||
{{ Form::text('question', '', ['class'=>'form-control compulsory','required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('module_id', __('frequently_asked_questions.modules')) }}
|
||||
{{ Form::select('module_id', $modules, '', ['class'=>'form-control', 'id'=>'module_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('answer', __('frequently_asked_questions.answer')) }}
|
||||
{{ Form::textarea('answer', '', ['class'=>'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_url', 'Primary Reference URL') }}
|
||||
{{ Form::text('reference_url', '', ['class'=>'form-control', 'id'=>'reference_url']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('additional_reference_url', 'Secondary Reference URL') }}
|
||||
{{ Form::text('additional_reference_url', '', ['class'=>'form-control', 'id'=>'additional_reference_url']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
<!-- data time piker dependency -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<!-- -->
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
$('#datepicker-autoclose,#datepicker-autoclose2').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
setDate: new Date(),
|
||||
readOnly: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
<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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('frequently_asked_questions.export_csv') }}</p>
|
||||
{{ Form::open(['route' => 'frequently_asked_questions.bulk_update','data-toggle'=>'validator']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
{{ Form::submit(__('frequently_asked_questions.save'), ['class'=>'btn btn-success']) }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped success-bordered-table color-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@if(count($frequently_asked_questions) > 0)
|
||||
@foreach($frequently_asked_questions as $question)
|
||||
<tr>
|
||||
{{ Form::hidden('id[]', $question->id) }}
|
||||
<td>{{ $count }}.</td>
|
||||
<td>{{ Form::text('question[]', $question->question,['class'=>'form-control compulsory', 'required']) }}</td>
|
||||
<td>{{ Form::select('module_id[]', $modules, $question->module_id, ['class'=>'form-control select'])}}</td>
|
||||
<td>{{ Form::textarea('answers[]', $question->answer,['class'=>'form-control', 'rows'=>'5']) }}</td>
|
||||
</tr>
|
||||
@php ++$count; @endphp
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
{{ Form::submit(__('frequently_asked_questions.save'), ['class'=>'btn btn-success']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
],
|
||||
pageLength : 100,
|
||||
});
|
||||
|
||||
$('.select').select2();
|
||||
</script>
|
||||
@endpush
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('frequently_asked_questions.index') }}">{{ __('frequently_asked_questions.faq') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
|
||||
{{ Form::model($frequently_asked_question, ['method' => 'PUT', 'route' => ['frequently_asked_questions.update',$frequently_asked_question], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('question', __('frequently_asked_questions.question')) }}
|
||||
{{ Form::text('question', $frequently_asked_question->question, ['class'=>'form-control compulsory','required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('module_id', __('frequently_asked_questions.modules')) }}
|
||||
{{ Form::select('module_id', $modules, $frequently_asked_question->module_id, ['class'=>'form-control', 'id'=>'module_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('answer', __('frequently_asked_questions.answer')) }}
|
||||
{{ Form::textarea('answer', $frequently_asked_question->answer, ['class'=>'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('reference_url', 'Primary Reference URL') }}
|
||||
{{ Form::text('reference_url', $frequently_asked_question->reference_url, ['class'=>'form-control', 'id'=>'reference_url']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('additional_reference_url', 'Secondary Reference URL') }}
|
||||
{{ Form::text('additional_reference_url', $frequently_asked_question->additional_reference_url, ['class'=>'form-control', 'id'=>'additional_reference_url']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
<!-- data time piker dependency -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<!-- -->
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
$('#datepicker-autoclose,#datepicker-autoclose2').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
setDate: new Date(),
|
||||
readOnly: true
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('frequently_asked_questions.export_csv') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped success-bordered-table color-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.question') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.module_category') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.answered') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@if(count($frequently_asked_questions) > 0)
|
||||
@foreach($frequently_asked_questions as $question)
|
||||
<tr>
|
||||
<td>{{ $count }}.</td>
|
||||
<td>{{ (!is_null($question->question) ? $question->question : '') }}</td>
|
||||
<td>{{ (!is_null($question->module_id) ? get_name($question->module_id, 'id', 'name', 'modules') : '') }}</td>
|
||||
<td>
|
||||
@if($question->answer != "")
|
||||
<label class='label label-success'>{{ __('frequently_asked_questions.answere') }}</label>
|
||||
@else
|
||||
<label class='label label-danger'>{{ __('frequently_asked_questions.not_answered') }}</label>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a href="/frequently_asked_questions/{{ $question->id }}/edit/" class="btn btn-warning btn-rounded btn-sm"><i class="fa fa-pencil"></i> {{ __('frequently_asked_questions.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($question->id ,['method' => 'DELETE', 'route' => ['frequently_asked_questions.destroy', $question->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-rounded btn-sm" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('frequently_asked_questions.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@php ++$count; @endphp
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
],
|
||||
pageLength : 100,
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('frequently_asked_questions.search') }}" class="nav-item btn btn-primary" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.search') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.create') }}" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.add_question') }}</span></a>
|
||||
<a href="{{ route('modules.index') }}" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.manage_modules') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.index') }}" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.view_question') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.bulk_edit') }}" class="nav-item btn btn-info" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.edit_all_questions') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.inactive') }}" class="nav-item btn btn-danger" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.inactive_question') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-3 b-r">
|
||||
{{ __('frequently_asked_questions.search_more') }}
|
||||
{{ Form::open(['route'=>'frequently_asked_questions.result', 'data-toggle' => 'validator']) }}
|
||||
<div class="input-group" id="questions">
|
||||
{{ Form::text('question', '', ['class' => 'form-control typeahead', 'required', 'placeholder' => __('frequently_asked_questions.search_for'), 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
||||
<span class="input-group-btn">
|
||||
{{ Form::submit(__('frequently_asked_questions.search'), ['class'=>'btn btn-info']) }}
|
||||
</span>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<img src="{{ asset('uploads/streamline/color/280X50-06.png') }}" style="height: 25px; width: 130px;" alt="home" /><br/><br/>
|
||||
@foreach($questions as $question)
|
||||
<label class="label label-success">{{ __('frequently_asked_questions.question') }}</label>
|
||||
<h3>{{ $question->question }}</h3><br>
|
||||
|
||||
<label class="label label-success">{{ __('frequently_asked_questions.answer') }}</label>
|
||||
<article>
|
||||
{{ $question->answer }}
|
||||
</article>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
{{ __('frequently_asked_questions.related_questions') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/typeahead.js-master/dist/typeahead.bundle.min.js') }}"></script>
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
let substringMatcher = function(strs) {
|
||||
return function findMatches(q, cb) {
|
||||
let matches, substrRegex;
|
||||
|
||||
// an array that will be populated with substring matches
|
||||
matches = [];
|
||||
|
||||
// regex used to determine if a string contains the substring `q`
|
||||
substrRegex = new RegExp(q, 'i');
|
||||
|
||||
// iterate through the pool of strings and for any string that
|
||||
// contains the substring `q`, add it to the `matches` array
|
||||
$.each(strs, function(i, str) {
|
||||
if (substrRegex.test(str)) {
|
||||
matches.push(str);
|
||||
}
|
||||
});
|
||||
|
||||
cb(matches);
|
||||
};
|
||||
};
|
||||
|
||||
$('#questions .typeahead').typeahead(
|
||||
{
|
||||
hint: true,
|
||||
highlight: true,
|
||||
minLength: 1
|
||||
},
|
||||
{
|
||||
name: 'patient_numbers',
|
||||
source: substringMatcher(<?php echo json_encode($faqs); ?>)
|
||||
}
|
||||
);
|
||||
</script>
|
||||
@endpush
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6 offset-3">
|
||||
<h2 style="text-align: center;"><b>Stre@mline {{ __('frequently_asked_questions.faq') }}</b></h2>
|
||||
<br/>
|
||||
{{ Form::open(['route'=>'frequently_asked_questions.result', 'data-toggle' => 'validator']) }}
|
||||
<div class="input-group" id="questions">
|
||||
{{ Form::text('question', '', ['class' => 'form-control typeahead', 'required', 'placeholder' => 'Search for...', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
||||
<span class="input-group-btn">
|
||||
{{ Form::submit(__('frequently_asked_questions.search'), ['class'=>'btn btn-info']) }}
|
||||
</span>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 offset-3 text-center">
|
||||
<h3><b>{{ __('frequently_asked_questions.search_categories') }}</b></h3>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<div class="row">
|
||||
@foreach($modules as $module)
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<div class="white-box">
|
||||
<a href="{{ route('frequently_asked_questions.result', ['module'=>$module->id]) }}">
|
||||
<div class="r-icon-stats">
|
||||
<i class="ti-user bg-megna"></i>
|
||||
<div class="bodystate">
|
||||
<h4>{{ $module->name }}</h4><br/>
|
||||
@php if($questions_per_module[$module->id] > 0){ $color = 'success'; }else{ $color = 'danger'; } @endphp
|
||||
<label class="label label-{{ $color }}">
|
||||
{{ $questions_per_module[$module->id] }}
|
||||
</label>
|
||||
<span class="text-muted" style="margin-left: 10px;">{{ __('frequently_asked_questions.questions_answered') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/typeahead.js-master/dist/typeahead.bundle.min.js') }}"></script>
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
let substringMatcher = function(strs) {
|
||||
return function findMatches(q, cb) {
|
||||
let matches, substrRegex;
|
||||
|
||||
// an array that will be populated with substring matches
|
||||
matches = [];
|
||||
|
||||
// regex used to determine if a string contains the substring `q`
|
||||
substrRegex = new RegExp(q, 'i');
|
||||
|
||||
// iterate through the pool of strings and for any string that
|
||||
// contains the substring `q`, add it to the `matches` array
|
||||
$.each(strs, function(i, str) {
|
||||
if (substrRegex.test(str)) {
|
||||
matches.push(str);
|
||||
}
|
||||
});
|
||||
|
||||
cb(matches);
|
||||
};
|
||||
};
|
||||
|
||||
$('#questions .typeahead').typeahead(
|
||||
{
|
||||
hint: true,
|
||||
highlight: true,
|
||||
minLength: 1
|
||||
},
|
||||
{
|
||||
name: 'patient_numbers',
|
||||
source: substringMatcher(<?php echo json_encode($faqs); ?>)
|
||||
}
|
||||
);
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+96
@@ -0,0 +1,96 @@
|
||||
@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-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-xs-12 col-sm-12 col-md-12">
|
||||
{{-- <h3 class="box-title">{{ __('general_settings.activate_streamline_modules') }}</h3> --}}
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('general_settings.check_streamline_modules_to_activate') }} <span class="float-right">{{ __('roles.check_all') }} <input type="checkbox" id="check-all"></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($permission_categories as $category)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::checkbox('permission_category[]', $category->id, $category->is_module_active == 1 ? true : false, ['class' => "permission_category"]) }}
|
||||
{{ $category->name }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::submit(__('general_settings.activate_streamline_modules'), ["class" => "btn btn-success"])}}
|
||||
|
||||
{{ 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>
|
||||
/* $(document).ready(function(){
|
||||
$('#service_id').select2({});
|
||||
}); */
|
||||
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display == 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
|
||||
$("[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);
|
||||
}
|
||||
});
|
||||
</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') }}</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::text('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']) }}
|
||||
</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.finish'),['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('limited_users_input').value = '';
|
||||
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).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
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
@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-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('general_settings.personal_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.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') }}</font></h3>
|
||||
@endif
|
||||
|
||||
{{ Form::open(['route' => 'personal_settings.save']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card card-outline-secondary text-dark" style="max-height:500px;overflow:auto;">
|
||||
<div class="card-block no-padding">
|
||||
<ul class="feeds">
|
||||
<li id="system_language_setting_list">
|
||||
<div class="bg-info"><i class="fa fa-eye text-white"></i></div>{{ __('general_settings.manage_user_language') }} <i class="fa fa-lg fa-angle-right float-right" style="padding-top: 12.5px;"></i>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div id="no_setting_selected_div">
|
||||
<div class="card card-inverse card-danger text-center text-white">
|
||||
<div class="card-block">
|
||||
<p>{{ __('general_settings.settings_info') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="system_language_div" style="display: none">
|
||||
<h3 class="text-center">{{ __('general_settings.set_personal_system_language') }}</h3>
|
||||
<h4>{{ __('general_settings.description') }}</h4>
|
||||
<div class="card card-inverse card-secondary text-center text-white">
|
||||
<div class="card-block">
|
||||
<p>{{ __('general_settings.set_language_explanation_with_example') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>{{ __('general_settings.options') }}</h4>
|
||||
<div class="card card-outline-secondary text-dark">
|
||||
<div class="card-block">
|
||||
{{ Form::select('system_language', ['1'=>'English', '2' => 'Portuguese', '3' => 'French'] , $general_settings->system_language, ['id'=>'system_language','class'=>'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br><br>
|
||||
|
||||
@if (session()->has('streamline_setup'))
|
||||
{{ Form::button(__('general_settings.finish'),['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>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#service_id').select2({});
|
||||
});
|
||||
|
||||
$('#system_language_setting_list').click(function () {
|
||||
enable_disable_divs("system_language_div");
|
||||
});
|
||||
|
||||
function enable_disable_divs(div_to_enable) {
|
||||
let settings = ['system_language_div'];
|
||||
|
||||
for (const setting of settings){
|
||||
if (setting == div_to_enable) {
|
||||
$('#' + div_to_enable).show();
|
||||
} else {
|
||||
$('#' + setting).hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display == 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
@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>
|
||||
|
||||
@endsection
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
@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>
|
||||
|
||||
<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,183 @@
|
||||
@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>
|
||||
|
||||
<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,48 @@
|
||||
@php
|
||||
$hospital_information = App::make('hospital_information');
|
||||
@endphp
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="white-box" style="height: 100px; padding-top: 5px; background: #d8d8d8;">
|
||||
<a href="{{ $hospital_information->website }}" title="{{ $hospital_information->name }}">
|
||||
<img style="margin: auto; height: 83px;" src="{{ asset($hospital_information->logo) }}" alt="Hospital Logo">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3">
|
||||
<div class="white-box" style="height: 100px; padding-top: 5px; background: #d8d8d8;">
|
||||
<h4><a href="{{ url('http://www.streamlinehealth.org') }}" style="color: green;"><strong>{{ $hospital_information->app_name }}</strong></a></h4>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3"></div>
|
||||
|
||||
<div class="col-sm-3">
|
||||
|
||||
<div class="white-box" style="height: 100px; padding-top: 5px; background: #d8d8d8;">
|
||||
<h5 style="color: green">{{ ucwords(Auth::user()->first_name) . ' ' . ucwords(Auth::user()->last_name) }}</h5>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
@if (session()->has('patient_id'))
|
||||
<a style="background: yellow" class="btn btn-sm" href="/patient_episodes/">{{ __('layout.patient_home') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
@if (session()->has('patient_id'))
|
||||
<a style="background: #b6895e; color: white; text-shadow: none;" class="btn btn-sm" href="/patient_finance/home">{{ __('layout.finance_home') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,226 @@
|
||||
@push('scripts')
|
||||
|
||||
@endpush
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<table class="table table-bordered table-condensed table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('layout.patient_number') }}</th>
|
||||
<th style="color: black">{{ __('layout.patient_names') }}</th>
|
||||
<th style="color: black">{{ __('layout.gender') }}</th>
|
||||
<th style="color: black">{{ __('layout.age') }}</th>
|
||||
<th style="color: black">{{ __('layout.patient_category') }}</th>
|
||||
@if(is_patient_accounts_enabled())<th style="color: black">{{ __('layout.patient_finance_account') }}</th>@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $dob = new Carbon\Carbon($patient->date_of_birth) @endphp
|
||||
<tr>
|
||||
<td>{{ $patient->number }}</td>
|
||||
<td>{!! insurance_flag($patient->id) !!}</td>
|
||||
<td>{{ $patient->gender == 1 ? __('layout.male') : __('layout.female') }}</td>
|
||||
<td>{{ $dob->diffInYears(Carbon\Carbon::now()) }} (yrs)</td>
|
||||
<td>{{ $categories[$patient->category_id] ?? 'N/A' }}</td>
|
||||
@if(is_patient_accounts_enabled())
|
||||
<td>
|
||||
{{ ugandan_shillings($patient->patient_account_balance) }}
|
||||
|
||||
<a href="/patient_accounts/statement/">{{ __('layout.more_details') }}</a>
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="button-box">
|
||||
<a class="img" href="#modal-photo" data-toggle="modal" style="color: whitesmoke">
|
||||
@if(!is_null($patient->photo) && $patient->photo != "")
|
||||
<img src='{{ asset($patient->photo) }}' class="img-rounded center" style='height: 59px; width: 100%' alt='Profile Picture' />
|
||||
@else
|
||||
<img src="/uploads/streamline_images/person-place-holder.jpg" class="img-rounded center" style='height: 59px; width: 50%; margin-right: auto; margin-left: auto; display: block' alt='Person' />
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
<div class="modal fade" id="modal-photo" tabindex="-1" role="dialog" aria-labelledby="modal-photoLabel1">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</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>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">{{ __('layout.close') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#demographicsModal">{{ __('layout.demographics') }}</button>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button type="submit" class="btn btn-success btn-sm show-episode-modal" data-backdrop="static" data-keyboard="false" data-toggle="modal" data-target="#episodeModal">{{ __('layout.new_episode') }}</button>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a class="btn btn-success btn-sm" href="/patient_finance/customer_statement" target="_blank">{{ __('layout.customer_statement') }}</a>
|
||||
</div>
|
||||
@if(Auth::user()->can('pay-all-patient-bills'))
|
||||
<div class="col-md-3">
|
||||
<!-- If you want to uncomment the below function please know the page it leads to is severely out of date -->
|
||||
<!-- <a class="btn btn-success btn-sm" href="/patient_finance/pay_all_patient_bills/{{ $patient_id }}">Central Billing</a> -->
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@php $dob = new Carbon\Carbon($patient->date_of_birth); @endphp
|
||||
<div class="modal fade" id="demographicsModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('layout.patient_details') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.patient_number') }}</th>
|
||||
<td>{{ $patient->number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.patient_names') }}</th>
|
||||
<td>{{ $patient->first_name }} {{ $patient->last_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.gender') }}</th>
|
||||
<td>{{ $patient->gender == 1 ? __('layout.male') : __('layout.female') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.date_of_birth') }}</th>
|
||||
<td>{{ streamline_date($patient->date_of_birth) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.age') }}</th>
|
||||
<td>{{ $dob->diffInYears(Carbon\Carbon::now()) }} {{ __('layout.years') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.residence') }}</th>
|
||||
<td>{{ patient_residence($patient->id) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.marital_status') }}</th>
|
||||
<td>
|
||||
{{ isset($marital_statuses[$patient->marital_status]) ? $marital_statuses[$patient->marital_status] : "N/A" }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.next_of_kin') }}</th>
|
||||
<td>{{ $patient->next_of_kin }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.relationship') }}</th>
|
||||
<td>
|
||||
{{ isset($relationships[$patient->next_of_kin_relationship]) ? $relationships[$patient->next_of_kin_relationship] : "N/A" }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.mobile_number') }}</th>
|
||||
<td>{{ $patient->phone }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.phone_name') }}</th>
|
||||
<td>{{ $patient->phone_owner }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.insurance_status') }}</th>
|
||||
<td>
|
||||
@if($patient->insurance_status == 1)
|
||||
{{ __('layout.insured') }}
|
||||
@else
|
||||
{{ __('layout.not_insured') }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.occupation') }}</th>
|
||||
<td>{{ isset($occupations[$patient->occupation_id]) ? $occupations[$patient->occupation_id] : 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.patient_category') }}</th>
|
||||
<td>{{ isset($patient_categories[$patient->category_id]) ? $patient_categories[$patient->category_id] : 'N/A' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.registered_by') }}</th>
|
||||
<td>{{ get_full_name($patient->created_by, 'id', 'first_name', 'last_name', 'users') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="highlight">{{ __('layout.registered_on') }}</th>
|
||||
<td>
|
||||
{{ streamline_date($patient->created_at) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('layout.close') }}</button>
|
||||
<button type="button" class="btn btn-primary" id="edit_patient" onclick="window.location.href='/patients/{{ $patient->id }}/edit'">{{ __('layout.edit_patient') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- modal that pops up when a new episode is clicked -->
|
||||
<div class="modal fade" id="episodeModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-9" style="margin-top: 5px;">{{ __('layout.begin_episode_for_patient') }}</div>
|
||||
<div class="col-sm-3">
|
||||
{{ Form::open(['route' => 'patient_episodes.create_episode']) }}
|
||||
{{ Form::hidden('patient_id', $patient->id) }}
|
||||
{{ Form::hidden('is_from_finance', 1) }}
|
||||
<button type="submit" class="btn btn-success btn-sm">{{ __('layout.yes') }}</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('layout.cancel') }}</button>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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="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">
|
||||
@endif
|
||||
|
||||
<hr>
|
||||
@@ -0,0 +1,174 @@
|
||||
<!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;">
|
||||
@yield('content')
|
||||
</div>
|
||||
<footer class="footer text-center"> {{ date('Y')}} © Stre@mline {{ __('layout.powered_by') }} Kisiizi Hospital {{ __('layout.and') }} Innovation Streams Ltd - {{ __('layout.version_number') }} - </footer>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 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>
|
||||
<!-- Sparkline chart JavaScript -->
|
||||
<!-- jQuery peity -->
|
||||
<!-- 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();
|
||||
}
|
||||
});
|
||||
|
||||
// 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')
|
||||
<script src="{{ asset('elite/bower_components/styleswitcher/jQuery.style.switcher.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
+504
@@ -0,0 +1,504 @@
|
||||
<!-- Left navbar-header -->
|
||||
<div class="navbar-default sidebar" role="navigation">
|
||||
<div class="sidebar-nav navbar-collapse slimscrollsidebar">
|
||||
<ul class="nav" id="side-menu">
|
||||
|
||||
<li> <a href="{{ route('home') }}" class="waves-effect"><i class="ti-dashboard p-r-10"></i> <span class="hide-menu">{{ __('layout.home') }}</span></a> </li>
|
||||
|
||||
@if(Module::has('Reports') && Module::isEnabled('Reports') && Auth::user()->can('view-dashboard-reports'))
|
||||
<li> <a href="{{ route('reports_dashboard.list') }}" class="waves-effect"><i class="ti-file p-r-10"></i> <span class="hide-menu">{{ __('home.reports_dashboard') }}</span></a> </li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Patients') && Module::isEnabled('Patients') && (Auth::user()->can('patient-create') || Auth::user()->can('patient-list')))
|
||||
<li> <a href="javascript:void(0);" class="waves-effect"><i class="icon-people p-r-10"></i>
|
||||
<span class="hide-menu "> {{ __('layout.patients') }} <span class="fa arrow"></span></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if( Auth::user()->can('patient-create')) <li> <a href="{{ route('patients.create') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.new_patient') }}</a></li> @endif
|
||||
@if( Auth::user()->can('patient-list'))<li><a href="{{ route('patients.index') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.view_patients') }}</a></li> @endif
|
||||
@if( Auth::user()->can('patient-list'))<li><a href="{{ route('patients.follow_up') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.patient_appointments') }}</a></li> @endif
|
||||
@if( Auth::user()->can('patient-appointments-report'))<li><a href="{{ route('patients.patient_appointments_report') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.patient_appointments_report') }}</a></li> @endif
|
||||
@if(Auth::user()->can('view-smart-triage') && is_smart_triage_enabled())<li><a href="{{ route('triage.smart_triage_report') }}"><i class="fa fa-chevron-right"></i> Smart Triage Report</a></li> @endif
|
||||
@if(Auth::user()->can('view-smart-discharge') && is_smart_discharge_enabled())<li><a href="{{ route('post_discharge_risk.view_scores') }}"><i class="fa fa-chevron-right"></i> Post Discharge Risk Scores</a></li> @endif
|
||||
@if(Auth::user()->can('view-inactive-patients'))<li> <a href="{{ route('patients.inactive') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.inactive_patients') }}</a></li> @endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Insurance') && Module::isEnabled('Insurance') && Auth::user()->can('insurance-home') && is_chi_enabled())
|
||||
<li>
|
||||
<a href="javascript:void(0);" class="waves-effect"><i class="fa fa-shield"></i>
|
||||
<span class="hide-menu"> {{ __('layout.CHI_insurance') }} <span class="fa arrow"></span> </span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if (Auth::user()->can('insurance-product-setup'))
|
||||
<li> <a href="{{ route('insurance.product_setup') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.product_set_up') }}</a></li>
|
||||
@endif
|
||||
@if (Auth::user()->can('insurance-scheme-administration'))
|
||||
<li><a href="{{ route('insurance.scheme_administration') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.scheme_administration') }}</a></li>
|
||||
@endif
|
||||
@if (Auth::user()->can('insurance-reports'))
|
||||
<li> <a href="{{ route('insurance.index') }}"> <i class="fa fa-chevron-right"></i> {{ __('layout.chi_report') }}</a></li>
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Patients') && Module::isEnabled('Patients') && Auth::user()->can('view-point-of-sale'))
|
||||
<li> <a href="javascript:void(0);" class="waves-effect"><i class="fa fa-shopping-cart"></i>
|
||||
<span class="hide-menu "> {{ __('layout.point_of_sale') }} <span class="fa arrow"></span></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li> <a href="{{ route('point_of_sale.order_items') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.point_of_sale') }}</a></li>
|
||||
<li><a href="{{ route('point_of_sale.index') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.view_point_of_sale_records') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Investigations') && Module::isEnabled('Investigations') && (Auth::user()->can('investigations-incoming') || Auth::user()->can('investigations-authenticate') ||
|
||||
Auth::user()->can('investigation-results-list') || Auth::user()->can('investigation-results-alter') ||
|
||||
Auth::user()->can('investigations-historical-list') || Auth::user()->can('find a donor') || Auth::user()->can('lab-management')))
|
||||
<li><a href="javascript:void(0);" class="waves-effect"><i class="icon-docs p-r-10"></i>
|
||||
<span class="hide-menu "> Labs <span class="fa arrow"></span></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if( Auth::user()->can('investigations-incoming'))<li><a href="{{ route('investigations.incoming_labs') }}"><i class="fa fa-angle-right"></i> {{ __('layout.incoming_investigations') }}</a></li>@endif
|
||||
@if( Auth::user()->can('investigation-results-list'))<li><a href="{{ route('investigations.view_lab_results') }}"><i class="fa fa-angle-right"></i> {{ __('layout.lab_results') }}</a></li>@endif
|
||||
@if( Auth::user()->can('view-lab-machine-results'))<li><a href="{{ route('lab_machines.view_lab_machine_results') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_lab_instrument_results') }}</a></li>@endif
|
||||
@if( Auth::user()->can('investigations-authenticate'))<li><a href="{{ route('investigations.authenticate_labs') }}"><i class="fa fa-angle-right"></i> {{ __('layout.authenticate_investigations') }}</a></li>@endif
|
||||
@if( Auth::user()->can('investigation-results-alter'))<li><a href="{{ route('investigations.alter_results') }}"><i class="fa fa-angle-right"></i> {{ __('layout.alter_investigations_results') }}</a></li>@endif
|
||||
@if( Auth::user()->can('investigations-historical-list'))<li><a href="{{ route('investigations.historical_labs') }}"><i class="fa fa-angle-right"></i> {{ __('layout.historical_investigations') }}</a></li>@endif
|
||||
@if( Auth::user()->can('find-a-donor'))<li><a href="{{ route('blood_donations.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.find_a_donor') }}</a></li>@endif
|
||||
@if( Auth::user()->can('lab-management'))<li><a href="{{ route('labs.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.labs_management') }}</a></li>@endif
|
||||
@if( Auth::user()->can('lab-management'))<li><a href="{{ route('labs.labs_stock_sheet') }}"><i class="fa fa-angle-right"></i> {{ __('layout.labs_stock_sheet') }}</a></li>@endif
|
||||
@if(Module::has('Stores') && Module::isEnabled('Stores') && Auth::user()->can('requisition-for-lab-sundries'))
|
||||
<li><a href="{{ route('stores.lab_sundries') }}"><i class="fa fa-angle-right"></i> {{ __('layout.requisition_of_sundries') }}</a></li>
|
||||
@endif
|
||||
@if(Module::has('Stores') && Module::isEnabled('Stores') && Auth::user()->can('view-lab-sundries-stock-sheet'))
|
||||
<li><a href="{{ route('stores.lab_sundries_stock_sheet') }}"><i class="fa fa-angle-right"></i> {{ __('layout.lab_sundries_stock_sheet') }}</a></li>
|
||||
@endif
|
||||
@if( Auth::user()->can('lab_specimen-list'))<li><a href="{{ route('laboratory_specimen.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.laboratory_specimens') }}</a></li>@endif
|
||||
@if( Auth::user()->can('cancel-investigation-order'))<li><a href="{{ route('investigations.investigations_to_cancel') }}"><i class="fa fa-angle-right"></i> {{ __('layout.cancel_ordered_investigation') }}</a></li>@endif
|
||||
@if( Auth::user()->can('restore-cancelled-investigation-order'))<li><a href="{{ route('investigations.view_deleted_ordered_invetigations') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_cancelled_ordered_investigations') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Investigations') && Module::isEnabled('Investigations') && (Auth::user()->can('imaging-incoming-radiology') || Auth::user()->can('imaging-incoming-ultrasound') ||
|
||||
Auth::user()->can('imaging-radiology-results') || Auth::user()->can('imaging-ultrasound-results') ||
|
||||
Auth::user()->can('imaging-alter-investigation-results') || Auth::user()->can('imaging-incoming-ultrasound-obstetric')))
|
||||
<li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-camera-retro p-r-10"></i>
|
||||
<span class="hide-menu "> {{ __('layout.imaging') }} <span class="fa arrow"></span></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if(Auth::user()->can('imaging-incoming-radiology') || Auth::user()->can('imaging-radiology-results'))<li><a href="{{ route('investigations.incoming_imaging', "Imaging") }}"><i class="fa fa-angle-right"></i> {{ __('layout.radiology_requests') }}</a></li>@endif
|
||||
@if(Auth::user()->can('imaging-incoming-cardiology') || Auth::user()->can('imaging-cardiology-results'))<li><a href="{{ route('investigations.incoming_imaging', "Cardio") }}"><i class="fa fa-angle-right"></i> {{ __('layout.cardiology_requests') }}</a></li>@endif
|
||||
@if(Auth::user()->can('imaging-incoming-ultrasound') || Auth::user()->can('imaging-ultrasound-results'))<li><a href="{{ route('investigations.incoming_imaging', "Ultrasound") }}"><i class="fa fa-angle-right"></i> {{ __('layout.ultrasound_requests') }}</a></li>@endif
|
||||
@if(Auth::user()->can('imaging-incoming-ultrasound-obstetric') || Auth::user()->can('imaging-ultrasound-obstetric-results'))<li><a href="{{ route('investigations.incoming_imaging', "Ultrasound_Obstetric") }}"><i class="fa fa-angle-right"></i> {{ __('layout.obstetric_ultrasound_requests') }}</a></li>@endif
|
||||
@if( Auth::user()->can('imaging-alter-investigation-results'))<li><a href="{{ route('investigations.alter_results_others') }}"><i class="fa fa-angle-right"></i> {{ __('layout.alter_investigations_results') }}</a></li>@endif
|
||||
@if( Auth::user()->can('imaging-view-historical-results'))<li><a href="{{ route('investigations.imaging_historical_results') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_historical_results') }}</a></li>@endif
|
||||
@if( Auth::user()->can('imaging-echo-cardio-template'))<li><a href="{{ route('investigations.cardio_echo_template') }}"><i class="fa fa-angle-right"></i> {{ __('layout.edit_echo_cardiology_templates') }}</a></li>@endif
|
||||
@if( Auth::user()->can('radiologies-management'))<li><a href="{{ route('radiology.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.radiologies_management') }}</a></li>@endif
|
||||
@if( Auth::user()->can('dentals-management'))<li><a href="{{ route('dentals.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.dentals_management') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Pharmacy') && Module::isEnabled('Pharmacy') && (Auth::user()->can('confirm-prescriptions') || Auth::user()->can('pharmacy-incoming-prescriptions') || Auth::user()->can('pharmacy-ward-dispensing') ||
|
||||
Auth::user()->can('pharmacy-stock-sheet') || Auth::user()->can('create-ward-item-request') || Auth::user()->can('view-incoming-ward-item-requests') || Auth::user()->can('pharmacy-drug-requisition') ||
|
||||
Auth::user()->can('pharmacy-saved-requisitions')))
|
||||
<li><a href="javascript:void(0);" class="waves-effect"><i class="fa fa-camera-retro p-r-10"></i>
|
||||
<span class="hide-menu "> {{ __('layout.pharmacy') }} <span class="fa arrow"></span></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if(is_incoming_prescriptions_feature_enabled())
|
||||
@if( Auth::user()->can('confirm-prescriptions'))<li><a href="{{ route('pharmacy.confirm_prescriptions') }}">{{ __('layout.confirm_prescriptions') }}</a></li>@endif
|
||||
@endif
|
||||
@if( Auth::user()->can('view-progressive-prescriptions'))<li><a href="{{ route('pharmacy.confirm_progressive_prescriptions') }}">{{ __('layout.progressive_treatments') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-incoming-prescriptions'))<li><a href="{{ route('pharmacy.index') }}">{{ __('layout.incoming_prescriptions') }}</a></li>@endif
|
||||
{{-- @if( Auth::user()->can('pharmacy-ward-dispensing'))<li><a href="{{ route('pharmacy.ward_dispensing') }}">{{ __('layout.ward_dispensing') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-ward-dispensing'))<li><a href="{{ route('pharmacy.view_ward_dispensing') }}">{{ __('layout.view_ward_dispensing') }}</a></li>@endif --}}
|
||||
@if( Auth::user()->can('pharmacy-ward-dispensing-per-chart'))<li><a href="{{ route('pharmacy.ward_dispensing_per_chart') }}">{{ __('layout.ward_dispensing_per_chart') }}</a></li>@endif
|
||||
@if( Auth::user()->can('view-incoming-ward-dispensing-per-chart'))
|
||||
<li><a href="{{ url('incoming_ward_charts') }}">{{ __('layout.incoming_ward_charts') }}</a></li>
|
||||
@endif
|
||||
@if( Auth::user()->can('pharmacy-stock-sheet'))<li><a href="{{ route('pharmacy.stock_sheet') }}">{{ __('layout.pharmacy_stock_sheet') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-stock-sheet'))<li><a href="{{ route('pharmacy.sundries_stock_sheet') }}">{{ __('layout.sundries_stock_sheet') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-stock-reconciliation'))<li><a href="{{ route('pharmacy.drugs_stock_reconciliation') }}">{{ __('layout.drugs_stock_reconciliation') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-stock-reconciliation-report'))<li><a href="{{ route('pharmacy.drugs_stock_reconciliation_report') }}">{{ __('layout.drugs_stock_reconciliation_report') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-sundries-stock-reconciliation'))<li><a href="{{ route('pharmacy.sundries_stock_reconciliation') }}">{{ __('layout.sundries_stock_reconciliation') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-sundries-stock-reconciliation-report'))<li><a href="{{ route('pharmacy.sundries_stock_reconciliation_report') }}">{{ __('layout.sundries_stock_reconciliation_report') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-drug-requisition'))<li><a href="{{ route('pharmacy.requisition_for_drugs') }}">{{ __('layout.requisition_for_items') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-saved-requisitions'))<li><a href="{{ route('pharmacy.select_temporary_requisition') }}">{{ __('layout.saved_requisitions') }}</a></li>@endif
|
||||
@if( Auth::user()->can('pharmacy-previous-requisitions'))<li><a href="{{ route('pharmacy.previous_requisitions') }}">{{ __('layout.previous_requisitions') }}</a></li>@endif
|
||||
@if( Auth::user()->can('create-ward-item-request'))<li><a href="{{ route('ward_item_request.ward_item_requests') }}">{{ __('layout.ward_item_request') }}</a></li>@endif
|
||||
@if( Auth::user()->can('view-incoming-ward-item-requests'))<li><a href="{{ route('ward_item_request.incoming_ward_requests') }}">{{ __('layout.incoming_ward_item_request') }}</a></li>@endif
|
||||
@if( Auth::user()->can('view-pharmacy-dispensation-report'))<li><a href="{{ route('pharmacy.pharmacy_dispensation_report_drugs') }}">{{ __('layout.dispensation_report') }}</a></li>@endif
|
||||
@if( Auth::user()->can('cancel-prescription'))<li><a href="{{ route('pharmacy.view_prescriptions_to_cancel') }}">{{ __('layout.cancel_prescriptions') }}</a></li>@endif
|
||||
@if( Auth::user()->can('restore-cancelled-prescription'))<li><a href="{{ route('pharmacy.view_cancelled_prescriptions') }}">{{ __('layout.view_cancelled_prescriptions') }}</a></li>@endif
|
||||
@if( Auth::user()->can('restore-cancelled-prescription'))<li><a href="{{ route('pharmacy.view_cancelled_progressive_prescriptions') }}">{{ __('layout.view_cancelled_progressive_treatments') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('ClinicalData') && Module::isEnabled('ClinicalData') && Auth::user()->can('drug-create','drug-list','drug-delete'))
|
||||
<li><a href="javascript:void(0);" class="waves-effect">
|
||||
<i class="fa fa-medkit"> </i>
|
||||
<span class="hide-menu "> {{ __('layout.drugs') }} <span class="fa arrow"></span></span>
|
||||
<!--<span class="label label-rounded label-danger pull-right">HOT</span></span>-->
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if( Auth::user()->can('drug-create') )
|
||||
<li><a href="{{ route('drugs.create') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.new_drug') }}</a></li>
|
||||
@endif
|
||||
@if( Auth::user()->can('drug-create') )
|
||||
<li><a href="{{ route('drugs.bulk_create') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.add_multiple_drugs') }}</a></li>
|
||||
@endif
|
||||
@if( Auth::user()->can('drug-list') )
|
||||
<li><a href="{{ route('drugs.index') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.view_drugs') }}</a></li>
|
||||
@endif
|
||||
@if( Auth::user()->can('drug-delete') )
|
||||
<li><a href="{{ route('drugs.inactive') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.inactive_drugs') }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@if( Auth::user()->can('drug-list') )
|
||||
<li><a href="{{ route('drugs.index_drugs_expiring') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.expiring_drugs') }}</a></li>
|
||||
@endif
|
||||
@if( Auth::user()->can('drug-list') )
|
||||
<li><a href="{{ route('drugs.index_drugs_low_stock') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.running_out_of_stock') }}</a></li>
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Stores') && Module::isEnabled('Stores') && Auth::user()->can('stores-home') )
|
||||
<li>
|
||||
<a href="{{ route('stores.index') }}" class="waves-effect">
|
||||
<i class="icon-location-pin"></i>
|
||||
<span class="hide-menu"> {{ __('layout.stores') }} </span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('WardManagement') && Module::isEnabled('WardManagement') && (Auth::user()->can('view-ward-drug-stock-sheet') || Auth::user()->can('view-ward-sundry-stock-sheet') || Auth::user()->can('ward-list') || Auth::user()->can('pharmacy-ward-dispensing-per-chart') || Auth::user()->can('create-ward-item-request') || Auth::user()->can('view-incoming-ward-dispensing-per-chart') ||
|
||||
Auth::user()->can('view-incoming-ward-item-requests') || Auth::user()->can('view-ward-drug-stock-sheet') || Auth::user()->can('view-ward-sundry-stock-sheet') || Auth::user()->can('ward-create')))
|
||||
<li>
|
||||
<a href="{{ route('wards.home') }}" class="waves-effect">
|
||||
<i class="fa fa-book"></i>
|
||||
<span class="hide-menu"> {{ __('layout.ward_management') }} </span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if( Auth::user()->can('messageboard-list','messageboard-create','messageboard-delete','messageboard-inactive-list'))
|
||||
<li>
|
||||
<a href="{{ route('messageboard.index') }}" class="waves-effect"><i class="icon-envelope p-r-10"></i>
|
||||
<span class="hide-menu "> {{ __('layout.message_board') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('ClinicalData') && Module::isEnabled('ClinicalData') &&Auth::user()->can('view-clinical-data'))
|
||||
<li>
|
||||
<a href="{{ route('clinical_data.index') }}" class="waves-effect">
|
||||
<i class="fa fa-stethoscope"></i>
|
||||
<span class="hide-menu"> {{ __('layout.clinical_data') }} </span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Theatre') && Module::isEnabled('Theatre') &&Auth::user()->can('view-theatre-management'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect"><i class="fa fa-camera-retro p-r-10"></i> <span class="hide-menu "> {{ __('layout.theatre_management') }}<span
|
||||
class="fa arrow"></span></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if(Auth::user()->can('view-theatre-drugs-stock-sheet'))
|
||||
<li><a href="{{ route('theatre.drugs_stock_sheet') }}">{{ __('layout.theatre_drugs_stock_sheet') }}</a></li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-theatre-sundries-stock-sheet'))
|
||||
<li><a href="{{ route('theatre.sundries_stock_sheet') }}">{{ __('layout.theatre_sundries_stock_sheet') }}</a></li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-theatre-requisitions'))
|
||||
<li><a href="{{ route('ward_item_request.ward_item_requests') }}">{{ __('layout.ward_item_request') }}</a></li>
|
||||
|
||||
<li><a href="{{ url('anaesthesia_report') }}">{{ __('layout.anaesthesia_report') }}</a></li>
|
||||
|
||||
<li><a href="{{ url('surgery_report') }}">{{ __('layout.surgery_report') }}</a></li>
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('ClinicalData') && Module::isEnabled('ClinicalData') && (Auth::user()->can('view-sms-reports') || Auth::user()->can('view-bed-categories') || Auth::user()->can('view-departments') || Auth::user()->can('send-sms') || Auth::user()->can('view-hospital-information') || Auth::user()->can('view-patient-categories') || Auth::user()->can('view-occupations') || Auth::user()->can('view-resource-categories') || Auth::user()->can('view-staff-positions') || Auth::user()->can('view-audit-trail') || Auth::user()->can('view-companies') ||
|
||||
Auth::user()->can('view-donors') || Auth::user()->can('view-banks') || Auth::user()->can('view-suppliers') || Auth::user()->can('view-resources') || Auth::user()->can('view-prescription-errors') || Auth::user()->can('view-patient-payment-methods')))
|
||||
<li><a href="javascript:void(0)" class="waves-effect"><i class="icon-wrench"></i> <span class="hide-menu "> {{ __('layout.admin_custom') }}<span
|
||||
class="fa arrow"></span></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if(Auth::user()->can('view-patient-payment-methods'))
|
||||
<li><a href="/patient_payment_methods/index">{{ __('layout.patient_payment_methods') }}</a></li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-prescription-errors'))
|
||||
<li><a href="/view_prescription_errors/">{{ __('layout.prescription_errors') }}</a></li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-resources'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.resources') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('resources.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_resource') }}</a>
|
||||
</li>
|
||||
<li><a href="{{ route('resources.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_resources') }}</a></li>
|
||||
<li><a href="{{ route('resources.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_resources') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-companies'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.companies_employers') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('companies.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_companies') }}</a>
|
||||
</li>
|
||||
<li><a href="{{ route('companies.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_companies') }}</a></li>
|
||||
<li><a href="{{ route('companies.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_companies') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-suppliers'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.suppliers') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('suppliers.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_supplier') }}</a>
|
||||
</li>
|
||||
<li><a href="{{ route('suppliers.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_suppliers') }}</a></li>
|
||||
<li><a href="{{ route('suppliers.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_suppliers') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-donors'))
|
||||
@if(is_donor_feature_enabled())
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.donors') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('donors.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_donor') }}</a></li>
|
||||
<li><a href="{{ route('donors.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_donors') }}</a></li>
|
||||
<li><a href="{{ route('donors.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_donors') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-audit-trail'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.audit_trail') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('audit_trail.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.audit_trail') }}</a></li>
|
||||
<li><a href="{{ route('audit_trail.select_patient_and_episode') }}"><i class="fa fa-angle-right"></i> {{ __('layout.patient_timeline') }}</a></li>
|
||||
<li><a href="/online_users/"><i class="fa fa-angle-right"></i>{{ __('layout.logged_in_users') }}</a></li>
|
||||
<li><a href="/failed_logins"><i class="fa fa-angle-right"></i>{{ __('layout.failed_logins') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-staff-positions'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.staff_positions') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('staff_positions.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_staff_position') }}</a>
|
||||
</li>
|
||||
<li><a href="{{ route('staff_positions.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_staff_position') }}</a></li>
|
||||
<li><a href="{{ route('staff_positions.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_staff_position') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-resource-categories'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.resource_categories') }} <span
|
||||
class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('resource_categories.create') }}"><i class="fa fa-angle-right"></i>
|
||||
{{ __('layout.add_category') }}</a></li>
|
||||
<li><a href="{{ route('resource_categories.index') }}"><i class="fa fa-angle-right"></i>
|
||||
{{ __('layout.view_categories') }}</a></li>
|
||||
<li><a href="{{ route('resource_categories.inactive') }}"><i class="fa fa-angle-right"></i>
|
||||
{{ __('layout.inactive_categories') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-occupations'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.occupation') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('occupations.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_occupation') }}</a></li>
|
||||
<li><a href="{{ route('occupations.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_occupations') }}</a></li>
|
||||
<li><a href="{{ route('occupations.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_occupations') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Insurance') && Module::isEnabled('Insurance') && Auth::user()->can('person-title-list'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('person_titles.person_titles') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('person_titles.create') }}"><i class="fa fa-angle-right"></i> {{ __('person_titles.add_person_title') }}</a>
|
||||
</li>
|
||||
<li><a href="{{ route('person_titles.index') }}"><i class="fa fa-angle-right"></i> {{ __('person_titles.view_person_title') }}</a></li>
|
||||
<li><a href="{{ route('person_titles.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('person_titles.inactive_person_title') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-patient-categories'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.patient_categories') }} <span
|
||||
class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('patient_categories.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_category') }}</a></li>
|
||||
<li><a href="{{ route('patient_categories.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_categories') }}</a></li>
|
||||
<li><a href="{{ route('patient_categories.inactive') }}"><i class="fa fa-angle-right"></i>{{ __('layout.inactive_categories') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-hospital-information'))
|
||||
<li><a href="/hospital_information/1/edit/">{{ __('layout.hospital_information') }}</a></li>
|
||||
@endif
|
||||
|
||||
@if((Auth::user()->can('send-sms') || Auth::user()->can('view-sms-reports')) && is_sms_enabled())
|
||||
<li><a href="javascript:void(0)" class="waves-effect">SMS <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
@if(Auth::user()->can('send-sms'))<li><a href="{{ route('sms.send_sms') }}"><i class="fa fa-angle-right"></i> {{ __('layout.send_sms') }}</a></li>@endif
|
||||
@if(Auth::user()->can('view-sms-reports'))<li><a href="{{ route('sms.view_sms_reports') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_sms_reports') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-departments'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.departments') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('departments.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_department') }}</a></li>
|
||||
<li><a href="{{ route('departments.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_departments') }}</a></li>
|
||||
<li><a href="{{ route('departments.edit.all') }}"><i class="fa fa-angle-right"></i> {{ __('layout.bulk_edit') }}</a></li>
|
||||
<li><a href="{{ route('departments.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_departments') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('view-bed-categories'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.bed_categories') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li><a href="{{ route('bed_categories.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_bed_category') }}</a></li>
|
||||
<li><a href="{{ route('bed_categories.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_bed_categories') }}</a></li>
|
||||
<li><a href="{{ route('bed_categories.inactive') }}"><i class="fa fa-angle-right"></i>{{ __('layout.activate_bed_categories') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('ClinicalData') && Module::isEnabled('ClinicalData') && (Auth::user()->can('district-create') || Auth::user()->can('district-list') || Auth::user()->can('district-delete') || Auth::user()->can('county-create') ||
|
||||
Auth::user()->can('county-list') || Auth::user()->can('county-delete') || Auth::user()->can('subcounty-create') || Auth::user()->can('subcounty-list') ||
|
||||
Auth::user()->can('subcounty-delete') || Auth::user()->can('parish-create') || Auth::user()->can('parish-list') || Auth::user()->can('parish-delete') ||
|
||||
Auth::user()->can('village-create') || Auth::user()->can('village-list') || Auth::user()->can('village-delete')))
|
||||
<li>
|
||||
<a href="javascript:void(0)" class="waves-effect"><i class="icon-location-pin"></i> <span
|
||||
class="hide-menu "> {{ __('layout.residences') }}<span class="fa arrow"></span></span>
|
||||
</a>
|
||||
@if( Auth::user()->can('district-create') || Auth::user()->can('district-list') || Auth::user()->can('district-delete'))
|
||||
<ul class="nav nav-second-level">
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.districts') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
@if( Auth::user()->can('district-create'))<li><a href="{{ route('districts.create') }}"><i class="fa fa-angle-right"></i> {{ __('layout.add_district') }}</a></li>@endif
|
||||
@if( Auth::user()->can('district-list'))<li><a href="{{ route('districts.index') }}"><i class="fa fa-angle-right"></i> {{ __('layout.view_districts') }}</a></li>@endif
|
||||
@if( Auth::user()->can('district-delete'))<li><a href="{{ route('districts.inactive') }}"><i class="fa fa-angle-right"></i> {{ __('layout.inactive_districts') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if( Auth::user()->can('county-create') || Auth::user()->can('county-list') || Auth::user()->can('county-delete'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.counties') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
@if( Auth::user()->can('county-create'))<li><a href="{{ route('counties.create') }}">{{ __('layout.add_county') }}</a></li>@endif
|
||||
@if( Auth::user()->can('county-list'))<li><a href="{{ route('counties.index') }}">{{ __('layout.view_counties') }}</a></li>@endif
|
||||
@if( Auth::user()->can('county-delete'))<li><a href="{{ route('counties.inactive') }}">{{ __('layout.inactive_counties') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if( Auth::user()->can('subcounty-create') || Auth::user()->can('subcounty-list') || Auth::user()->can('subcounty-delete'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.sub_counties') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
@if( Auth::user()->can('subcounty-create'))<li><a href="{{ route('subcounties.create') }}">{{ __('layout.add_sub_county') }}</a></li>@endif
|
||||
@if( Auth::user()->can('subcounty-list'))<li><a href="{{ route('subcounties.index') }}">{{ __('layout.view_sub_county') }}</a></li>@endif
|
||||
@if( Auth::user()->can('subcounty-delete'))<li><a href="{{ route('subcounties.inactive') }}">{{ __('layout.inactive_sub_counties') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if( Auth::user()->can('parish-create') || Auth::user()->can('parish-list') || Auth::user()->can('parish-delete'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.parishes') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
@if( Auth::user()->can('parish-create'))<li><a href="{{ route('parishes.create') }}">{{ __('layout.add_parish') }}</a></li>@endif
|
||||
@if( Auth::user()->can('parish-list'))<li><a href="{{ route('parishes.index') }}">{{ __('layout.view_parishes') }}</a></li>@endif
|
||||
@if( Auth::user()->can('parish-delete'))<li><a href="{{ route('parishes.inactive') }}">{{ __('layout.inactive_parishes') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if( Auth::user()->can('village-create') || Auth::user()->can('village-list') || Auth::user()->can('village-delete'))
|
||||
<li><a href="javascript:void(0)" class="waves-effect">{{ __('layout.villages') }} <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
@if( Auth::user()->can('village-create'))<li><a href="{{ route('villages.create') }}">{{ __('layout.add_village') }}</a></li>@endif
|
||||
@if( Auth::user()->can('village-list'))<li><a href="{{ route('villages.index') }}">{{ __('layout.view_villages') }}</a></li>@endif
|
||||
@if( Auth::user()->can('village-delete'))<li><a href="{{ route('villages.inactive') }}">{{ __('layout.inactive_villages') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Module::has('Finance') && Module::isEnabled('Finance') && Auth::user()->can('view-finance-home'))
|
||||
<li><a href="javascript:void(0);" class="waves-effect"><i class="ti-money"></i>
|
||||
<span class="hide-menu "> {{ __('layout.finance') }} <span class="fa arrow"></span></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a href="{{ route('finance') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.finance') }}</a>
|
||||
</li>
|
||||
@if(Auth::user()->can('staff-payments-configuration'))
|
||||
<li>
|
||||
<a href="{{ route('staff_payment_configuration.create') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.staff_payments_configuration') }}</a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(Auth::user()->can('change-general-settings') || Auth::user()->can('import-data-csv') || Auth::user()->can('role-create') || Auth::user()->can('role-list') ||
|
||||
Auth::user()->can('users-create') || Auth::user()->can('users-list') || Auth::user()->can('staff-payments-configuration') || Auth::user()->hasRole('Super Admin'))
|
||||
<li><a href="javascript:void(0);" class="waves-effect"><i class="icon-wrench"></i>
|
||||
<span class="hide-menu "> {{ __('layout.settings') }} <span class="fa arrow"></span></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
@if( Auth::user()->can('change-general-settings'))<li> <a href="{{ route('general_settings.edit') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.general_settings') }}</a></li>@endif
|
||||
@if( Auth::user()->can('change-personal-settings'))<li> <a href="{{ route('personal_settings.edit') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.personal_settings') }}</a></li>@endif
|
||||
@if( Auth::user()->can('import-data-csv'))<li> <a href="{{ route('data_extraction.select_data_type') }}"><i class="fa fa-chevron-right"></i> Import Clinical Data</a></li>@endif
|
||||
@if( Auth::user()->can('users-create'))<li> <a href="{{ route('users.create') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.new_user') }}</a></li>@endif
|
||||
@if( Auth::user()->can('users-list'))<li> <a href="{{ route('users.index') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.manage_users') }}</a></li>@endif
|
||||
@if( Auth::user()->can('role-create'))<li> <a href="{{ route('roles.create') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.new_role') }}</a></li> @endif
|
||||
@if( Auth::user()->can('role-list'))<li> <a href="{{ route('roles.index') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.manage_roles') }}</a></li>@endif
|
||||
@if( Auth::user()->hasRole('Super Admin'))<li> <a href="{{ route('general_settings.active_users_limit_settings') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.limit_number_of_active_users') }}</a></li>@endif
|
||||
@if( Auth::user()->hasRole('Super Admin'))<li> <a href="{{ route('streamline_modules.activate') }}"><i class="fa fa-chevron-right"></i> {{ __('layout.activate_streamline_modules') }}</a></li>@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<li><a href="{{ route('logout') }}"
|
||||
onclick="event.preventDefault(); document.getElementById('logout-form').submit();"
|
||||
class="waves-effect"><i class="icon-logout fa-fw"></i> <span class="hide-menu">{{ __('layout.sign_out') }}</span></a>
|
||||
</li>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
{{ csrf_field() }}
|
||||
</form>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Left navbar-header end
|
||||
@@ -0,0 +1,70 @@
|
||||
@php
|
||||
$hospital_information = \Streamline\Models\HospitalInformation::first();
|
||||
@endphp
|
||||
<nav class="navbar navbar-default navbar-static-top m-b-0">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-toggle hidden-sm hidden-md hidden-lg " href="javascript:void(0)" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<i class="ti-menu"></i>
|
||||
</a>
|
||||
|
||||
<div class="top-left-part" style="background-color: white">
|
||||
<a class="logo" href="{{ route('home') }}">
|
||||
<b>
|
||||
<img src="{{ asset('uploads/streamline/color/60X60-06.png') }}" style="height: 45px; width: 45px;" alt="home" />
|
||||
</b>
|
||||
<span class="hidden-xs"><img src="{{ asset('uploads/streamline/color/280X50-06.png') }}" style="height: 25px; width: 130px;" alt="home" /></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="nav navbar-top-links navbar-left hidden-xs">
|
||||
<li><a href="javascript:void(0)" class="open-close-custom hidden-xs waves-effect waves-light" 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="">
|
||||
</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')))
|
||||
<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') }} </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>
|
||||
@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>
|
||||
@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>
|
||||
<ul class="dropdown-menu dropdown-user animated flipInY">
|
||||
<li><a href="{{ route('users.show',Auth::user()->id) }}"><i class="ti-eye"></i> {{ __('layout.view_profile') }}</a></li>
|
||||
<li><a href="{{ route('users.edit',Auth::user()->id) }}"><i class="ti-user"></i> {{ __('layout.edit_profile') }}</a></li>
|
||||
<li><a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><i class="fa fa-power-off"></i> {{ __('layout.sign_out') }}</a></li>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
{{ csrf_field() }}
|
||||
</form>
|
||||
</ul>
|
||||
</li>
|
||||
@if(Auth::user()->can('manage-frequently-asked-questions'))
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#">
|
||||
<i class="fa fa-question-circle"></i>
|
||||
<b class="hidden-xs">{{ __('layout.help') }}</b>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-user animated flipInY">
|
||||
<li><a href="{{ route('frequently_asked_questions.index') }}"> {{ __('layout.frequently_asked_question') }}</a></li>
|
||||
<li><a target="_blank" a href="https://support.streamlinehealth.org/"> {{ __('layout.streamline_support_system') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -0,0 +1,72 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.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">{{ __('message_board.add_message') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('message_board.dashboard') }}</a></li>
|
||||
<li><a href="/messageboard/index">{{ __('message_board.messages') }}</a></li>
|
||||
<li class="active">{{ __('message_board.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
|
||||
@include('messageboard.menu')
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'messageboard.store', 'data-toggle' => 'validator', 'files' => true]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('body', __('message_board.message')) }}
|
||||
{{ Form::textArea('body', '', ['class' => 'textarea_editor form-control compulsory', 'id' => 'mymce', 'required', 'rows' => 5]) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('photo', __('message_board.image')) }}
|
||||
{{ Form::file('photo', null) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('message_board.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('message_board.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>
|
||||
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/tinymce/tinymce.min.js') }}"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
if ($("#mymce").length > 0) {
|
||||
tinymce.init({
|
||||
selector: "textarea#mymce",
|
||||
theme: "modern",
|
||||
height: 200,
|
||||
plugins: [
|
||||
"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
|
||||
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
|
||||
"save table contextmenu directionality emoticons template paste textcolor"
|
||||
],
|
||||
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons",
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,75 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.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">{{ __('message_board.edit_message') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('message_board.dashboard') }}</a></li>
|
||||
<li><a href="/messageboard/index">{{ __('message_board.messages') }}</a></li>
|
||||
<li class="active">{{ __('message_board.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
@include('flash::message')
|
||||
|
||||
@include('messageboard.menu')
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::model($message, ['method' => 'PUT', 'route' => ['messageboard.update',$message], 'data-toggle' => 'validator', 'files' => true]) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('body', __('message_board.message')) }}
|
||||
{{ Form::textArea('body', $message->body, ['class' => 'textarea_editor form-control compulsory', 'id' => 'mymce', 'required', 'rows' => 5]) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('photo', __('message_board.image')) }}
|
||||
{{ Form::file('photo', null) }}
|
||||
{{ Form::text('current_photo', $message->photo, ['class' => 'form-control', 'hidden']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('message_board.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('message_board.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>
|
||||
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/tinymce/tinymce.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/tinymce/tinymce.min.js') }}"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
if ($("#mymce").length > 0) {
|
||||
tinymce.init({
|
||||
selector: "textarea#mymce",
|
||||
theme: "modern",
|
||||
height: 200,
|
||||
plugins: [
|
||||
"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
|
||||
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
|
||||
"save table contextmenu directionality emoticons template paste textcolor"
|
||||
],
|
||||
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons",
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,96 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('message_board.activate_messages') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('message_board.dashboard') }}</a></li>
|
||||
<li><a href="/messageboard/index">{{ __('message_board.messages') }}</a></li>
|
||||
<li class="active">{{ __('message_board.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('messageboard.menu')
|
||||
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('message_board.date') }}</th>
|
||||
<th>{{ __('message_board.message') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('message_board.date') }}</th>
|
||||
<th>{{ __('message_board.message') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($messages as $message)
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$date = $message->created_at;
|
||||
$create_date = date_create($date);
|
||||
$new_date = date_format($create_date, 'jS M y \a\t g:ia');
|
||||
?>
|
||||
{{ $new_date }}
|
||||
</td>
|
||||
<td>{{ strip_tags($message->body) }}</td>
|
||||
<td>
|
||||
{{ Form::model($message->id ,['method' => 'POST', 'route' => ['messageboard.activate', $message->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('message_board.are_you_sure');?>')"><i class="fa fa-check"></i> {{ __('message_board.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,99 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('message_board.messages') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('message_board.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('message_board.messages') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
|
||||
@include('messageboard.menu')
|
||||
|
||||
<div class="white-box" style="border-radius: 10px;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('message_board.date') }}</th>
|
||||
<th>{{ __('message_board.message') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('message_board.date') }}</th>
|
||||
<th>{{ __('message_board.message') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($messages as $message)
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$date = $message->created_at;
|
||||
$create_date = date_create($date);
|
||||
$new_date = date_format($create_date, 'jS M y \a\t g:ia');
|
||||
?>
|
||||
{{ $new_date }}
|
||||
</td>
|
||||
<td>{{ strip_tags($message->body) }}</td>
|
||||
<td>
|
||||
<a href="/messageboard/{{ $message->id }}/edit/" class="btn btn-warning btn-rounded"><i class="fa fa-pencil"></i>
|
||||
<span style="margin-left: 10px;">{{ __('message_board.edit') }}</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($message->id ,['method' => 'DELETE', 'route' => ['messageboard.destroy', $message->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-danger" onclick="return confirm('<?php echo __('message_board.are_you_sure');?>')"><i class="fa fa-trash"></i>
|
||||
<span style="margin-left: 10px;">{{ __('message_board.delete') }}</span>
|
||||
</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
order: [ [0, 'desc'] ],
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="panel panel-default" style="border-radius: 5px;">
|
||||
<div class="panel-body">
|
||||
@if(Auth::user()->can('messageboard-create'))
|
||||
<a href="{{ route('messageboard.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('message_board.add_message') }}</span></a>
|
||||
@endif
|
||||
@if(Auth::user()->can('messageboard-list'))
|
||||
<a href="{{ route('messageboard.index') }}" class="nav-item btn btn-warning"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('message_board.messages') }}</span></a>
|
||||
@endif
|
||||
@if(Auth::user()->can('messageboard-inactive-list'))
|
||||
<a href="{{ route('messageboard.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('message_board.activate_messages') }}</span></a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,118 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">{{ __('frequently_asked_questions.faq') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
||||
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faq_module') }}</a></li>
|
||||
<li class="active">{{ __('frequently_asked_questions.add_faq_module') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('frequently_asked_questions.menu')
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<h3><b>{{ __('frequently_asked_questions.modules') }}</b></h3>
|
||||
{{ Form::open(['route' => 'modules.store', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('frequently_asked_questions.module_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('frequently_asked_questions.save_module'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<p class="text-muted m-b-30">{{ __('frequently_asked_questions.export_csv') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped success-bordered-table color-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.name') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.created_by') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('frequently_asked_questions.name') }}</th>
|
||||
<th>{{ __('frequently_asked_questions.created_by') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@if(count($modules) > 0)
|
||||
@foreach($modules as $module)
|
||||
<tr>
|
||||
<td>{{ $count }}.</td>
|
||||
<td>{{ (!is_null($module->name) ? $module->name : '') }}</td>
|
||||
<th>{{ get_full_name($module->created_by, 'id', 'first_name', 'last_name', 'users') }}</th>
|
||||
{{-- <td>--}}
|
||||
{{-- <a href="/frequently_asked_questions/{{ $question->id }}/edit/" class="btn btn-warning btn-rounded btn-sm"><i class="fa fa-pencil"></i> Edit</a>--}}
|
||||
{{-- </td>--}}
|
||||
<td>
|
||||
{{ Form::model($module->id ,['method' => 'DELETE', 'route' => ['modules.destroy', $module->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-rounded btn-sm" onclick="return confirm('Are you sure?')"><i class="fa fa-trash"></i> {{ __('frequently_asked_questions.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@php ++$count; @endphp
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
],
|
||||
pageLength : 100,
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('modules.create') }}" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.add_module') }}</span></a>
|
||||
<a href="{{ route('frequently_asked_questions.index') }}" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.manage_questions') }}</span></a>
|
||||
<a href="{{ route('modules.index') }}" class="nav-item btn btn-warning" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 5px">{{ __('frequently_asked_questions.view_modules') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', __('permissions.add_permission'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class='col-lg-4 col-lg-offset-4'>
|
||||
|
||||
<h1><i class='fa fa-key'></i> {{ __('permissions.add_permission') }}</h1>
|
||||
<br>
|
||||
|
||||
{{ Form::open(array('url' => 'permissions')) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('permissions.permission_name')) }}
|
||||
{{ Form::text('name', '', array('class' => 'form-control')) }}
|
||||
</div><br>
|
||||
@if(!$roles->isEmpty())
|
||||
<h4>{{ __('permissions.assign_permission_to_roles') }}</h4>
|
||||
|
||||
@foreach ($roles as $role)
|
||||
{{ Form::checkbox('roles[]', $role->id ) }}
|
||||
{{ Form::label($role->name, ucfirst($role->name)) }}<br>
|
||||
|
||||
@endforeach
|
||||
@endif
|
||||
<br>
|
||||
{{ Form::submit(__('permissions.add'), array('class' => 'btn btn-success')) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,24 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', __('permissions.edit_permission'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class='col-lg-4 col-lg-offset-4'>
|
||||
|
||||
<h1><i class='fa fa-key'></i> {{ __('permissions.edit') }} {{$permission->name}}</h1>
|
||||
<br>
|
||||
{{ Form::model($permission, array('route' => array('permissions.update', $permission->id), 'method' => 'PUT')) }}{{-- Form model binding to automatically populate our fields with permission data --}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('permissions.permission_name')) }}
|
||||
{{ Form::text('name', null, array('class' => 'form-control')) }}
|
||||
</div>
|
||||
<br>
|
||||
{{ Form::submit(__('permissions.edit'), array('class' => 'btn btn-success')) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('title', __('permissions.permissions'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="col-lg-10 col-lg-offset-1">
|
||||
<h1><i class="fa fa-key"></i>{{ __('permissions.available_permissions') }}
|
||||
|
||||
<a href="{{ route('users.index') }}" class="btn btn-default pull-right">{{ __('permissions.users') }}</a>
|
||||
<a href="{{ route('roles.index') }}" class="btn btn-default pull-right">{{ __('permissions.roles') }}</a></h1>
|
||||
<hr>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('permissions.permissions') }}</th>
|
||||
<th>{{ __('permissions.operation') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($permissions as $permission)
|
||||
<tr>
|
||||
<td>{{ $permission->name }}</td>
|
||||
<td>
|
||||
<a href="{{ URL::to('permissions/'.$permission->id.'/edit') }}" class="btn btn-info pull-left" style="margin-right: 3px;">{{ __('permissions.edit') }}</a>
|
||||
|
||||
{{ Form::open(['method' => 'DELETE', 'route' => ['permissions.destroy', $permission->id] ]) }}
|
||||
{{ Form::submit(__('permissions.delete'), ['class' => 'btn btn-danger']) }}
|
||||
{{ Form::close() }}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a href="{{ URL::to('permissions/create') }}" class="btn btn-success">{{ __('permissions.add_permission') }}</a>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,179 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.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">{{ __('roles.new_role') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('roles.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('roles.index') }}">{{ __('roles.roles') }}</a></li>
|
||||
<li class="active">{{ __('roles.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<!-- .row -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
<div>@include('flash::message')</div>
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
{{ __('roles.input_error') }}<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="white-box">
|
||||
{!! Form::open(array('route' => 'roles.store','method'=>'POST')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name',__('roles.name_of_role')) }}
|
||||
{{ Form::text('name',null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<!--<div class="form-group">-->
|
||||
<h3 class="box-title">{{ __('roles.permissions') }}</h3>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table table-sm">
|
||||
|
||||
@foreach($categories as $category)
|
||||
<thead>
|
||||
<tr>
|
||||
<th># {{ __('roles.assign') }}</th>
|
||||
<th>{{ $category->name }} <span class="float-right">{{ __('roles.check_all') }} <input type="checkbox" id="check-all{{ $category->id }}"></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@php
|
||||
$permissions = Streamline\Models\PermissionCategory::find($category->id)->permissions;
|
||||
@endphp
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item list-group-item-success"><input type="checkbox" id="" class="viewing{{$category->id}}"> {{ __('roles.viewing') }} </li>
|
||||
<li class="list-group-item list-group-item-success"><input type="checkbox" id="" class="creating{{$category->id}}"> {{ __('roles.creating') }} </li>
|
||||
<li class="list-group-item list-group-item-info"><input type="checkbox" id="" class="editing{{$category->id}}"> {{ __('roles.editing') }}</li>
|
||||
<li class="list-group-item list-group-item-danger"><input type="checkbox" id="" class="deleting{{$category->id}}"> {{ __('roles.deleting') }}</li>
|
||||
<li class="list-group-item list-group-item-warning"><input type="checkbox" id="" class="othering{{$category->id}}"> {{ __('roles.other') }}</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@foreach($permissions->chunk(3) AS $permission)
|
||||
<div class="row">
|
||||
@foreach($permission as $item)
|
||||
<div class="col-sm-4">
|
||||
|
||||
{{ Form::checkbox('permission[]', $item->id, false, array('class' => "permission{$category->id} {$item->crud}{$category->id}")) }}
|
||||
{{ $item->description }} <br>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
<!--</div>-->
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<hr>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
{{ Form::button(__('roles.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('roles.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$('document').ready(function () {
|
||||
|
||||
$("[id^=check-all]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if ($('.permission' + id).is(':checked')) {
|
||||
$('.permission' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.permission' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=viewing]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.view' + id).is(':checked')) {
|
||||
$('.view' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.view' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=creating]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.create' + id).is(':checked')) {
|
||||
$('.create' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.create' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=editing]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.edit' + id).is(':checked')) {
|
||||
$('.edit' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.edit' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=deleting]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.delete' + id).is(':checked')) {
|
||||
$('.delete' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.delete' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=othering]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.other' + id).is(':checked')) {
|
||||
$('.other' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.other' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush('scripts')
|
||||
|
||||
+240
@@ -0,0 +1,240 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-4 col-md-5 col-sm-5 col-xs-12">
|
||||
<h4 class="page-title">{{ __('roles.edit_role') }} - {!! $role->name !!}</h4>
|
||||
</div>
|
||||
<div class="col-lg-8 col-sm-7 col-md-7 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('roles.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('roles.index') }}">{{ __('roles.roles') }}</a></li>
|
||||
<li class="active">{{ __('roles.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
<div>@include('flash::message')</div>
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
{{ __('roles.input_error') }}<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="white-box">
|
||||
{{ Form::model($role, ['method' => 'PATCH','route' => ['roles.update', $role->id]]) }}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name',__('roles.name_of_role')) }}
|
||||
{{ Form::text('name',null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<h3 class="box-title">{{ __('roles.permissions') }}</h3>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table table-sm">
|
||||
|
||||
@foreach($categories as $category)
|
||||
<thead>
|
||||
<tr>
|
||||
<th># {{ __('roles.assign') }}</th>
|
||||
<th>{{ $category->name }} <span class="float-right">{{ __('roles.check_all') }} <input type="checkbox" id="check-all{{ $category->id }}"></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@php
|
||||
$permissions = Streamline\Models\PermissionCategory::find($category->id)->permissions;
|
||||
@endphp
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item list-group-item-success"><input type="checkbox" id="" class="viewing{{$category->id}}"> {{ __('roles.viewing') }} </li>
|
||||
<li class="list-group-item list-group-item-success"><input type="checkbox" id="" class="creating{{$category->id}}"> {{ __('roles.creating') }} </li>
|
||||
<li class="list-group-item list-group-item-info"><input type="checkbox" id="" class="editing{{$category->id}}"> {{ __('roles.editing') }}</li>
|
||||
<li class="list-group-item list-group-item-danger"><input type="checkbox" id="" class="deleting{{$category->id}}"> {{ __('roles.deleting') }}</li>
|
||||
<li class="list-group-item list-group-item-warning"><input type="checkbox" id="" class="othering{{$category->id}}"> {{ __('roles.other') }}</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@foreach($permissions->chunk(3) AS $permission)
|
||||
<div class="row">
|
||||
@foreach($permission as $item)
|
||||
<div class="col-sm-4">
|
||||
{{ Form::checkbox('permission[]', $item->id, in_array($item->id, $rolePermissions), array('class' => "permission{$category->id} {$item->crud}{$category->id}")) }}
|
||||
{{ $item->description }}<a href="#" data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ $item->long_description }}" onclick="edit_permission_description('{{ $item->id }}', '{{ $item->description }}', '{{ $item->long_description }}')"> <i class="fa fa-info-circle"></i></a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
{{ Form::button(__('roles.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('roles.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
<div class="modal fade" id="modal_edit_permission" tabindex="-1" role="dialog">
|
||||
<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">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">Edit Permission Description</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label>Permission Name</label>
|
||||
<input class="form-control compulsory" id="permission_name" name="permission_name" type="text" readonly/>
|
||||
<input id="permission_id" name="permission_id" type="hidden"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Permission Description</label>
|
||||
<input class="form-control compulsory" id="permission_desc" name="permission_desc" type="text"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('patients.cancel') }}</button>
|
||||
<a class="btn btn-success" onclick="submit_permission_description()">{{ __('patients.save') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$('document').ready(function () {
|
||||
|
||||
$("[id^=check-all]").on('click', function () {
|
||||
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if ($('.permission' + id).is(':checked')) {
|
||||
$('.permission' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.permission' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=viewing]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.view' + id).is(':checked')) {
|
||||
$('.view' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.view' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=creating]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.create' + id).is(':checked')) {
|
||||
$('.create' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.create' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=editing]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.edit' + id).is(':checked')) {
|
||||
$('.edit' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.edit' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=deleting]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.delete' + id).is(':checked')) {
|
||||
$('.delete' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.delete' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
$("[class^=othering]").on('click', function () {
|
||||
var id = /\d+(?=\D*$)/.exec($(this).attr('class'));
|
||||
|
||||
if ($('.other' + id).is(':checked')) {
|
||||
$('.other' + id).removeAttr('checked');
|
||||
} else {
|
||||
$('.other' + id).prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function edit_permission_description(id, name, description) {
|
||||
$('#permission_name').val(name);
|
||||
$('#permission_id').val(id);
|
||||
$('#permission_desc').val(description);
|
||||
|
||||
$('#modal_edit_permission').modal('show');
|
||||
}
|
||||
|
||||
function submit_permission_description() {
|
||||
let permission_id = $("#permission_id").val();
|
||||
let permission_desc = $("#permission_desc").val();
|
||||
|
||||
if (permission_desc === "") {
|
||||
alert("Please make sure that you fill in a permission description");
|
||||
return false;
|
||||
}
|
||||
|
||||
let data = {'permission_id':permission_id, 'permission_desc':permission_desc};
|
||||
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
url: '/roles/edit_permission_desc',
|
||||
data: data,
|
||||
success: function(response){
|
||||
if(response == 1){
|
||||
// reload the page
|
||||
window.location.reload();
|
||||
} else {
|
||||
alert("An error occurred");
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
alert("error occurred");
|
||||
console.log(JSON.stringify(jqXHR));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@endpush('scripts')
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
@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">{{ __('roles.list_roles') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('roles.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('roles.index') }}">{{ __('roles.roles') }}</a></li>
|
||||
<li class="active">{{ __('roles.list_roles') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
<!-- .row -->
|
||||
<div class="white-box">
|
||||
<!--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
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('roles.role_name') }}</th>
|
||||
<th>{{ __('roles.users') }}</th>
|
||||
<th>{{ __('roles.permissions') }}</th>
|
||||
<th width="280px">{{ __('roles.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($roles as $key => $role)
|
||||
<tr>
|
||||
<td>{{ ++$i }}</td>
|
||||
<td>{{ $role->name }}</td>
|
||||
<td>
|
||||
{{ $role->users_count }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $role->permissions_count }}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-sm btn-rounded btn-info" href="{{ route('roles.show',$role->id) }}"><i class="fa fa-info-circle"></i> {{ __('roles.details') }}</a>
|
||||
<?php // @can('role-edit') ?>
|
||||
<a class="btn btn-sm btn-warning btn-rounded" href="{{ route('roles.edit',$role->id) }}"><i class="fa fa-pencil"></i> {{ __('roles.edit') }}</a>
|
||||
<?php // @endcan ?>
|
||||
<?php // @can('role-delete') ?>
|
||||
{!! Form::open(['method' => 'DELETE','route' => ['roles.destroy', $role->id],'style'=>'display:inline']) !!}
|
||||
{!! Form::submit(__('roles.delete'), ['class' => 'btn btn-sm btn-rounded btn-danger']) !!}
|
||||
{!! Form::close() !!}
|
||||
<?php // @endcan ?>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</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 __('roles.roles');?>',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
},
|
||||
{extend: 'excel',
|
||||
message: '<?php echo __('roles.roles');?>',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
sheetName: '<?php echo __('roles.roles');?>'
|
||||
},
|
||||
{extend: 'pdf',
|
||||
message: '<?php echo __('roles.roles');?>',
|
||||
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 __('roles.roles');?>',
|
||||
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
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-8">
|
||||
<h4 class="page-title">Permissions given to users with role of {{ $role->name }}</h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('roles.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('roles.index') }}">{{ __('roles.roles') }}</a></li>
|
||||
<li class="active">{{ __('roles.role_detail') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<div>@include('flash::message')</div>
|
||||
|
||||
@foreach($rolePermissions->chunk(6) as $permissions)
|
||||
<div class="row">
|
||||
@foreach($permissions as $permission)
|
||||
<div class="col-md-2">
|
||||
<h4><b>{{ $permission['description'] }}</b></h4>
|
||||
<br>
|
||||
<p>{{ $permission['long_description'] }}</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
@endforeach
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
@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-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">Send SMS</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a class="active"> SMS</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'sms.send_sms']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label("sms_option", "SMS Option") }}
|
||||
{{ Form::select("sms_option", $sms_group, '', ['class' => 'form-control', 'id' => 'sms_option']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" id="option_grouping" style="display: none">
|
||||
<div class="form-group">
|
||||
{{ Form::label("option_grouping", "Option Grouping") }}
|
||||
{{ Form::select("patient_groups", $patient_groups, '', ['class' => 'form-control', 'id' => 'patient_groups', 'style' => 'display:none']) }}
|
||||
{{ Form::select("user_groups", $user_groups, '', ['class' => 'form-control', 'id' => 'user_groups', 'style' => 'display:none']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" id="option_search" style="display: none">
|
||||
<div class="form-group">
|
||||
{{ Form::label("option_search", "Option Search") }}
|
||||
{{ Form::select("patient_groups_search", $patient_categories, '', ['class' => 'form-control', 'id' => 'patient_groups_search', 'style' => 'display:none']) }}
|
||||
{{ Form::select("user_position_search", $user_positions, '', ['class' => 'form-control', 'id' => 'user_position_search', 'style' => 'display:none']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br>
|
||||
{{ Form::submit('Submit', ['class' => 'btn btn-success']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<h3><span class="label label-info">{{ $search_text }}</span></h3>
|
||||
|
||||
{{ Form::open(['route' => 'sms.process_sms']) }}
|
||||
{{ Form::hidden('selected_send_option', $selected_send_option) }}
|
||||
|
||||
@if($selected_send_option == 1 || $selected_send_option == 2)
|
||||
{{ Form::hidden('valid_patients', json_encode($valid_patients)) }}
|
||||
{{ Form::hidden('category_position_id', $category_position_id) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>Total number of patients</b></td>
|
||||
<td>{{ $total_patients_no }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>Number of patients with valid contacts</b></td>
|
||||
<td>{{ count($valid_patients) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
@if(count($valid_patients) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('sms_message', 'SMS Message') }}
|
||||
{{ Form::textarea('sms_message', '', ['class' => 'form-control', 'rows' => '3', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('comment', 'Comment') }}
|
||||
{{ Form::textarea('comment', '', ['class' => 'form-control', 'rows' => '3']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if($selected_send_option == 3 || $selected_send_option == 4)
|
||||
{{ Form::hidden('valid_users', json_encode($valid_users)) }}
|
||||
{{ Form::hidden('category_position_id', $category_position_id) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>Total number of staff</b></td>
|
||||
<td>{{ $total_users_no }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>Number of staff with valid contacts</b></td>
|
||||
<td>{{ count($valid_users) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
@if(count($valid_users) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('sms_message', 'SMS Message') }}
|
||||
{{ Form::textarea('sms_message', '', ['class' => 'form-control', 'rows' => '3', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('comment', 'Comment') }}
|
||||
{{ Form::textarea('comment', '', ['class' => 'form-control', 'rows' => '3']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if($selected_send_option != 0 && (count($valid_patients) > 0 || count($valid_users) > 0))
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10 submit-btn']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
@endif
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$('#sms_option').change(function (e) {
|
||||
$('#patient_groups_search').hide();
|
||||
$('#user_position_search').hide();
|
||||
$('#option_search').hide();
|
||||
|
||||
if (this.value == 1) {
|
||||
$('#option_grouping').show();
|
||||
$('#user_groups').hide();
|
||||
$('#patient_groups').show();
|
||||
} else if (this.value == 2) {
|
||||
$('#option_grouping').show();
|
||||
$('#patient_groups').hide();
|
||||
$('#user_groups').show();
|
||||
} else if (this.value == 3) {
|
||||
$('#option_grouping').hide();
|
||||
$('#patient_groups').hide();
|
||||
$('#user_groups').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('#user_groups').change(function (e) {
|
||||
if (this.value == 2) {
|
||||
$('#option_search').show();
|
||||
$('#user_position_search').show();
|
||||
} else {
|
||||
$('#option_search').hide();
|
||||
$('#user_position_search').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('#patient_groups').change(function (e) {
|
||||
if (this.value == 2) {
|
||||
$('#option_search').show();
|
||||
$('#patient_groups_search').show();
|
||||
} else {
|
||||
$('#option_search').hide();
|
||||
$('#patient_groups_search').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,113 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.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">View SMS Reports</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">SMS</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'sms.view_sms_reports' , 'data-toggle' => 'validator']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-1"></div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', 'Date From') }}
|
||||
{{ Form::text('start_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'start_date']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', 'Date To') }}
|
||||
{{ Form::text('end_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'end_date']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<br>
|
||||
{{ Form::button('Search',['type'=>'submit','class'=>'btn btn-rounded btn-success waves-effect waves-light m-r-10']) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<h4><span class="label label-info">{{ $search_text }}</span></h4>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>To all patients</b></td>
|
||||
<td>{{ $sms_sent_to_all_patients }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>To all staff</b></td>
|
||||
<td>{{ $sms_sent_to_all_users }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Custom Messages</b></td>
|
||||
<td>{{ $sms_sent_to_custom }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Alerts from investigations</b></td>
|
||||
<td>{{ $sms_sent_for_investigation_results }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>To patient categories</b></td>
|
||||
<td>{{ $sms_sent_to_patient_categories }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>According to staff positions</b></td>
|
||||
<td>{{ $sms_sent_to_user_positions }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Alerts from patient appointments</b></td>
|
||||
<td>{{ $sms_sent_for_patient_appointments }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Total Sent</b></td>
|
||||
<td>{{ $total_sms_sent }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#start_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
$('#end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,222 @@
|
||||
@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/custom-select/custom-select.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('js/password-strength-check/password-check.css') }}" rel="stylesheet" type="text/css" />
|
||||
<!--<link href=" asset('elite/bower_components/multiselect/css/multi-select.css') " rel="stylesheet" type="text/css" />-->
|
||||
<style type="text/css">
|
||||
.pin{
|
||||
-webkit-text-security: square;
|
||||
-moz-text-security:square;
|
||||
text-security:square;
|
||||
}
|
||||
</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.new_user') }}</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.register') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
@include('users.menu')
|
||||
|
||||
<!-- .row -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
<div>@include('flash::message')</div>
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
{{ __('users.add_user_error') }}<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'users.store','id'=>'register','method'=>'POST','enctype'=>'multipart/form-data','data-toggle'=>'validator','autocomplete'=>'off']) }}
|
||||
{{ csrf_field() }}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('first_name',__('users.first_name')) }}
|
||||
{{ Form::text('first_name','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('last_name',__('users.last_name')) }}
|
||||
{{ Form::text('last_name','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('phone',__('users.phone_number')) }}
|
||||
{{ Form::text('phone','',['class' => 'form-control','data-mask'=>"0799 999 999"]) }}
|
||||
<span class="font-13 text-muted">(07xx) 123-456</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('email',__('users.email_address')) }}
|
||||
{{ Form::email('email','',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('position_id',__('users.position')) }}
|
||||
{{ Form::select('position_id',$positions,'',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('photo',__('users.photo')) }}
|
||||
{{ Form::file('photo',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label("council_registration",__('users.any_council_registration')) }}<br>
|
||||
{{ Form::radio('council_registration',1,'',['class'=>'council_radio', 'required']) }} {{ __('users.yes') }}
|
||||
{{ Form::radio('council_registration',0,'',['class'=>'council_radio', 'required']) }} {{ __('users.no') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('council_id',__('users.council_name')) }}
|
||||
{{ Form::select('council_id',$councils,'',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('registration_number',__('users.registration_number')) }}
|
||||
{{ Form::text('registration_number','',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('expiry_date',__('users.expiry_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('expiry_date',null,['class' => 'form-control datepicker','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
{{ Form::label('blood_group_id',__('users.blood_group')) }}
|
||||
{{ Form::select('blood_group_id',$blood_groups,'',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label("willing_to_donate",__('users.are_willing_to_donate')) }}<br>
|
||||
{{ Form::radio('willing_to_donate',1, ['required']) }} {{ __('users.yes') }}
|
||||
{{ Form::radio('willing_to_donate',0, ['required']) }} {{ __('users.no') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('last_donation_date',__('users.when_last_donation')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('last_donation_date','',['class' => 'form-control datepicker','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('roles[]',__('users.roles_on_streamline')) }}
|
||||
{{ Form::select('roles[]',$roles,[],['class' => 'roles compulsory select2 m-b-10 select2-multiple', 'multiple','data-placeholder'=>'- select role -']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('username',__('users.username')) }}
|
||||
{{ Form::text('username','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('password',__('users.password')) }}
|
||||
{{ Form::password('password',['class' => 'form-control compulsory']) }}
|
||||
<span id="result"></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('password_confirm',__('users.confirm_password')) }}
|
||||
{{ Form::password('password_confirmation',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pin',__('users.secret_pin')) }}
|
||||
{{ Form::number('pin',null,['class' => 'form-control pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_question_id',__('users.security_question')) }}
|
||||
{{ Form::select('security_question_id',$security_questions,'',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_answer',__('users.security_answer')) }}
|
||||
{{ Form::text('security_answer','',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-8"><hr></div>
|
||||
<div class="col-md-4">
|
||||
{{ Form::button(__('users.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('users.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/mask.js') }}"></script>
|
||||
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/custom-select/custom-select.min.js') }}"></script>
|
||||
<!--<script type="text/javascript" src=" asset('elite/bower_components/multiselect/js/jquery.multi-select.js')"></script>-->
|
||||
|
||||
<script type="text/javascript">
|
||||
$('document').ready(function () {
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
$('.council_radio').click(function (){
|
||||
|
||||
if ($(this).val() === '1'){
|
||||
$('.council_hide').show()
|
||||
}
|
||||
else{
|
||||
$('.council_hide').hide();
|
||||
}
|
||||
|
||||
});
|
||||
// For multiselect
|
||||
$('.roles').select2();
|
||||
// $('.roles').multiSelect();
|
||||
// $('.roles').multiSelect({
|
||||
// selectableOptgroup: true
|
||||
// });
|
||||
});</script>
|
||||
|
||||
<script type="text/javascript" src="{{ asset('js/password-strength-check/password-check.js') }}"></script>
|
||||
@endpush
|
||||
+216
@@ -0,0 +1,216 @@
|
||||
@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/custom-select/custom-select.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('js/password-strength-check/password-check.css') }}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<style type="text/css">
|
||||
.pin{
|
||||
-webkit-text-security: square;
|
||||
-moz-text-security:square;
|
||||
text-security:square;
|
||||
}
|
||||
</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.edit_user') }}</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.edit_user') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
@include('users.menu')
|
||||
|
||||
<!-- .row -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!--Flash messages at the top -->
|
||||
<div>@include('flash::message')</div>
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
{{ __('users.add_user_error') }}<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="white-box">
|
||||
{{ Form::model($user, ['method' => 'PATCH','id'=>'register','enctype'=>'multipart/form-data','autocomplete'=>'off','route' => ['users.update', $user->id]]) }}
|
||||
|
||||
{{ csrf_field() }}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('first_name',__('users.first_name')) }}
|
||||
{{ Form::text('first_name',null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('last_name',__('users.last_name')) }}
|
||||
{{ Form::text('last_name',null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('phone',__('users.phone_number')) }}
|
||||
{{ Form::text('phone',null,['class' => 'form-control','data-mask'=>"0799 999 999"]) }}
|
||||
<span class="font-13 text-muted">(07xx) 123-456</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('email',__('users.email_address')) }}
|
||||
{{ Form::email('email',null,['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('position_id',__('users.position')) }}
|
||||
{{ Form::select('position_id',$positions,null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('photo',__('users.photo')) }}
|
||||
{{ Form::file('photo',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label("council_registration",__('users.any_council_registration')) }}<br>
|
||||
{{ Form::radio('council_registration',1,null,['class'=>'council_radio']) }} {{ __('users.yes') }}
|
||||
{{ Form::radio('council_registration',0,null,['class'=>'council_radio']) }} {{ __('users.no') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('council_id',__('users.council_name')) }}
|
||||
{{ Form::select('council_id',$councils,null,['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('registration_number',__('users.registration_number')) }}
|
||||
{{ Form::text('registration_number',null,['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group council_hide" style="display: none;">
|
||||
{{ Form::label('expiry_date',__('users.expiry_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('expiry_date',null,['class' => 'form-control datepicker','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('blood_group_id',__('users.blood_group')) }}
|
||||
{{ Form::select('blood_group_id',$blood_groups,null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label("willing_to_donate",__('users.are_willing_to_donate')) }}<br>
|
||||
{{ Form::radio('willing_to_donate',1,true) }} {{ __('users.yes') }}
|
||||
{{ Form::radio('willing_to_donate',0,false) }} {{ __('users.no') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('last_donation_date',__('users.when_last_donation')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('last_donation_date',null,['class' => 'form-control datepicker','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(Auth::user()->can('edit-users-role'))
|
||||
<div class="form-group">
|
||||
{{ Form::label('roles[]',__('users.roles_on_streamline')) }}
|
||||
{{ Form::select('roles[]',$roles,$userRole,['class' => 'compulsory roles select2 m-b-10 select2-multiple', 'multiple']) }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('username',__('users.username')) }}
|
||||
{{ Form::text('username',null,['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('password',__('users.password')) }}
|
||||
{{ Form::password('password',['class' => 'form-control']) }}
|
||||
<span id="result"></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('password_confirm',__('users.confirm_password')) }}
|
||||
{{ Form::password('password_confirmation',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('pin',__('users.secret_pin')) }}
|
||||
{{ Form::number('pin',null,['class' => 'form-control compulsory pin','placeholder'=>'eg 12345','maxlength'=>'5','minlength'=>'5']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_question_id',__('users.security_question')) }}
|
||||
{{ Form::select('security_question_id',$security_questions,null,['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('security_answer',__('users.security_answer')) }}
|
||||
{{ Form::text('security_answer',null,['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-8"><hr></div>
|
||||
<div class="col-md-4">
|
||||
{{ Form::button(__('users.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('users.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/mask.js') }}"></script>
|
||||
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset('elite/bower_components/custom-select/custom-select.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
jQuery('.datepicker').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
$('document').ready(function () {
|
||||
$('.council_radio').click(function () {
|
||||
$(this).val() === '1' ? $('.council_hide').show() : $('.council_hide').hide();
|
||||
});
|
||||
$('.roles').select2();
|
||||
});</script>
|
||||
|
||||
<script type="text/javascript" src="{{ asset('js/password-strength-check/password-check.js') }}"></script>
|
||||
@endpush
|
||||
|
||||
@@ -0,0 +1,230 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
|
||||
<style>
|
||||
th,
|
||||
td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
</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">Failed Logins</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('audit_trail.dashboard') }}</a></li>
|
||||
<li class="active">Failed Logins</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('audit_trail.menu')
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'audit_trail.failed_logins_search']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('date_range', __('audit_trail.select_the_date')) }}
|
||||
<select class="form-control compulsory required" name="dates" id="dates" required>
|
||||
<option value="ALL">{{ __('audit_trail.all_dates') }}</option>
|
||||
<option value="today" selected>{{ __('audit_trail.today') }}</option>
|
||||
<option value="yesterday">{{ __('audit_trail.yesterday') }}</option>
|
||||
<option value="week">{{ __('audit_trail.last_7') }}</option>
|
||||
<option value="month">{{ __('audit_trail.last_30') }}</option>
|
||||
<option value="custom-date">{{ __('audit_trail.custom_date') }}</option>
|
||||
<option value="custom-range">{{ __('audit_trail.date_range') }}</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="display: none;" id="start-date-div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('audit_trail.date_from')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id'
|
||||
=> 'datepicker-from']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="display: none;" id="end-date-div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('audit_trail.date_to')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id' =>
|
||||
'datepicker-to']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
{{ Form::button(__('audit_trail.search'), ['type' => 'submit', 'class' => 'btn btn-success waves-effect
|
||||
waves-light m-r-10']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-10"></div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@if(count($failed_logins) > 0)
|
||||
<div class="row" style="float: right;">
|
||||
<div class="col-sm-3">
|
||||
{{ Form::open(['method'=>'post','route' => 'failed_login_print']) }}
|
||||
{{ Form::hidden('data', json_encode($failed_logins)) }}
|
||||
{{ Form::submit('Print', ['style' => 'float: right;', 'class'=>'btn btn-success btn-success']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No.</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>IP Address</th>
|
||||
<th>Time & Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; @endphp
|
||||
@foreach($failed_logins as $failed_login)
|
||||
@php
|
||||
$date = Carbon\Carbon::parse($failed_login->created_at);
|
||||
$now = Carbon\Carbon::now();
|
||||
$user = Streamline\Models\User::where('id', $failed_login->user_id)->select('first_name',
|
||||
'last_name')->first();
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $user->first_name }} {{ $user->last_name }}</td>
|
||||
<td>{{ $failed_login->email_address }}</td>
|
||||
<td>{{ $failed_login->ip_address }}</td>
|
||||
<td>{{ streamline_date_time($failed_login->created_at) }} ({{ $date->diffForHumans() }})
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ $failed_logins->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function hide(id) {
|
||||
document.getElementById(id).style.display = 'none';
|
||||
}
|
||||
|
||||
function show(id) {
|
||||
if (document.getElementById(id).style.display === 'none') {
|
||||
document.getElementById(id).style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
$('#datepicker-from, #datepicker-to').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy',
|
||||
});
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
buttons: [{
|
||||
extend: 'copy',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Failed Logins'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Failed Logins'
|
||||
},
|
||||
{
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Failed Logins'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Failed Logins'
|
||||
}
|
||||
]
|
||||
});
|
||||
$('#dates').change(function() {
|
||||
var val = $(this).val();
|
||||
switch (val) {
|
||||
case 'custom-date':
|
||||
$('#end-date-div').hide();
|
||||
$('#start-date-div').show();
|
||||
break;
|
||||
case 'custom-range':
|
||||
$('#end-date-div').show();
|
||||
$('#start-date-div').show();
|
||||
break;
|
||||
default:
|
||||
$('#end-date-div').hide();
|
||||
$('#start-date-div').hide();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$('.user_id,.action_performed,.records_affected').select2({
|
||||
placeholder: "-select-"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,89 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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.inactive_users') }}</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.inactive') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('users.menu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('users.users') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>{{ __('users.users') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@foreach($users as $user)
|
||||
<tr>
|
||||
<td>{{ $user->first_name }} {{ $user->last_name }}</td>
|
||||
<td>
|
||||
{{ Form::model($user->id ,['method' => 'POST', 'route' => ['users.activate', $user->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('<?php echo __('users.are_you_sure');?>')"><i class="fa fa-check"></i> {{ __('users.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
@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>
|
||||
{!! Form::open(['method' => 'DELETE','route' => ['users.destroy', $user->id],'style'=>'display:inline']) !!}
|
||||
{!! Form::submit(__('users.delete'), ['class' => 'btn btn-danger btn-sm']) !!}
|
||||
{!! Form::close() !!}
|
||||
</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
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="{{ route('users.create') }}" class="nav-item btn btn-default ti-plus"> {{ __('users.new_user') }}</a>
|
||||
<a href="{{ route('users.index') }}" class="nav-item btn btn-default ti-pencil"> {{ __('users.view_users') }}</a>
|
||||
<a href="{{ route('users.inactive') }}" class="nav-item btn btn-default ti-pencil"> {{ __('users.inactive_users') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,219 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
|
||||
<style>
|
||||
th,
|
||||
td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
</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">Online Users</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('audit_trail.dashboard') }}</a></li>
|
||||
<li class="active">Online Users</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
@include('audit_trail.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@if(count($users) > 0)
|
||||
<div class="row" style="float: right;">
|
||||
<div class="col-sm-3">
|
||||
{{ Form::open(['method'=>'post','route' => 'online_user_print']) }}
|
||||
{{ Form::hidden('data', json_encode($users)) }}
|
||||
{{ Form::submit('Print', ['style' => 'float: right;', 'class'=>'btn btn-success btn-success']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
{{ Form::open(['route' => 'audit_trail.online_users_search']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('date_range', __('audit_trail.select_the_date')) }}
|
||||
<select class="form-control compulsory required" name="dates" id="dates" required>
|
||||
<option value="ALL">{{ __('audit_trail.all_dates') }}</option>
|
||||
<option value="today" selected>{{ __('audit_trail.today') }}</option>
|
||||
<option value="yesterday">{{ __('audit_trail.yesterday') }}</option>
|
||||
<option value="week">{{ __('audit_trail.last_7') }}</option>
|
||||
<option value="month">{{ __('audit_trail.last_30') }}</option>
|
||||
<option value="custom-date">{{ __('audit_trail.custom_date') }}</option>
|
||||
<option value="custom-range">{{ __('audit_trail.date_range') }}</option>
|
||||
</select>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="display: none;" id="start-date-div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('audit_trail.date_from')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id'
|
||||
=> 'datepicker-from']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="display: none;" id="end-date-div">
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('audit_trail.date_to')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id' =>
|
||||
'datepicker-to']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::button(__('audit_trail.search'), ['type' => 'submit', 'class' => 'btn btn-success waves-effect
|
||||
waves-light m-r-10']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9"></div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$counter = 1;
|
||||
@endphp
|
||||
@foreach($users as $user)
|
||||
@php
|
||||
$now = \Carbon\Carbon::now();
|
||||
$check_online_status = \Carbon\Carbon::parse($user->last_seen)->diffInDays(\Carbon\Carbon::parse($now));
|
||||
@endphp
|
||||
@if($check_online_status == 0)
|
||||
<tr>
|
||||
<td>{{ $user->id }}</td>
|
||||
<td>{{ $user->first_name }} {{ $user->last_name }}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>
|
||||
@if(Cache::has('user-is-online-' . $user->id))
|
||||
<span class="badge badge-success">Online</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ $users->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#datepicker-from, #datepicker-to').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy',
|
||||
});
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
buttons: [{
|
||||
extend: 'copy',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
},
|
||||
{
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4]
|
||||
},
|
||||
title: 'Audit Trail'
|
||||
}
|
||||
]
|
||||
});
|
||||
$('#dates').change(function() {
|
||||
|
||||
var val = $(this).val();
|
||||
switch (val) {
|
||||
case 'custom-date':
|
||||
$('#end-date-div').hide();
|
||||
$('#start-date-div').show();
|
||||
break;
|
||||
case 'custom-range':
|
||||
$('#end-date-div').show();
|
||||
$('#start-date-div').show();
|
||||
break;
|
||||
default:
|
||||
$('#end-date-div').hide();
|
||||
$('#start-date-div').hide();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
$('.user_id,.action_performed,.records_affected').select2({
|
||||
placeholder: "-select-"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,135 @@
|
||||
<!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="">
|
||||
<link rel="icon" type="assetimage/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name') }}</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">
|
||||
<!-- 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/megna.css') }}" id="theme" rel="stylesheet">
|
||||
|
||||
<!-- Streamline - custom -->
|
||||
<link href="{{ asset('css/streamline-custom.css') }}" id="theme" rel="stylesheet">
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Preloader -->
|
||||
<div class="preloader">
|
||||
<div class="cssload-speeding-wheel"></div>
|
||||
</div>
|
||||
<section id="wrapper" class="login-register" style="background:url(../../uploads/login/login-register1.jpg) center center/cover no-repeat!important;">
|
||||
<div class="login-box login-sidebar" style="width: 550px;">
|
||||
<div class="white-box">
|
||||
<!--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
|
||||
|
||||
<div class="panel-heading"><b>{{ __('users.password_expired') }}</b></div>
|
||||
|
||||
<div class="panel-body">
|
||||
@if (session('error'))
|
||||
<div class="alert alert-danger">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@if (session('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
@if (session('message'))
|
||||
<div class="alert alert-info">
|
||||
{{ session('message') }}
|
||||
</div>
|
||||
@endif
|
||||
<form class="form-horizontal" method="POST" action="{{ route('passwordExpiration') }}">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<div class="form-group{{ $errors->has('current-password') ? ' has-error' : '' }}">
|
||||
<label for="new-password" class="col-md-4 control-label">{{ __('users.current_password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="current-password" type="password" class="form-control" name="current-password" required>
|
||||
|
||||
@if ($errors->has('current-password'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('current-password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('new-password') ? ' has-error' : '' }}">
|
||||
<label for="new-password" class="col-md-4 control-label">{{ __('users.new_password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="new-password" type="password" class="form-control" name="new-password" required>
|
||||
|
||||
@if ($errors->has('new-password'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('new-password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="new-password-confirm" class="col-md-4 control-label">{{ __('users.confirm_new_password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="new-password-confirm" type="password" class="form-control" name="new-password_confirmation" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-md-offset-4">
|
||||
<button type="submit" class="btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light">
|
||||
{{ __('users.change_password') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- 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>
|
||||
</body>
|
||||
</html>
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
<!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="">
|
||||
<link rel="icon" type="assetimage/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name') }}</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">
|
||||
<!-- 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/megna.css') }}" id="theme" rel="stylesheet">
|
||||
|
||||
<!-- Streamline - custom -->
|
||||
<link href="{{ asset('css/streamline-custom.css') }}" id="theme" rel="stylesheet">
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Preloader -->
|
||||
<div class="preloader">
|
||||
<div class="cssload-speeding-wheel"></div>
|
||||
</div>
|
||||
<section id="wrapper" class="login-register">
|
||||
<div class="login-box login-sidebar">
|
||||
<div class="white-box">
|
||||
<!--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
|
||||
<form class="form-horizontal form-material" id="loginform" method="POST" action="{{ route('auth.reset') }}">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<a href="javascript:void(0)" class="text-center db">
|
||||
<img src="{{ asset('uploads/logo/kags.png') }}" alt="Home" /><br/>
|
||||
</a>
|
||||
|
||||
{{ csrf_field() }}
|
||||
<div class="form-group ">
|
||||
<div class="col-xs-12">
|
||||
<h3>{{ __('users.reset_password') }}</h3>
|
||||
<p class="text-muted">{{ __('users.please_enter_pwd') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<div class="col-xs-12">
|
||||
<input type="hidden" value="<?php echo $id ?>" name="id">
|
||||
<input class="form-control compulsory" value="<?php echo $username ?>" readonly name="full_name" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<div class="col-xs-12">
|
||||
<input class="form-control compulsory" name="password" type="password" required minlength="6">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<div class="col-xs-12">
|
||||
<input class="form-control compulsory" name="password_confirm" type="password" required minlength="6">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group text-center m-t-20">
|
||||
<div class="col-xs-12">
|
||||
<button class="btn btn-success btn-lg btn-block text-uppercase waves-effect waves-light" type="submit">{{ __('users.reset') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- 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>
|
||||
</body>
|
||||
</html>
|
||||
+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>{{ array_key_exists($user->position_id, $positions) ? $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">{{ 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 -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
<!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">
|
||||
|
||||
<title>Stre@mline</title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<!--<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">-->
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
color: #636b6f;
|
||||
font-family: 'Raleway', sans-serif;
|
||||
font-weight: 100;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.full-height {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.position-ref {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.top-right {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 18px;
|
||||
}
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 84px;
|
||||
}
|
||||
|
||||
.links > a {
|
||||
color: #636b6f;
|
||||
padding: 0 25px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .1rem;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.m-b-md {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-center position-ref full-height">
|
||||
@if (Route::has('login'))
|
||||
<div class="top-right links">
|
||||
@auth
|
||||
<a href="{{ url('/home') }}">Home</a>
|
||||
@else
|
||||
<a href="{{ route('login') }}">Login</a>
|
||||
<a href="{{ route('register') }}">Register</a>
|
||||
@endauth
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="content">
|
||||
<div class="title m-b-md">
|
||||
Stre@mline
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user