mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
135 lines
5.6 KiB
PHP
135 lines
5.6 KiB
PHP
@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">{{ __('wards.wards') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('wards.dashboard') }}</a></li>
|
|
<li class="active">{{ __('wards.hmis_wards') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('ward_management::hmis_wards.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>{{ __('wards.ward_name') }}</th>
|
|
<th>{{ __('wards.slug') }}</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>{{ __('wards.ward_name') }}</th>
|
|
<th>{{ __('wards.slug') }}</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
@foreach($wards as $ward)
|
|
<tr>
|
|
<td>{{ $ward->name }}</td>
|
|
<td>{{ $ward->slug }}</td>
|
|
<td>
|
|
@if (Auth::user()->can('budget-edit'))
|
|
<a href="/hmis_wards/{{ $ward->id }}/edit/" class="btn btn-sm btn-warning btn-rounded"><i class="fa fa-pencil"></i> {{ __('wards.edit') }}</a>
|
|
@endif
|
|
|
|
</td>
|
|
<td>
|
|
@if (Auth::user()->can('budget-edit'))
|
|
{{ Form::model($ward->id ,['method' => 'DELETE', 'route' => ['hmis_wards.destroy', $ward->id]]) }}
|
|
<button type="submit" class="btn btn-sm btn-rounded btn-danger" onclick="return confirm('<?php echo __('wards.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('wards.delete') }}</button>
|
|
{{ Form::close() }}
|
|
@endif
|
|
</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 src="{{ asset('elite/tables/js/buttons.colVis.min.js') }}"></script>
|
|
|
|
<script type="text/javascript">
|
|
$('.table').DataTable({
|
|
dom: 'Bfrtip',
|
|
buttons: [
|
|
'copy',
|
|
{extend: 'csv',
|
|
message: '<?php echo __('wards.list_of_wards');?>'
|
|
},
|
|
{extend: 'excel',
|
|
message: '<?php echo __('wards.list_of_wards');?>',
|
|
exportOptions: {
|
|
columns: [0, 1]
|
|
},
|
|
sheetName: '<?php echo __('wards.list_of_wards');?>'
|
|
},
|
|
{extend: 'pdf',
|
|
message: '<?php echo __('wards.list_of_wards');?>',
|
|
orientation: 'portrait',
|
|
pageSize: 'LETTER',
|
|
exportOptions: {
|
|
columns: [0, 1]
|
|
},
|
|
customize: function (doc) {
|
|
doc.defaultStyle.fontSize = 10;
|
|
// doc.styles.tableHeader.alignment = 'left';
|
|
}
|
|
},
|
|
{extend: 'print',
|
|
message: '<?php echo __('wards.list_of_wards');?>',
|
|
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 table-bordered')
|
|
.css('font-size', 'inherit');
|
|
}
|
|
}
|
|
]
|
|
});
|
|
</script>
|
|
@endpush
|