resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,125 @@
@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('title', '| Add Plan')
@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.create_chi_plan') }}</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.home') }}</a></li>
<li><a href="{{ route('community_health_insurance_plan.index') }}">{{ __('insurance.chi_plan') }}</a></li>
<li class="active">{{ __('insurance.create_chi_plan') }}</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">
{{ Form::open(['route' => 'community_health_insurance_plan.store','data-toggle'=>'validator']) }}
<div class="row">
<div class="col-sm-6">
<div class="form-group">
{{ Form::label('name', __('insurance.name')) }}
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('plan_start_date', __('insurance.start_date')) }}
<div class="input-group">
{{ Form::text('plan_start_date','',['class' => 'form-control compulsory','readonly','id'=>'plan_start_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('plan_end_date', __('insurance.end_date')) }}
<div class="input-group">
{{ Form::text('plan_end_date','',['class' => 'form-control compulsory','readonly','id'=>'plan_end_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('is_authorization_required', __('insurance.is_authorization_required')) }}
{{ Form::select('is_authorization_required', ['' => '-- Select --', 1 => 'Yes', 0 => 'No'], '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
{{ Form::label('plan_fee', __('insurance.plan_fee')) }}
{{ Form::number('plan_fee', '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('member_annual_limit', __('insurance.overall_annual_limit_for_member') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
{{ Form::number('member_annual_limit', 0, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('family_annual_limit', __('insurance.overall_annual_limit_for_family') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
{{ Form::number('family_annual_limit', 0, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('membership_card_color', __('insurance.membership_card_color')) }}
{{ Form::select('membership_card_color', ['' => '-- Select --', 'green' => 'Green', 'blue' => 'Blue'], '', ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
</div>
{{ Form::button(__('drug_forms.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
{{ Form::button(__('drug_forms.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
{{ Form::close() }}
</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 src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
$('#plan_start_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd-mm-yyyy'
});
$('#plan_end_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd-mm-yyyy'
});
</script>
@endpush
@@ -0,0 +1,125 @@
@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('title', '| Edit Plan')
@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.create_chi_plan') }}</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.home') }}</a></li>
<li><a href="{{ route('community_health_insurance_plan.index') }}">{{ __('insurance.chi_plan') }}</a></li>
<li class="active">{{ __('insurance.create_chi_plan') }}</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">
{{ Form::model($chi_plan, ['method' => 'PUT', 'route' => ['community_health_insurance_plan.update',$chi_plan]]) }}
<div class="row">
<div class="col-sm-6">
<div class="form-group">
{{ Form::label('name', __('insurance.name')) }}
{{ Form::text('name', $chi_plan->name, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('plan_start_date', __('insurance.start_date')) }}
<div class="input-group">
{{ Form::text('plan_start_date',date_format(date_create($chi_plan->plan_start_date), 'd-m-Y'),['class' => 'form-control compulsory','readonly','id'=>'plan_start_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('plan_end_date', __('insurance.end_date')) }}
<div class="input-group">
{{ Form::text('plan_end_date',date_format(date_create($chi_plan->plan_end_date), 'd-m-Y'),['class' => 'form-control compulsory','readonly','id'=>'plan_end_date']) }}
<span class="input-group-addon"><i class="icon-calender"></i></span>
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('is_authorization_required', __('insurance.is_authorization_required')) }}
{{ Form::select('is_authorization_required', ['' => '-- Select --', 1 => 'Yes', 0 => 'No'], $chi_plan->is_authorized_required, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
{{ Form::label('plan_fee', __('insurance.plan_fee')) }}
{{ Form::number('plan_fee', $chi_plan->plan_fee, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('member_annual_limit', __('insurance.overall_annual_limit_for_member') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
{{ Form::number('member_annual_limit', $chi_plan->member_annual_limit, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('family_annual_limit', __('insurance.overall_annual_limit_for_family') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
{{ Form::number('family_annual_limit', $chi_plan->family_annual_limit, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('membership_card_color', __('insurance.membership_card_color')) }}
{{ Form::select('membership_card_color', ['' => '-- Select --', 'green' => 'Green', 'blue' => 'Blue'], $chi_plan->membership_card_color, ['class' => 'form-control compulsory', 'required']) }}
<div class="help-block with-errors"></div>
</div>
</div>
</div>
{{ Form::button(__('drug_forms.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }}
{{ Form::button(__('drug_forms.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }}
{{ Form::close() }}
</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 src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
<script type="text/javascript">
$('#plan_start_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd-mm-yyyy'
});
$('#plan_end_date').datepicker({
autoclose: true,
todayHighlight: true,
format: 'dd-mm-yyyy'
});
</script>
@endpush
@@ -0,0 +1,76 @@
@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.inactive_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.inactive_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.is_authorization_required') }}</th>
<th>{{ __('insurance.created_by') }}</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>{{ $chi_plan->is_authorization_required == 1 ? 'Yes' : 'No' }}</td>
<td>{{ get_full_name($chi_plan->created_by, "id", "first_name", "last_name", "users") }}</td>
<td>
{{ Form::model($chi_plan->id ,['method' => 'POST', 'route' => ['community_health_insurance_plan.activate', $chi_plan->id]]) }}
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('<?php echo __("drug_forms.are_you_sure")?>')"><i class="fa fa-check"></i> {{ __('drug_forms.activate') }}</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>
$('.table').DataTable();
</script>
@endpush
@@ -0,0 +1,147 @@
@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
@@ -0,0 +1,7 @@
<div class="panel panel-default" style="border-radius: 5px;">
<div class="panel-body">
<a href="{{ route('community_health_insurance_plan.create') }}" class="nav-item btn btn-success"><i class="fa fa-plus"></i> <span style="margin-left: 10px;">{{ __('insurance.add_chi_plan') }}</span></a>
<a href="{{ route('community_health_insurance_plan.index') }}" class="nav-item btn btn-info"><i class="fa fa-eye"></i> <span style="margin-left: 10px;">{{ __('insurance.view_chi_plan') }}</span></a>
<a href="{{ route('community_health_insurance_plan.inactive') }}" class="nav-item btn btn-danger"><i class="fa fa-trash"></i> <span style="margin-left: 10px;">{{ __('insurance.activate_chi_plan') }}</span></a>
</div>
</div>
@@ -0,0 +1,375 @@
<!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', 'Inpatient Bill - 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 !important;
}
</style>
</head>
<body>
<div class="container-fluid">
@include('layouts.header_pdf_print')
<div class="row">
<div class="col-12">
<h4 class="text-center"><span style="color: blue;">{{ $chi_plan->name }}</span> {{ __('insurance.details') }} </h4>
<table class="table table-striped table-bordered">
<tbody>
<tr>
<td style="font-size: 18px; padding: 3px;">{{ __('insurance.plan_name') }}</td>
<td style="font-size: 18px; padding: 3px;">{{ $chi_plan->name }}</td>
<td style="font-size: 18px; padding: 3px;">{{ __('insurance.plan_fee') }}</td>
<td style="font-size: 18px; padding: 3px;">{{ ugandan_shillings($chi_plan->plan_fee) }}</td>
</tr>
<tr>
<td style="font-size: 18px; padding: 3px;">{{ __('insurance_groups.start_date') }}</td>
<td style="font-size: 18px; padding: 3px;">{{ streamline_date($chi_plan->plan_start_date) }}</td>
<td style="font-size: 18px; padding: 3px;">{{ __('insurance_groups.end_date') }}</td>
<td style="font-size: 18px; padding: 3px;">{{ streamline_date($chi_plan->plan_end_date) }}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-12">
<br><br>
<h3 class="text-center" style="font-size: 16px;">{{ __('insurance.plan_benefits') }}</h3>
@php
$insurance_benefits = \Streamline\Models\InsuranceBenefit::where('plan_id', $chi_plan->id)->get();
@endphp
@if(count($insurance_benefits) > 0)
@php $counter = 1 @endphp
@foreach($insurance_benefits as $insurance_benefit)
<table class="table" style="font-size: 16px;">
<tbody>
<tr>
<td style="padding: 3px;">{{ $counter }}. <strong>Benefit Name: </strong></td>
<td style="padding: 3px;">{{ $insurance_benefit->name }}</td>
<td style="padding: 3px;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;Waiting Period:</strong></td>
<td style="padding: 3px;">{{ $insurance_benefit->waiting_period }}</td>
</tr>
<tr>
<td style="padding: 3px;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;Benefit Fee: </strong></td>
<td style="padding: 3px;">{{ ugandan_shillings_with_decimals($insurance_benefit->fee) }}</td>
<td style="padding: 3px;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;Created By: </strong></td>
<td style="padding: 3px;">{{ get_full_name($insurance_benefit->created_by, "id", "first_name", "last_name", "patients") }} at {{ streamline_date($insurance_benefit->created_at) }}</td>
</tr>
</tbody>
</table>
@php
$counter++;
$benefit = \Streamline\Models\InsuranceBenefit::find($insurance_benefit->id);
$benefit_drugs = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 4)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_sundries = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 5)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_invs = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 3)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_procedures = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 2)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_services = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 1)
->where('benefit_id', $insurance_benefit->id)->get();
@endphp
{{-- start showing benefits belonging to this service --}}
<div style="border:5px solid #9b9b9b; padding: 5px;">
<h4>{{ __('insurance_benefits.procedures') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_procedures as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 2, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td style="padding: 3px;">{{ $procedures[$item_id] }}</td>
<td style="padding: 3px;">{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td style="padding: 3px;">
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.services') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_services as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 1, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td style="padding: 3px;">{{ $services[$item_id] }}</td>
<td style="padding: 3px;">{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td style="padding: 3px;">
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.investigations') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_invs as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 3, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td style="padding: 3px;">{{ $investigations[$item_id] }}</td>
<td style="padding: 3px;">{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td style="padding: 3px;">
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.drugs') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_drugs as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 4, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td style="padding: 3px;">{{ $drugs[$item_id] }}</td>
<td style="padding: 3px;">{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td style="padding: 3px;">
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.sundries') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_sundries as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 5, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td style="padding: 3px;">{{ $sundries[$item_id] }}</td>
<td style="padding: 3px;">{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td style="padding: 3px;">
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td style="padding: 3px;">{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
</div>
<hr>
{{-- end showing benefits belonging to this service --}}
@endforeach
@endif
</div>
</div>
<div class="row-fluid">
<div class="col-auto">
<hr>
</div>
</div>
<div class="row">
</div>
</div>
</body>
</html>
@@ -0,0 +1,434 @@
@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">{{ $chi_plan->name }}</span> {{ __('insurance.details') }}</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_plan_details') }}</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">
<div class="panel-body">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<h4 class="text-center"><span style="color: blue;">{{ $chi_plan->name }}</span> {{ __('insurance.details') }} </h4>
<table class="table table-striped table-bordered">
<tbody>
<tr>
<td style="font-size: 18px;">{{ __('insurance.plan_name') }}</td>
<td style="font-size: 18px;">{{ $chi_plan->name }}</td>
<td style="font-size: 18px;">{{ __('insurance.plan_fee') }}</td>
<td style="font-size: 18px;">{{ ugandan_shillings($chi_plan->plan_fee) }}</td>
</tr>
<tr>
<td style="font-size: 18px;">{{ __('insurance_groups.start_date') }}</td>
<td style="font-size: 18px;">{{ streamline_date($chi_plan->plan_start_date) }}</td>
<td style="font-size: 18px;">{{ __('insurance_groups.end_date') }}</td>
<td style="font-size: 18px;">{{ streamline_date($chi_plan->plan_end_date) }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-3">
<a href="{{ url('community_health_insurance_plan/') }}/{{ $chi_plan->id}}/print" target="_blank" class="btn btn-rounded" style="background-color: #5a996d; color: white;"><i class="fa fa-print"></i><span style="margin-left: 10px;">Print Plan</span></a>
</div>
</div>
<br>
<div class="row">
<div class="col-md-12">
<h3 class="text-center" style="font-size: 16px;">{{ __('insurance.plan_benefits') }}</h3>
@php
$insurance_benefits = \Streamline\Models\InsuranceBenefit::where('plan_id', $chi_plan->id)->get();
@endphp
@if(count($insurance_benefits) > 0)
@php $counter = 1 @endphp
@foreach($insurance_benefits as $insurance_benefit)
<table class="table" style="font-size: 16px;">
<tbody>
<tr>
<td>{{ $counter }}. <strong>Benefit Name: </strong></td>
<td>{{ $insurance_benefit->name }}</td>
</tr>
<tr>
<td><strong>&nbsp;&nbsp;&nbsp;&nbsp;Waiting Period:</strong></td>
<td>{{ $insurance_benefit->waiting_period }}</td>
</tr>
<tr>
<td><strong>&nbsp;&nbsp;&nbsp;&nbsp;Benefit Fee: </strong></td>
<td>{{ ugandan_shillings_with_decimals($insurance_benefit->fee) }}</td>
</tr>
<tr>
<td><strong>&nbsp;&nbsp;&nbsp;&nbsp;Created By: </strong></td>
<td>{{ get_full_name($insurance_benefit->created_by, "id", "first_name", "last_name", "patients") }} at {{ streamline_date($insurance_benefit->created_at) }}</td>
</tr>
</tbody>
</table>
@php
$counter++;
$benefit = \Streamline\Models\InsuranceBenefit::find($insurance_benefit->id);
$benefit_drugs = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 4)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_sundries = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 5)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_invs = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 3)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_procedures = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 2)
->where('benefit_id', $insurance_benefit->id)->get();
$benefit_services = DB::table('insurance_benefit_items')->whereNull('deleted_at')->where('item_type', 1)
->where('benefit_id', $insurance_benefit->id)->get();
@endphp
{{-- start showing benefits belonging to this service --}}
<div style="border:5px solid #9b9b9b; padding: 5px;">
<h4>{{ __('insurance_benefits.procedures') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_procedures as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 2, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td>{{ $procedures[$item_id] }}</td>
<td>{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td>{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td>{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td>
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.services') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_services as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 1, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td>{{ $services[$item_id] }}</td>
<td>{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td>{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td>{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td>
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.investigations') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_invs as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 3, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td>{{ $investigations[$item_id] }}</td>
<td>{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td>{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td>{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td>
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.drugs') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_drugs as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 4, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td>{{ $drugs[$item_id] }}</td>
<td>{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td>{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td>{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td>
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
<hr>
<h4>{{ __('insurance_benefits.sundries') }}</h4>
<table class="table color-bordered-table success-bordered-table item-tables">
<thead>
<tr>
<th>{{ __('insurance_benefits.name') }}</th>
<th>{{ __('insurance_benefits.authorisation') }}</th>
<th>{{ __('insurance_benefits.cash_price') }}</th>
<th>{{ __('insurance_benefits.co_payment') }}</th>
<th>{{ __('insurance.chi_to_pay') }}</th>
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
</tr>
</thead>
<tbody>
@foreach($benefit_sundries as $record)
@php $items_array = explode(",", $record->item_id); $count = 0; @endphp
@foreach($items_array as $item_id)
@php
$item_details = get_item_insurance_details($item_id, 5, $benefit->id);
if (!$item_details) {continue;}
if ($count > 4) {break;}
$count++;
@endphp
<tr>
<td>{{ $sundries[$item_id] }}</td>
<td>{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
<td>{{ ugandan_shillings($item_details['cash_price']) }}</td>
<td>{{ ugandan_shillings($item_details['co_payment']) }}</td>
<td>
@php
$chi_to_pay = $item_details['cash_price'] - $item_details['co_payment'];
@endphp
{{ ugandan_shillings($chi_to_pay) }}
</td>
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
</div>
<hr>
{{-- end showing benefits belonging to this service --}}
@endforeach
@endif
</div>
<div class="col-md-3"></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>
$('.item-tables').DataTable({
dom: 'Bfrtip',
bInfo: false,
bPaginate: false,
buttons: [
'copy',
{extend: 'csv',
message: '<?php echo $chi_plan->name?> C.H.I Plan',
exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6]
},
sheetName: '<?php echo $chi_plan->name?> C.H.I Plan'
},
{extend: 'excel',
message: '<?php echo $chi_plan->name?> C.H.I Plan',
exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6]
},
sheetName: '<?php echo $chi_plan->name?> C.H.I Plan'
},
{extend: 'pdf',
message: '<?php echo $chi_plan->name?> C.H.I Plan',
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 $chi_plan->name?> C.H.I Plan',
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');
}
}
]
});
</script>
@endpush