updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -0,0 +1,107 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/icheck/skins/all.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">{{ __('symptoms.add_symptom') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('symptoms.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('symptoms.clinical_data_home') }}</a></li>
<li><a href="{{ route('symptoms.index') }}">{{ __('symptoms.symptoms') }}</a></li>
<li class="active">{{ __('symptoms.create') }}</li>
</ol>
</div>
</div>
@include('clinical_data::symptoms.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::open(['route' => 'symptoms.store', 'data-toggle' => 'validator']) }}
<div class="row">
<div class="col-sm-6">
<div class="form-group">
{{ Form::label('name', __('symptoms.symptom')) }}
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('prompts', __('symptoms.prompt')) }}
{{ Form::textArea('prompts', '', ['class' => 'form-control', 'rows' => 5]) }}
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
{{ Form::label('reference_text', __('symptoms.reference_area')) }}
<div class="row">
<div class="col-sm-4">
{{ Form::text('reference_text[]', '', ['class'=>'form-control', 'placeholder' => 'reference name']) }}
</div>
<div class="col-sm-8">
{{ Form::url('reference_link[]', '', ['class'=>'form-control', 'placeholder' => 'eg http://www.google.com']) }}
</div>
<div class="col-sm-12 input_fields_wrap"></div>
<div class="col-sm-12"><a class="add_field_button" style="color: blue;">{{ __('symptoms.add_more') }}</a></div>
</div>
</div>
<div class="form-group">
{{ Form::label('', __('symptoms.is_symptom_available'), ["class"=>'col-md-12']) }}
&nbsp;{{ __('symptoms.yes') }} {{ Form::radio('available', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
&nbsp;{{ __('symptoms.no') }} {{ Form::radio('available', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
<div class="help-block with-errors"></div>
</div>
</div>
</div>
{{ Form::button(__('symptoms.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
{{ Form::button(__('symptoms.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
<!-- icheck -->
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
<script type="text/javascript">
$(document).ready(function () {
var max_fields = 4; //maximum input boxes allowed
var wrapper = $(".input_fields_wrap"); //Fields wrapper
var add_button = $(".add_field_button"); //Add button ID
var x = 1; //initlal text box count
$(add_button).click(function (e) { //on add input button click
e.preventDefault();
if (x < max_fields) { //max input box allowed
x++; //text box increment
$(wrapper).append('<div class="row"><br><br><br><div class="col-sm-4"><input type="text" class="form-control" placeholder="Reference name" name="reference_text[]"/></div>' +
'<div class="col-sm-7"><input type="url" placeholder="eg http://www.google.com" class="form-control" name="reference_link[]"/></div>'
+ '<a href="#" class="remove_field" style="color: maroon"><sup>X</sup></a></div>'); //add input box
}
});
$(wrapper).on("click", ".remove_field", function (e) { //user click on remove text
e.preventDefault();
$(this).parent('div').remove();
x--;
})
});
</script>
@endpush
@@ -0,0 +1,73 @@
@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/icheck/skins/all.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">{{ __('symptoms.edit_symptom') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('symptoms.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('symptoms.clinical_data_home') }}</a></li>
<li><a href="{{ route('symptoms.index') }}">{{ __('symptoms.symptoms') }}</a></li>
<li class="active">{{ __('symptoms.edit') }}</li>
</ol>
</div>
</div>
@include('clinical_data::symptoms.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::model($symptom, ['method' => 'PUT', 'route' => ['symptoms.update',$symptom] , 'data-toggle' => 'validator']) }}
<div class="form-group">
{{ Form::label('name', __('symptoms.symptom')) }}
{{ Form::text('name', $symptom->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('prompts', __('symptoms.prompt')) }}
{{ Form::textArea('prompts', $symptom->prompts, ['class' => 'form-control', 'rows' => 5]) }}
</div>
<div class="form-group">
{{ Form::label('reference_text', __('symptoms.reference_text')) }}
{{ Form::textArea('reference_text', $symptom->reference_text, ['class'=>'form-control', 'rows' => 5]) }}
</div>
<div class="form-group">
{{ Form::label('reference_link', __('symptoms.reference_link')) }}
{{ Form::url('reference_link', $symptom->reference_link, ['class'=>'form-control', 'rows' => 5, 'placeholder' => 'eg http://www.google.com']) }}
</div>
<div class="form-group">
{{ Form::label('', __('symptoms.is_symptom_available'), ["class"=>'col-md-12']) }}
&nbsp;{{ __('symptoms.yes') }} {{ Form::radio('available', 1, $symptom->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
&nbsp;{{ __('symptoms.no') }} {{ Form::radio('available', 0, $symptom->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
<div class="help-block with-errors"></div>
</div>
{{ Form::button(__('symptoms.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
{{ Form::button(__('symptoms.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
<!-- icheck -->
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
@endpush
@@ -0,0 +1,103 @@
@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">{{ __('symptoms.edit_all_symptoms') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('symptoms.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('symptoms.clinical_data_home') }}</a></li>
<li><a href="{{ route('symptoms.index') }}">{{ __('symptoms.symptoms') }}</a></li>
<li class="active">{{ __('symptoms.edit_all_symptoms') }}</li>
</ol>
</div>
</div>
@include('clinical_data::symptoms.menu')
<div class="row">
<div class="col-sm-12">
<!--Flash messages at the top -->
@include('flash::message')
<div class="white-box">
{{ Form::model($symptoms, ['method' => 'ANY', 'route' => ['symptoms.update_all'], 'data-toggle' => 'validator']) }}
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th hidden>{{ __('symptoms.id') }}</th>
<th>{{ __('symptoms.symptom') }}</th>
<th>{{ __('symptoms.prompt') }}</th>
<th>{{ __('symptoms.reference_text') }}</th>
<th>{{ __('symptoms.reference_link') }}</th>
</tr>
</thead>
<tfoot>
<tr>
<th hidden>{{ __('symptoms.id') }}</th>
<th>{{ __('symptoms.symptom') }}</th>
<th>{{ __('symptoms.prompt') }}</th>
<th>{{ __('symptoms.reference_text') }}</th>
<th>{{ __('symptoms.reference_link') }}</th>
</tr>
</tfoot>
<tbody>
@foreach($symptoms as $symptom)
<tr>
<td hidden>{{ Form::text('id[]', $symptom->id, ['class' => 'form-control']) }}</td>
<td>
<p style="display: none">{{ $symptom->name }}</p>
{{ Form::text('name[]', $symptom->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</td>
<td>{{ Form::textArea('prompts[]', $symptom->prompts, ['class' => 'form-control', 'rows' => 2]) }}</td>
<td>{{ Form::textArea('reference_text[]', $symptom->reference_text, ['class' => 'form-control', 'rows' => 2]) }}</td>
<td>{{ Form::textArea('reference_link[]', $symptom->reference_link, ['class' => 'form-control', 'rows' => 2]) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{ Form::button(__('symptoms.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('symptoms.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@include('clinical_data::symptoms.menu')
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.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',
pageLength: 100,
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush
@@ -0,0 +1,110 @@
@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">{{ __('symptoms.activate_symptoms') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('symptoms.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('symptoms.clinical_data_home') }}</a></li>
<li><a href="{{ route('symptoms.index') }}">{{ __('symptoms.symptoms') }}</a></li>
<li class="active">{{ __('symptoms.inactive') }}</li>
</ol>
</div>
</div>
@include('clinical_data::symptoms.menu')
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<!--
<div class="row">
{{ Form::open(['route' => 'symptoms.search', 'method' => 'ANY', 'role' => 'search']) }}
<div class="col-md-9">
<div class="form-group">
{{ Form::hidden('query_active', 0, ['class' => 'form-control']) }}
{{ Form::text('query_name', '', ['class' => 'form-control col-md-3', 'placeholder' => 'Search Symptoms']) }}
</div>
</div>
<div class="col-md-3">
<div class="form-group">-->
<!--<i class="fa fa-search"></i>-->
<!--{{ Form::submit('Search', ['class'=>'btn btn-default pull-right']) }}-->
<!--</div>-->
<!--</div>-->
<!--{{ Form::close() }}-->
<!--</div>-->
<p class="text-muted m-b-30">{{ __('symptoms.export_data_to_copy_csv_pdf_print') }}</p>
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table table-hover table-striped">
<thead>
<tr>
<th>{{ __('symptoms.symptom') }}</th>
<th>{{ __('symptoms.prompt') }}</th>
<th>{{ __('symptoms.reference_text') }}</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>{{ __('symptoms.symptom') }}</th>
<th>{{ __('symptoms.prompt') }}</th>
<th>{{ __('symptoms.reference_text') }}</th>
<th></th>
</tr>
</tfoot>
<tbody>
@foreach($symptoms as $symptom)
<tr>
<td>{{ $symptom->name }}</td>
<td>{{ $symptom->prompts }}</td>
<td>{{ $symptom->reference_text }}</td>
<td>
{{ Form::model($symptom->id ,['method' => 'POST', 'route' => ['symptoms.activate', $symptom->id]]) }}
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('<?php echo __('symptoms.are_you_sure')?>')"><i class="fa fa-check"></i> {{ __('symptoms.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,150 @@
@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">{{ __('symptoms.symptoms') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('symptoms.dashboard') }}</a></li>
<li><a href="{{ route('clinical_data.index') }}">{{ __('symptoms.clinical_data_home') }}</a></li>
<li><a href="{{ route('symptoms.index') }}">{{ __('symptoms.symptoms') }}</a></li>
<li class="active">{{ __('symptoms.view') }}</li>
</ol>
</div>
</div>
@include('clinical_data::symptoms.menu')
@include('flash::message')
<div class="row">
<div class="col-sm-12">
<div class="white-box">
<div class="table-responsive">
<table class="table table-striped table-hover color-bordered-table success-bordered-table">
<thead>
<tr>
<th>{{ __('symptoms.symptom') }}</th>
<th>{{ __('symptoms.prompt') }}</th>
<th>{{ __('symptoms.reference_text') }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($symptoms as $symptom)
<tr>
<td>{{ $symptom->name }}</td>
<td>{{ $symptom->prompts }}</td>
<td>
@php
$reference_areas_array = explode(",", $symptom->reference_link);
$reference_names_array = explode(",", $symptom->reference_text);
@endphp
<ol>
@for ($x = 0; $x < count($reference_areas_array); $x++)
@if($reference_areas_array[$x] != '')
<li>
<a href="{{ $reference_areas_array[$x] }}" target="_blank">
{{ isset($reference_names_array[$x]) ? $reference_names_array[$x] : '' }}
</a>
</li>
@endif
@endfor
</ol>
</td>
<td>
<a href="/symptoms/{{ $symptom->id }}/edit/" class="btn btn-rounded btn-warning"><i class="fa fa-pencil"></i> {{ __('symptoms.edit') }}</a>
</td>
<td>
@if (!in_array($symptom->id, $symptom_data))
{{ Form::model($symptom->id ,['method' => 'DELETE', 'route' => ['symptoms.destroy', $symptom->id]]) }}
<button type="submit" class="btn btn-rounded btn-danger" onclick="return confirm('<?php echo __('symptoms.are_you_sure')?>')"><i class="fa fa-trash"></i> {{ __('symptoms.delete') }}</button>
{{ Form::close() }}
@else
<b class="text-success">Symptom recorded</b>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
{{ $symptoms->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/tables/js/buttons.colVis.min.js') }}"></script>
<script>
$('.table').DataTable({
dom: 'Bfrtip',
bInfo: false,
bPaginate: false,
buttons: [
'copy',
{extend: 'csv',
message: 'LIST OF SYMPTOMS'
},
{extend: 'excel',
message: 'LIST OF SYMPTOMS',
exportOptions: {
columns: [0, 1]
},
sheetName: 'LIST OF SYMPTOMS ON STREAMLINE'
},
{extend: 'pdf',
message: 'LIST OF SYMPTOMS',
orientation: 'landscape',
pageSize: 'LETTER',
exportOptions: {
columns: [0, 1]
},
customize: function (doc) {
doc.defaultStyle.fontSize = 10;
// doc.styles.tableHeader.alignment = 'left';
}
},
{extend: 'print',
message: 'LIST OF SYMPTOMS',
exportOptions: {
columns: [0, 1]
},
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');
}
}
]
});
</script>
@endpush
@@ -0,0 +1,8 @@
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
<a href="/symptoms/create" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('symptoms.add_new_symptom') }}</span></a>
<a href="/symptoms/edit/all" class="nav-item btn btn-warning"><i class="fa fa-pencil"></i> <span style="margin-left: 10px;">{{ __('symptoms.edit_all_symptoms') }}</span></a>
<a href="/symptoms/" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('symptoms.view_symptoms') }}</span></a>
<a href="/symptoms/inactive" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('symptoms.view_inactive_symptoms') }}</span></a>
</div>
</div>