mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
147 lines
6.3 KiB
PHP
Executable File
147 lines
6.3 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">{{ __('insurance.CHI_plans') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ url('insurance') }}">{{ __('insurance.insurance') }}</a></li>
|
|
<li class="active">{{ __('insurance.CHI_plans') }}</li>
|
|
</ol>
|
|
</div>
|
|
<!-- /.col-lg-12 -->
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@include('insurance::chi_plan.menu')
|
|
</div>
|
|
</div>
|
|
|
|
@include('flash::message')
|
|
|
|
<div class="panel panel-default" style="border-radius: 5px;">
|
|
<div class="panel-body">
|
|
<div class="table-responsive">
|
|
<table class="table color-bordered-table success-bordered-table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('insurance.chi_plan') }}</th>
|
|
<th>{{ __('insurance.start_date') }}</th>
|
|
<th>{{ __('insurance.end_date') }}</th>
|
|
<th>{{ __('insurance.plan_fee') }}</th>
|
|
<th>{{ __('insurance.overall_annual_limit_for_member') }}</th>
|
|
<th>{{ __('insurance.overall_annual_limit_for_family') }}</th>
|
|
<th>{{ __('insurance.is_authorization_required') }}</th>
|
|
<th>{{ __('insurance.created_by') }}</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($chi_plans as $chi_plan)
|
|
<tr>
|
|
<td>{{ $chi_plan->name }}</td>
|
|
<td>{{ $chi_plan->plan_start_date }}</td>
|
|
<td>{{ $chi_plan->plan_end_date }}</td>
|
|
<td>{{ ugandan_shillings($chi_plan->plan_fee) }}</td>
|
|
<td>{{ ugandan_shillings($chi_plan->member_annual_limit) }}</td>
|
|
<td>{{ ugandan_shillings($chi_plan->family_annual_limit) }}</td>
|
|
<td>{{ ($chi_plan->is_authorized_required == 1) ? 'Yes' : 'No' }}</td>
|
|
<td>{{ get_full_name($chi_plan->created_by, "id", "first_name", "last_name", "users") }} at {{ streamline_date_time($chi_plan->created_at) }}</td>
|
|
<td>
|
|
<a href="/community_health_insurance_plan/{{ $chi_plan->id }}/edit/" class="btn btn-warning btn-rounded btn-sm"><i class="fa fa-pencil"></i> {{ __('drug_forms.edit') }}</a>
|
|
</td>
|
|
<td>
|
|
<a href="/community_health_insurance_plan/{{ $chi_plan->id }}" class="btn btn-info btn-rounded btn-sm"><i class="fa fa-pencil"></i> {{ __('insurance.details') }}</a>
|
|
</td>
|
|
<td>
|
|
{{ Form::model($chi_plan->id ,['method' => 'DELETE', 'route' => ['community_health_insurance_plan.destroy', $chi_plan->id]]) }}
|
|
<button type="submit" class="btn btn-danger btn-rounded btn-sm" onclick="return confirm('<?php echo __("drug_forms.are_you_sure")?>')"><i class="fa fa-trash"></i> {{ __('drug_forms.delete') }}</button>
|
|
{{ Form::close() }}
|
|
</td>
|
|
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
|
|
</table>
|
|
</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 COMMUNITY HEALTH INSURANCE PLANS',
|
|
exportOptions: {
|
|
columns: [0, 1, 2, 3, 4, 5, 6, 7]
|
|
},
|
|
sheetName: 'LIST OF COMMUNITY HEALTH INSURANCE PLANS'
|
|
},
|
|
{extend: 'excel',
|
|
message: 'LIST OF COMMUNITY HEALTH INSURANCE PLANS',
|
|
exportOptions: {
|
|
columns: [0, 1, 2, 3, 4, 5, 6, 7]
|
|
},
|
|
sheetName: 'LIST OF COMMUNITY HEALTH INSURANCE PLANS'
|
|
},
|
|
{extend: 'pdf',
|
|
message: 'LIST OF COMMUNITY HEALTH INSURANCE PLANS',
|
|
orientation: 'portrait',
|
|
pageSize: 'LETTER',
|
|
exportOptions: {
|
|
columns: [0, 1, 2, 3, 4, 5, 6, 7]
|
|
},
|
|
customize: function (doc) {
|
|
doc.defaultStyle.fontSize = 10;
|
|
// doc.styles.tableHeader.alignment = 'left';
|
|
}
|
|
},
|
|
{extend: 'print',
|
|
message: 'LIST OF COMMUNITY HEALTH INSURANCE PLANS',
|
|
exportOptions: {
|
|
columns: [0, 1, 2, 3, 4, 5, 6, 7]
|
|
},
|
|
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 |