mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
128 lines
5.0 KiB
PHP
Executable File
128 lines
5.0 KiB
PHP
Executable File
@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">{{ __('outcomes.outcomes') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('outcomes.dashboard') }}</a></li>
|
|
<li><a href="{{ route('clinical_data.index') }}">{{ __('outcomes.clinical_data_home') }}</a></li>
|
|
<li><a href="{{ route('outcomes.index') }}">{{ __('outcomes.outcomes') }}</a></li>
|
|
<li class="active">{{ __('outcomes.view') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
@include('clinical_data::outcomes.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>{{ __('outcomes.outcome') }}</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($outcomes as $outcome)
|
|
<tr>
|
|
<td>{{ $outcome->name }}</td>
|
|
<td>
|
|
<a href="/outcomes/{{ $outcome->id }}/edit/" class="btn btn-rounded btn-warning"><i class="fa fa-pencil"></i> {{ __('outcomes.edit') }}</a>
|
|
</td>
|
|
<td>
|
|
{{ Form::model($outcome->id ,['method' => 'DELETE', 'route' => ['outcomes.destroy', $outcome->id]]) }}
|
|
<button type="submit" class="btn btn-rounded btn-danger" onclick="return confirm('<?php echo __('outcomes.are_you_sure') ?>')"><i class="fa fa-trash"></i> {{ __('outcomes.delete') }}</button>
|
|
{{ Form::close() }}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
{{ $outcomes->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 OUTCOMES'
|
|
},
|
|
{
|
|
extend: 'excel',
|
|
message: 'LIST OF OUTCOMES',
|
|
exportOptions: {
|
|
columns: [0, 1]
|
|
},
|
|
sheetName: 'LIST OF OUTCOMES ON STREAMLINE'
|
|
},
|
|
{
|
|
extend: 'pdf',
|
|
message: 'LIST OF OUTCOMES',
|
|
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 OUTCOMES',
|
|
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 |