mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
resolved conflicts
This commit is contained in:
+251
@@ -0,0 +1,251 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.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">{{ __('insurance_benefits.inpatient_accommodation') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li><a href="/insurance_benefits/details/{{ $benefit->id }}">{{ __('insurance_benefits.insurance_benefits_details') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
<h3>{{ __('insurance_benefits.insurance_benefit') }}: {{ $benefit->name }}</h3>
|
||||
|
||||
<hr>
|
||||
|
||||
{{ Form::open(['route' => ['insurance_benefits.add_inpatient_accommodation', $benefit->id], 'method' => 'ANY', 'role' => 'search']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<div class="form-group">
|
||||
{{ Form::select('bed_category', $bed_categories, '', ['class' => 'form-control', 'id' => 'bed_category']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<button type="submit" name="submit" class="btn btn-info"> {{ __('insurance_benefits.select_bed_category') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
<hr>
|
||||
|
||||
@if($selected_bed_category)
|
||||
{{ Form::open(['route' => 'insurance_benefits.save_inpatient_accommodation']) }}
|
||||
|
||||
{{ Form::hidden('benefit_id', $benefit->id) }}
|
||||
{{ Form::hidden('plan_id', $benefit->plan_id) }}
|
||||
{{ Form::hidden('bed_category_id', $selected_bed_category->id) }}
|
||||
{{ Form::hidden('cost_type', $selected_bed_category->cost_type) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('insurance_benefits.bed_category_name')) }}
|
||||
{{ Form::text('name', $selected_bed_category->name, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('bed_categories.type_of_pricing')) }}
|
||||
{{ Form::text('name', $selected_bed_category->cost_type == 1 ? 'Static' : 'Structured', ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
@if($selected_bed_category->cost_type == 1)
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_per_night', __('bed_categories.cost_per_night')) }}
|
||||
{{ Form::number('cost_per_night', $selected_bed_category->cost_per_night, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
@else
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_first_night', __('bed_categories.cost_of_first_night')) }}
|
||||
{{ Form::number('cost_first_night', $selected_bed_category->cost_first_night, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.from_night')}}</label>
|
||||
{{ Form::number('from_night', 2, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.to_night')}}</label>
|
||||
{{ Form::number('to_night', $selected_bed_category->to_night, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_range', __('bed_categories.range_cost')) }}
|
||||
{{ Form::number('cost_range', $selected_bed_category->cost_range, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_after', __('bed_categories.cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('cost_after', $selected_bed_category->cost_after, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-md-1"></div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="row" @if($selected_bed_category->cost_type != 1) style="display: none" @endif>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_per_night', __('insurance_benefits.co_payment_cost_per_night')) }}
|
||||
{{ Form::number('cost_per_night', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_per_night', __('insurance_benefits.chi_cost_per_night')) }}
|
||||
{{ Form::number('chi_cost_per_night', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div @if($selected_bed_category->cost_type == 1) style="display: none" @endif>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_first_night', __('insurance_benefits.co_payment_cost_of_first_night')) }}
|
||||
{{ Form::number('cost_first_night', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_first_night', __('insurance_benefits.chi_cost_of_first_night')) }}
|
||||
{{ Form::number('chi_cost_first_night', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_range', __('insurance_benefits.co_payment_range_cost')) }}
|
||||
{{ Form::number('cost_range', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_range', __('insurance_benefits.chi_range_cost')) }}
|
||||
{{ Form::number('chi_cost_range', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_after', __('insurance_benefits.co_payment_cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('cost_after', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_after', __('insurance_benefits.chi_cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('chi_cost_after', '', ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_member_limit', __('insurance_benefits.annual_member_limit')) }}
|
||||
{{ Form::number('annual_member_limit', 0, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('gender', __('insurance_benefits.gender')) }}
|
||||
{{ Form::select('gender', [0 => 'All', 1 => 'Male', 2 => 'Female'], 0, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_limit', __('insurance_benefits.age_limit')) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_limit_start',__('insurance_benefits.start')) }}
|
||||
{{ Form::number('age_limit_start','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_limit_end',__('insurance_benefits.end')) }}
|
||||
{{ Form::number('age_limit_end','',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_family_limit', __('insurance_benefits.annual_family_limit')) }}
|
||||
{{ Form::number('annual_family_limit', 0, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('authorisation', __('insurance_benefits.authorisation')) }}
|
||||
|
||||
<br><br>
|
||||
|
||||
{{ Form::radio('authorisation', 1, false, ['required']) }} Yes
|
||||
{{ Form::radio('authorisation', 0, false, ['required']) }} No
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_type', __('insurance_benefits.age_type')) }}
|
||||
{{ Form::select('age_type', [0 => 'Days', 1 => 'Months', 2 => 'Years'], 2, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('bed_categories.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('bed_categories.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
@else
|
||||
<h4 class="text-center"><code>{{ __('insurance_benefits.please_select_bed_category') }}</code></h4>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
function set_authorisation(id, value) {
|
||||
$('#authorisation_value_' + id).val(value);
|
||||
}
|
||||
|
||||
$('#bed_category').select2({
|
||||
placeholder: "Select"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+240
@@ -0,0 +1,240 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.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">{{ __('insurance_benefits.add_item_insurance_benefit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li><a href="/insurance_benefits/details/{{ $benefit->id }}">{{ __('insurance_benefits.insurance_benefits_details') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
<h3>{{ __('insurance_benefits.insurance_benefit') }}: {{ $benefit->name }}</h3>
|
||||
<h4>{{ __('insurance_benefits.item_type') }}: {{ [1 => 'Services', 2 => 'Procedures', 3 => 'Investigations', 4 => 'Drugs', 5 => 'Sundries'][$item_type] }}</h4>
|
||||
|
||||
<hr>
|
||||
|
||||
{{ Form::open(['route' => ['insurance_benefits.add_items', $benefit->id, $item_type], 'method' => 'ANY', 'role' => 'search']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
{{ Form::select('items_ids[]', $items, '', ['id' => 'items_ids', 'multiple', 'class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<button type="submit" name="submit" value="use_selection" class="btn btn-success"><span class="glyphicon glyphicon-search"></span> {{ __('insurance_benefits.select_items_for_benefit') }}</button>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<button type="submit" name="submit" value="select_all_items" class="btn btn-info"> {{ __('insurance_benefits.select_all_items') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
<hr>
|
||||
|
||||
@if(!is_null($benefit->opd_percentage))
|
||||
{{ Form::checkbox('apply_opd_percentage_all', 'OPD All', false, ['id' => "apply_opd_percentage_all"]) }} {{ __('insurance_benefits.apply_opd_percentage_all') }}
|
||||
|
||||
@endif
|
||||
|
||||
@if(!is_null($benefit->ipd_percentage))
|
||||
{{ Form::checkbox('apply_ipd_percentage_all', 'IPD All', false, ['id' => "apply_ipd_percentage_all"]) }} {{ __('insurance_benefits.apply_ipd_percentage_all') }}
|
||||
@endif
|
||||
|
||||
<br><br>
|
||||
|
||||
{{ Form::open(['route' => 'insurance_benefits.save_items']) }}
|
||||
|
||||
{{ Form::hidden('benefit_id', $benefit->id) }}
|
||||
{{ Form::hidden('item_type', $item_type) }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table success-bordered-table color-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><input type="checkbox" id="check_all" /></th>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }} <span data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ __('insurance_benefits.amount_paid_opd') }}"> <i class="fa fa-info-circle"></i></span></th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }} <span data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ __('insurance_benefits.amount_paid_ipd') }}"> <i class="fa fa-info-circle"></i></span></th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_member_limit') }} <span data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ __('insurance_claims.no_limit_applicable') }}"> <i class="fa fa-info-circle"></i></span></th>
|
||||
<th>{{ __('insurance_benefits.annual_family_limit') }} <span data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ __('insurance_claims.no_limit_applicable') }}"> <i class="fa fa-info-circle"></i></span></th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(count($selected_items) > 0)
|
||||
@foreach($selected_items as $item)
|
||||
<tr id="row_{{ $item->id }}" class="to_remove">
|
||||
<td>
|
||||
<input type="checkbox" id="chk" class="item_check" value="{{ $item->id }}" />
|
||||
{{ Form::hidden('item_id[]', $item->id) }}
|
||||
</td>
|
||||
<td>{{ $item->name }}</td>
|
||||
<td>{{ ugandan_shillings($item->non_insured_price) }}</td>
|
||||
<td>
|
||||
{{ Form::number('co_payment[]', '', ['class' => 'form-control compulsory', 'required', 'min' => '0', 'id' => "co_payment_$item->id"]) }}
|
||||
@if(!is_null($benefit->opd_percentage))
|
||||
<br>
|
||||
{{ Form::checkbox('apply_opd_percentage[]', $item->id, false, ['id' => "apply_opd_percentage_$item->id", 'class' => 'apply_opd_percentage']) }} {{ __('insurance_benefits.apply_opd_percentage') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('ipd_co_payment[]', '', ['class' => 'form-control compulsory', 'required', 'min' => '0', 'id' => "ipd_co_payment_$item->id"]) }}
|
||||
@if(!is_null($benefit->ipd_percentage))
|
||||
<br>
|
||||
{{ Form::checkbox('apply_ipd_percentage[]', $item->id, false, ['id' => "apply_ipd_percentage_$item->id", 'class' => 'apply_ipd_percentage']) }} {{ __('insurance_benefits.apply_ipd_percentage') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ Form::number('capitation_fee[]', 0, ['class' => 'form-control compulsory', 'required', 'min' => '0']) }}</td>
|
||||
<td>{{ Form::number('annual_member_limit[]', 0, ['class' => 'form-control', 'min' => '0']) }}</td>
|
||||
<td>{{ Form::number('annual_family_limit[]', 0, ['class' => 'form-control', 'min' => '0']) }}</td>
|
||||
<td>
|
||||
{{ Form::hidden('authorisation[]', 0, ['id' => 'authorisation_value_' . $item->id]) }}
|
||||
{{ Form::radio('authorisation_' . $item->id, 1, false, ['onclick' => 'set_authorisation(' . $item->id . ', 1)', 'required']) }} Yes
|
||||
{{ Form::radio('authorisation_' . $item->id, 0, false, ['onclick' => 'set_authorisation(' . $item->id . ', 0)', 'required']) }} No
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr class="text-center"><td colspan="8"><code>{{ __('insurance_claims.select_items_first') }}</code></td></tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<input type="button" id="confirm_selection_btn" class="btn btn-success btn-rounded pull-right" value="{{ __('payroll.confirm_selection') }}" />
|
||||
<button class="btn btn-success btn-rounded pull-right" style="display: none;" id="submit_selection_btn">{{ __('payroll.submit') }}</button>
|
||||
|
||||
<hr>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(".table").on('change', "[id^=apply_opd_percentage_]", function () {
|
||||
let id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if($(this).is(":checked")) {
|
||||
$('#co_payment_' + id).val(0).prop('readonly', true);
|
||||
} else {
|
||||
$('#co_payment_' + id).prop('readonly', false);
|
||||
}
|
||||
}).on('change', "[id^=apply_ipd_percentage_]", function () {
|
||||
let id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if($(this).is(":checked")) {
|
||||
$('#ipd_co_payment_' + id).val(0).prop('readonly', true);
|
||||
} else {
|
||||
$('#ipd_co_payment_' + id).prop('readonly', false);
|
||||
}
|
||||
});
|
||||
|
||||
$('#apply_opd_percentage_all').change(function () {
|
||||
if($(this).is(":checked")) {
|
||||
$(".apply_opd_percentage").each(function() {
|
||||
if(!$(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$(".apply_opd_percentage").each(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#apply_ipd_percentage_all').change(function () {
|
||||
if($(this).is(":checked")) {
|
||||
$(".apply_ipd_percentage").each(function() {
|
||||
if(!$(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$(".apply_ipd_percentage").each(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('.item_check').click(function() {
|
||||
if($(this).is(':checked')){
|
||||
$(this).parent().parent().css({'background-color': '#FFFF99'});
|
||||
$('#row_' + $(this).val()).removeClass('to_remove');
|
||||
} else {
|
||||
$(this).parent().parent().css({'background-color': '#fff'});
|
||||
$('#row_' + $(this).val()).addClass('to_remove');
|
||||
}
|
||||
});
|
||||
|
||||
$('#check_all').click(function() {
|
||||
if($(this).is(':checked')){
|
||||
$('.item_check').each(function() {
|
||||
if(!$(this).is(':checked')){
|
||||
$(this).trigger('click');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('.item_check').each(function() {
|
||||
if($(this).is(':checked')){
|
||||
$(this).trigger('click');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#confirm_selection_btn").click(function (e) {
|
||||
let is_item_selected = $('input:checkbox').is(':checked');
|
||||
|
||||
if (is_item_selected) {
|
||||
$(".to_remove").remove();
|
||||
$(".item_check").attr("disabled", "disabled");
|
||||
|
||||
$('#submit_selection_btn').show();
|
||||
$('#confirm_selection_btn').hide();
|
||||
} else {
|
||||
e.preventDefault();
|
||||
alert("Please select an item before continuing");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
function set_authorisation(id, value) {
|
||||
$('#authorisation_value_' + id).val(value);
|
||||
}
|
||||
|
||||
$('#items_ids').select2({
|
||||
placeholder: "Select"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.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">{{ __('insurance_benefits.create_insurance_benefit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
{{ Form::open(['route' => 'insurance_benefits.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('insurance_benefits.benefit_name')) }}
|
||||
{{ Form::text('name', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('waiting_period', __('insurance_benefits.waiting_period_days')) }}
|
||||
{{ Form::number('waiting_period', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_member_limit', __('insurance_benefits.annual_member_limit') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
|
||||
{{ Form::number('annual_member_limit', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('opd_percentage', __('insurance_benefits.opd_percentage') . ' (' . __('insurance_benefits.applied_to_cash_amount') . ')') }}
|
||||
{{ Form::number('opd_percentage', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('ward_id', __('insurance_benefits.wards_benefit_will_be_applied_to')) }}
|
||||
{{ Form::select('ward_id[]', $wards, 0,['class' => 'form-control ward_id', 'data-error'=>'Select the ward', 'multiple']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('plan_id', __('insurance_benefits.plan')) }}
|
||||
{{ Form::select('plan_id', $insurance_plans, '', ['class' => 'form-control compulsory', 'required', 'id' => 'plan_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('fee', __('insurance_benefits.fee')) }}
|
||||
{{ Form::number('fee', 0, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_family_limit', __('insurance_benefits.annual_family_limit') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
|
||||
{{ Form::number('annual_family_limit', '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('ipd_percentage', __('insurance_benefits.ipd_percentage') . ' (' . __('insurance_benefits.applied_to_cash_amount') . ')') }}
|
||||
{{ Form::number('ipd_percentage', '', ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('insurance_groups.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('insurance_groups.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#plan_id, .ward_id').select2({
|
||||
placeholder: "Select"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+437
@@ -0,0 +1,437 @@
|
||||
@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_benefits.insurance_benefits_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<h3 class="text-center">{{ $benefit->name . ' ' . __('insurance_benefits.items') }} ({{ get_name($benefit->plan_id, 'id', 'name', 'community_health_insurance_plans') }} {{ __('insurance_benefits.plan') }})</h3>
|
||||
|
||||
<h4>{{ __('insurance_benefits.procedures') }}</h4>
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</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>
|
||||
@if(isset($item_details['apply_opd_percentage']) && $item_details['apply_opd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->opd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->opd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['co_payment']) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(isset($item_details['apply_ipd_percentage']) && $item_details['apply_ipd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->ipd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->ipd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['ipd_co_payment'] ?? 0) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($item_details['capitation_fee']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if(Auth::user()->can('insurance-items-view'))<a href="/insurance_benefits/view_items/{{ $benefit->id }}/2" class="btn btn-primary btn-sm">{{ __('insurance_benefits.view_all_procedures') }}</a>@endif
|
||||
@if(Auth::user()->can('insurance-items-create'))<a href="/insurance_benefits/add_items/{{ $benefit->id }}/2" class="btn btn-success btn-sm">{{ __('insurance_benefits.add_procedures') }}</a>@endif
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>{{ __('insurance_benefits.services') }}</h4>
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</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>
|
||||
@if(isset($item_details['apply_opd_percentage']) && $item_details['apply_opd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->opd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->opd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['co_payment']) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(isset($item_details['apply_ipd_percentage']) && $item_details['apply_ipd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->ipd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->ipd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['ipd_co_payment'] ?? 0) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($item_details['capitation_fee']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if(Auth::user()->can('insurance-items-view'))<a href="/insurance_benefits/view_items/{{ $benefit->id }}/1" class="btn btn-primary btn-sm">{{ __('insurance_benefits.view_all_services') }}</a>@endif
|
||||
@if(Auth::user()->can('insurance-items-create'))<a href="/insurance_benefits/add_items/{{ $benefit->id }}/1" class="btn btn-success btn-sm">{{ __('insurance_benefits.add_services') }}</a>@endif
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>{{ __('insurance_benefits.investigations') }}</h4>
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</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>
|
||||
@if(isset($item_details['apply_opd_percentage']) && $item_details['apply_opd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->opd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->opd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['co_payment']) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(isset($item_details['apply_ipd_percentage']) && $item_details['apply_ipd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->ipd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->ipd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['ipd_co_payment'] ?? 0) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($item_details['capitation_fee']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if(Auth::user()->can('insurance-items-view'))<a href="/insurance_benefits/view_items/{{ $benefit->id }}/3" class="btn btn-primary btn-sm">{{ __('insurance_benefits.view_all_investigations') }}</a>@endif
|
||||
@if(Auth::user()->can('insurance-items-create'))<a href="/insurance_benefits/add_items/{{ $benefit->id }}/3" class="btn btn-success btn-sm">{{ __('insurance_benefits.add_investigations') }}</a>@endif
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>{{ __('insurance_benefits.drugs') }}</h4>
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</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>
|
||||
@if(isset($item_details['apply_opd_percentage']) && $item_details['apply_opd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->opd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->opd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['co_payment']) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(isset($item_details['apply_ipd_percentage']) && $item_details['apply_ipd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->ipd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->ipd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['ipd_co_payment'] ?? 0) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($item_details['capitation_fee']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if(Auth::user()->can('insurance-items-view'))<a href="/insurance_benefits/view_items/{{ $benefit->id }}/4" class="btn btn-primary btn-sm">{{ __('insurance_benefits.view_all_drugs') }}</a>@endif
|
||||
@if(Auth::user()->can('insurance-items-create'))<a href="/insurance_benefits/add_items/{{ $benefit->id }}/4" class="btn btn-success btn-sm">{{ __('insurance_benefits.add_drugs') }}</a>@endif
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>{{ __('insurance_benefits.sundries') }}</h4>
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</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>
|
||||
@if(isset($item_details['apply_opd_percentage']) && $item_details['apply_opd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->opd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->opd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['co_payment']) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(isset($item_details['apply_ipd_percentage']) && $item_details['apply_ipd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->ipd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->ipd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['ipd_co_payment'] ?? 0) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($item_details['capitation_fee']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if(Auth::user()->can('insurance-items-view'))<a href="/insurance_benefits/view_items/{{ $benefit->id }}/5" class="btn btn-primary btn-sm">{{ __('insurance_benefits.view_all_sundries') }}</a>@endif
|
||||
@if(Auth::user()->can('insurance-items-create'))<a href="/insurance_benefits/add_items/{{ $benefit->id }}/5" class="btn btn-success btn-sm">{{ __('insurance_benefits.add_sundries') }}</a>@endif
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>{{ __('insurance_benefits.inpatient_accommodation') }}</h4>
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.bed_category') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.type_of_pricing') }}</th>
|
||||
<th>{{ __('insurance_benefits.co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.chi_amount') }}</th>
|
||||
<th>{{ __('insurance_benefits.gender') }}</th>
|
||||
<th>{{ __('insurance_benefits.age_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$time_periods = [0 => 'Days', 1 => 'Months', 2 => 'Years'];
|
||||
$genders = [0 => 'All', 1 => 'Male', 2 => 'Female'];
|
||||
@endphp
|
||||
|
||||
@foreach($benefit_bed_categories as $record)
|
||||
@php $age_limits = explode(",", $record->age_limit); @endphp
|
||||
<tr>
|
||||
<td>{{ $bed_categories[$record->bed_category_id] ?? '' }}</td>
|
||||
<td>{{ $record->authorisation_required == 1 ? 'Yes' : 'No' }}</td>
|
||||
<td>{{ $record->cost_type == 1 ? 'Static' : 'Structured' }}</td>
|
||||
<td>{{ ugandan_shillings($record->cost_per_night ?? $record->cost_first_night) }}</td>
|
||||
<td>{{ ugandan_shillings($record->chi_cost_per_night ?? $record->chi_cost_first_night) }}</td>
|
||||
<td>{{ ($genders[$record->gender] ?? 'All') }}</td>
|
||||
<td>{{ ($age_limits[0] ?? "0") . ' to ' . ($age_limits[1] ?? "0") . ' ' . $time_periods[$record->age_type] ?? 'years' }}</td>
|
||||
<td>{{ ugandan_shillings($record->annual_member_limit) }}</td>
|
||||
<td>{{ ugandan_shillings($record->annual_family_limit) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if(Auth::user()->can('insurance-items-view'))<a href="/insurance_benefits/view_inpatient_accommodation/{{ $benefit->id }}" class="btn btn-primary btn-sm">{{ __('insurance_benefits.view_all_items') }}</a>@endif
|
||||
@if(Auth::user()->can('insurance-items-create'))<a href="/insurance_benefits/add_inpatient_accommodation/{{ $benefit->id }}" class="btn btn-success btn-sm">{{ __('insurance_benefits.add_items') }}</a>@endif
|
||||
</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',
|
||||
bInfo: false,
|
||||
bPaginate: true,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,95 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.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">{{ __('insurance_benefits.create_insurance_benefit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
{{ Form::model($benefit, ['method' => 'PUT', 'route' => ['insurance_benefits.update',$benefit], 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('insurance_benefits.benefit_name')) }}
|
||||
{{ Form::text('name', $benefit->name, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('waiting_period', __('insurance_benefits.waiting_period_days')) }}
|
||||
{{ Form::number('waiting_period', $benefit->waiting_period, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_member_limit', __('insurance_benefits.annual_member_limit') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
|
||||
{{ Form::number('annual_member_limit', $benefit->annual_member_limit, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('opd_percentage', __('insurance_benefits.opd_percentage') . ' (' . __('insurance_benefits.applied_to_cash_amount') . ')') }}
|
||||
{{ Form::number('opd_percentage', $benefit->opd_percentage, ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('ward_id', __('insurance_benefits.wards_benefit_will_be_applied_to')) }}
|
||||
{{ Form::select('ward_id[]', $wards, explode(",", $benefit->wards),['class' => 'form-control ward_id', 'data-error'=>'Select the ward', 'multiple']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('plan_id', __('insurance_benefits.plan')) }}
|
||||
{{ Form::select('plan_id', $insurance_plans, $benefit->plan_id, ['class' => 'form-control compulsory', 'required', 'id' => 'plan_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('fee', __('insurance_benefits.fee')) }}
|
||||
{{ Form::number('fee', $benefit->fee, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_family_limit', __('insurance_benefits.annual_family_limit') . ' (' . __('insurance_claims.no_limit_applicable') . ')') }}
|
||||
{{ Form::number('annual_family_limit', $benefit->annual_family_limit, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('ipd_percentage', __('insurance_benefits.ipd_percentage') . ' (' . __('insurance_benefits.applied_to_cash_amount') . ')') }}
|
||||
{{ Form::number('ipd_percentage', $benefit->ipd_percentage, ['class' => 'form-control', 'step' => '0.01']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('insurance_groups.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('insurance_groups.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#plan_id, .ward_id').select2({
|
||||
placeholder: "Select"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+229
@@ -0,0 +1,229 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.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">{{ __('insurance_benefits.inpatient_accommodation') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li><a href="/insurance_benefits/details/{{ $benefit->id }}">{{ __('insurance_benefits.insurance_benefits_details') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
<h3>{{ __('insurance_benefits.insurance_benefit') }}: {{ $benefit->name }}</h3>
|
||||
|
||||
<hr>
|
||||
|
||||
{{ Form::open(['route' => 'insurance_benefits.update_inpatient_accommodation']) }}
|
||||
|
||||
{{ Form::hidden('benefit_id', $benefit->id) }}
|
||||
{{ Form::hidden('rate_id', $rate->id) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('insurance_benefits.bed_category_name')) }}
|
||||
{{ Form::text('name', $bed_category->name, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name', __('bed_categories.type_of_pricing')) }}
|
||||
{{ Form::text('name', $bed_category->cost_type == 1 ? 'Static' : 'Structured', ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
@if($bed_category->cost_type == 1)
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_per_night', __('bed_categories.cost_per_night')) }}
|
||||
{{ Form::number('cost_per_night', $bed_category->cost_per_night, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
@else
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_first_night', __('bed_categories.cost_of_first_night')) }}
|
||||
{{ Form::number('cost_first_night', $bed_category->cost_first_night, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.from_night')}}</label>
|
||||
{{ Form::number('from_night', 2, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('bed_categories.to_night')}}</label>
|
||||
{{ Form::number('to_night', $bed_category->to_night, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_range', __('bed_categories.range_cost')) }}
|
||||
{{ Form::number('cost_range', $bed_category->cost_range, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_after', __('bed_categories.cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('cost_after', $bed_category->cost_after, ['class' => 'form-control', 'readonly']) }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-md-1"></div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="row" @if($bed_category->cost_type != 1) style="display: none" @endif>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_per_night', __('insurance_benefits.co_payment_cost_per_night')) }}
|
||||
{{ Form::number('cost_per_night', $rate->cost_per_night, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_per_night', __('insurance_benefits.chi_cost_per_night')) }}
|
||||
{{ Form::number('chi_cost_per_night', $rate->chi_cost_per_night, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div @if($bed_category->cost_type == 1) style="display: none" @endif>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_first_night', __('insurance_benefits.co_payment_cost_of_first_night')) }}
|
||||
{{ Form::number('cost_first_night', $rate->cost_first_night, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_first_night', __('insurance_benefits.chi_cost_of_first_night')) }}
|
||||
{{ Form::number('chi_cost_first_night', $rate->chi_cost_first_night, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_range', __('insurance_benefits.co_payment_range_cost')) }}
|
||||
{{ Form::number('cost_range', $rate->cost_range, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_range', __('insurance_benefits.chi_range_cost')) }}
|
||||
{{ Form::number('chi_cost_range', $rate->chi_cost_range, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cost_after', __('insurance_benefits.co_payment_cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('cost_after', $rate->cost_after, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_cost_after', __('insurance_benefits.chi_cost_for_nights_thereafter')) }}
|
||||
{{ Form::number('chi_cost_after', $rate->chi_cost_after, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_member_limit', __('insurance_benefits.annual_member_limit')) }}
|
||||
{{ Form::number('annual_member_limit', $rate->annual_member_limit, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('gender', __('insurance_benefits.gender')) }}
|
||||
{{ Form::select('gender', [0 => 'All', 1 => 'Male', 2 => 'Female'], $rate->gender, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_limit', __('insurance_benefits.age_limit')) }}
|
||||
|
||||
@php $age_limits = explode(",", $rate->age_limit); @endphp
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_limit_start',__('insurance_benefits.start')) }}
|
||||
{{ Form::number('age_limit_start',$age_limits[0],['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_limit_end',__('insurance_benefits.end')) }}
|
||||
{{ Form::number('age_limit_end',$age_limits[1],['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('annual_family_limit', __('insurance_benefits.annual_family_limit')) }}
|
||||
{{ Form::number('annual_family_limit', $rate->annual_family_limit, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('authorisation', __('insurance_benefits.authorisation')) }}
|
||||
|
||||
<br><br>
|
||||
|
||||
{{ Form::radio('authorisation', 1, $rate->authorisation == 1, ['required']) }} Yes
|
||||
{{ Form::radio('authorisation', 0, $rate->authorisation == 0, ['required']) }} No
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('age_type', __('insurance_benefits.age_type')) }}
|
||||
{{ Form::select('age_type', [0 => 'Days', 1 => 'Months', 2 => 'Years'], $rate->age_type, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('bed_categories.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('bed_categories.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
function set_authorisation(id, value) {
|
||||
$('#authorisation_value_' + id).val(value);
|
||||
}
|
||||
|
||||
$('#bed_category').select2({
|
||||
placeholder: "Select"
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
@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_benefits.insurance_benefit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li><a href="/insurance_benefits/details/{{ $benefit->id }}">{{ __('insurance_benefits.insurance_benefits_details') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
<h3>{{ __('insurance_benefits.insurance_benefit') }}: {{ $benefit->name }}</h3>
|
||||
<h4>{{ __('insurance_benefits.item_type') }}: {{ [1 => 'Services', 2 => 'Procedures', 3 => 'Investigations', 4 => 'Drugs', 5 => 'Sundries'][$item_type] }}</h4>
|
||||
|
||||
<hr>
|
||||
|
||||
@if(!is_null($benefit->opd_percentage))
|
||||
{{ Form::checkbox('apply_opd_percentage_all', 'OPD All', false, ['id' => "apply_opd_percentage_all"]) }} {{ __('insurance_benefits.apply_opd_percentage_all') }}
|
||||
|
||||
@endif
|
||||
|
||||
@if(!is_null($benefit->ipd_percentage))
|
||||
{{ Form::checkbox('apply_ipd_percentage_all', 'IPD All', false, ['id' => "apply_ipd_percentage_all"]) }} {{ __('insurance_benefits.apply_ipd_percentage_all') }}
|
||||
@endif
|
||||
|
||||
<br><br>
|
||||
|
||||
{{ Form::open(['route' => 'insurance_benefits.update_items']) }}
|
||||
|
||||
{{ Form::hidden('benefit_id', $benefit->id) }}
|
||||
{{ Form::hidden('item_type', $item_type) }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_member_limit') }} <span data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ __('insurance_claims.no_limit_applicable') }}"> <i class="fa fa-info-circle"></i></span></th>
|
||||
<th>{{ __('insurance_benefits.annual_family_limit') }} <span data-toggle="tooltip" rel="tooltip" data-placement="top" title="{{ __('insurance_claims.no_limit_applicable') }}"> <i class="fa fa-info-circle"></i></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($benefit_items as $record)
|
||||
@php $items_array = explode(",", $record->item_id); @endphp
|
||||
|
||||
@foreach($items_array as $item_id)
|
||||
@php
|
||||
|
||||
$item_details = get_item_insurance_details($item_id, $item_type, $benefit->id);
|
||||
|
||||
if (!$item_details) {continue;}
|
||||
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
{{ Form::hidden('item_id[]', $item_id) }}
|
||||
<td>{{ $items[$item_id] }}</td>
|
||||
<td>
|
||||
{{ Form::hidden('authorisation[]', $item_details['authorisation'], ['id' => 'authorisation_value_' . $item_id]) }}
|
||||
{{ Form::radio('authorisation_' . $item_id, 1, $item_details['authorisation'] == 1, ['onclick' => 'set_authorisation(' . $item_id . ', 1)']) }} Yes
|
||||
{{ Form::radio('authorisation_' . $item_id, 0, $item_details['authorisation'] == 0, ['onclick' => 'set_authorisation(' . $item_id . ', 0)']) }} No
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($item_details['cash_price']) }}</td>
|
||||
<td>
|
||||
@php $apply_opd_percentage_state = isset($item_details['apply_opd_percentage']) && ($item_details['apply_opd_percentage'] == 1) @endphp
|
||||
{{ Form::number('co_payment[]', $item_details['co_payment'], ['class' => 'form-control compulsory', 'required', 'min' => '0', 'id' => "co_payment_$item_id", ($apply_opd_percentage_state ? 'readonly' : '')]) }}
|
||||
@if(!is_null($benefit->opd_percentage))
|
||||
<br>
|
||||
{{ Form::checkbox('apply_opd_percentage[]', $item_id, $apply_opd_percentage_state, ['id' => "apply_opd_percentage_$item_id", 'class' => 'apply_opd_percentage']) }} {{ __('insurance_benefits.apply_opd_percentage') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@php $apply_ipd_percentage_state = isset($item_details['apply_ipd_percentage']) && ($item_details['apply_ipd_percentage'] == 1) @endphp
|
||||
{{ Form::number('ipd_co_payment[]', $item_details['ipd_co_payment'] ?? 0, ['class' => 'form-control compulsory', 'required', 'min' => '0', 'id' => "ipd_co_payment_$item_id", ($apply_ipd_percentage_state ? 'readonly' : '')]) }}
|
||||
@if(!is_null($benefit->ipd_percentage))
|
||||
<br>
|
||||
{{ Form::checkbox('apply_ipd_percentage[]', $item_id, $apply_ipd_percentage_state, ['id' => "apply_ipd_percentage_$item_id", 'class' => 'apply_ipd_percentage']) }} {{ __('insurance_benefits.apply_ipd_percentage') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ Form::number('capitation_fee[]', $item_details['capitation_fee'], ['class' => 'form-control compulsory', 'required', 'min' => '0']) }}</td>
|
||||
<td>{{ Form::number('annual_member_limit[]', $item_details['annual_member_limit'], ['class' => 'form-control compulsory', 'required', 'min' => '0']) }}</td>
|
||||
<td>{{ Form::number('annual_family_limit[]', $item_details['annual_family_limit'], ['class' => 'form-control compulsory', 'required', 'min' => '0']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-success btn-rounded pull-right">{{ __('payroll.submit') }}</button>
|
||||
|
||||
<hr>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
bInfo: false,
|
||||
bPaginate: true,
|
||||
buttons: []
|
||||
});
|
||||
|
||||
$(".table").on('change', "[id^=apply_opd_percentage_]", function () {
|
||||
let id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if($(this).is(":checked")) {
|
||||
$('#co_payment_' + id).val(0).prop('readonly', true);
|
||||
} else {
|
||||
$('#co_payment_' + id).prop('readonly', false);
|
||||
}
|
||||
}).on('change', "[id^=apply_ipd_percentage_]", function () {
|
||||
let id = /\d+(?=\D*$)/.exec($(this).attr('id'));
|
||||
|
||||
if($(this).is(":checked")) {
|
||||
$('#ipd_co_payment_' + id).val(0).prop('readonly', true);
|
||||
} else {
|
||||
$('#ipd_co_payment_' + id).prop('readonly', false);
|
||||
}
|
||||
});
|
||||
|
||||
$('#apply_opd_percentage_all').change(function () {
|
||||
if($(this).is(":checked")) {
|
||||
$(".apply_opd_percentage").each(function() {
|
||||
if(!$(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$(".apply_opd_percentage").each(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('#apply_ipd_percentage_all').change(function () {
|
||||
if($(this).is(":checked")) {
|
||||
$(".apply_ipd_percentage").each(function() {
|
||||
if(!$(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$(".apply_ipd_percentage").each(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$(this).click();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function set_authorisation(id, value) {
|
||||
$('#authorisation_value_' + id).val(value);
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
@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_benefits.insurance_benefits') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.insurance_benefits') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped color-bordered-table success-bordered-table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.benefit_name') }}</th>
|
||||
<th>{{ __('insurance_benefits.plan') }}</th>
|
||||
<th>{{ __('insurance_benefits.waiting_period_days') }}</th>
|
||||
<th>{{ __('insurance_benefits.fee') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.deactivated_at') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($insurance_benefits as $insurance_benefit)
|
||||
<tr>
|
||||
<td>{{ $insurance_benefit->name }}</td>
|
||||
<td>{{ $insurance_plans[$insurance_benefit->plan_id] }}</td>
|
||||
<td>{{ $insurance_benefit->waiting_period }}</td>
|
||||
<td>{{ ugandan_shillings($insurance_benefit->fee) }}</td>
|
||||
<td>{{ ugandan_shillings($insurance_benefit->annual_member_limit) }}</td>
|
||||
<td>{{ ugandan_shillings($insurance_benefit->annual_family_limit) }}</td>
|
||||
<td>{{ streamline_date_time($insurance_benefit->deleted_at) }}</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('insurance-benefits-inactive'))
|
||||
{{ Form::model($insurance_benefit->id ,['method' => 'POST', 'route' => ['insurance_benefits.activate', $insurance_benefit->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-warning" onclick="return confirm('<?php echo __('insurance_groups.are_you_sure')?>')"><i class="fa fa-check"></i> {{ __('insurance_groups.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</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',
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
@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_benefits.insurance_benefits') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.insurance_benefits') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped color-bordered-table success-bordered-table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.benefit_name') }}</th>
|
||||
<th>{{ __('insurance_benefits.plan') }}</th>
|
||||
<th>{{ __('insurance_benefits.waiting_period_days') }}</th>
|
||||
<th>{{ __('insurance_benefits.fee') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_percentage') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_percentage') }}</th>
|
||||
<th>{{ __('insurance_benefits.created_by') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($insurance_benefits as $insurance_benefit)
|
||||
<tr>
|
||||
<td>{{ $insurance_benefit->name }}</td>
|
||||
<td>{{ $insurance_plans[$insurance_benefit->plan_id] }}</td>
|
||||
<td>{{ $insurance_benefit->waiting_period }}</td>
|
||||
<td>{{ ugandan_shillings($insurance_benefit->fee) }}</td>
|
||||
<td>{{ ugandan_shillings($insurance_benefit->annual_member_limit) }}</td>
|
||||
<td>{{ ugandan_shillings($insurance_benefit->annual_family_limit) }}</td>
|
||||
<td>{{ $insurance_benefit->opd_percentage ?? 'N/A' }}</td>
|
||||
<td>{{ $insurance_benefit->ipd_percentage ?? 'N/A' }}</td>
|
||||
<td>{{ get_full_name($insurance_benefit->created_by, 'id', 'first_name', 'last_name', 'users') }} at {{ streamline_date_time($insurance_benefit->created_at) }}</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('insurance-benefits-view-details'))<a href="/insurance_benefits/details/{{ $insurance_benefit->id }}/" class="btn btn-rounded btn-success"><i class="fa fa-eye"></i> {{ __('insurance_benefits.view_items') }}</a>@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('insurance-benefits-edit'))<a href="/insurance_benefits/{{ $insurance_benefit->id }}/edit/" class="btn btn-rounded btn-warning"><i class="fa fa-pencil"></i> {{ __('insurance_groups.edit') }}</a>@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('insurance-benefits-inactive'))
|
||||
{{ Form::model($insurance_benefit->id ,['method' => 'DELETE', 'route' => ['insurance_benefits.destroy', $insurance_benefit->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-danger" onclick="return confirm('<?php echo __('clinics.are_you_sure');?>')"><i class="fa fa-trash"></i> {{ __('clinics.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</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',
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="white-box">
|
||||
@if(Auth::user()->can('insurance-benefits-create'))<a href="/insurance_benefits/create" class="nav-item btn btn-success" style="border-radius: 5px;"><i class="fa fa-plus"></i> <span style="margin-left: 10px">{{ __('insurance_benefits.create_insurance_benefit') }}</span></a>@endif
|
||||
@if(Auth::user()->can('insurance-benefits-view'))<a href="/insurance_benefits/" class="nav-item btn btn-info" style="border-radius: 5px;"><i class="fa fa-eye"></i> <span style="margin-left: 10px">{{ __('insurance_benefits.view_insurance_benefits') }}</span></a>@endif
|
||||
@if(Auth::user()->can('insurance-benefits-inactive'))<a href="/insurance_benefits/inactive" class="nav-item btn btn-danger" style="border-radius: 5px;"><i class="fa fa-trash"></i> <span style="margin-left: 10px">{{ __('insurance_benefits.inactive_insurance_benefits') }}</span></a>@endif
|
||||
</div>
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
@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_benefits.inpatient_accommodation_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li><a href="/insurance_benefits/details/{{ $benefit->id }}">{{ __('insurance_benefits.insurance_benefits_details') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
@php
|
||||
$time_periods = [0 => 'Days', 1 => 'Months', 2 => 'Years'];
|
||||
$genders = [0 => 'All', 1 => 'Male', 2 => 'Female'];
|
||||
$age_limits = explode(",", $rate->age_limit);
|
||||
@endphp
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
<h3>{{ __('insurance_benefits.insurance_benefit') }}: {{ $benefit->name }}</h3>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.bed_category_name') }}</b></td>
|
||||
<td>{{ $bed_category->name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('bed_categories.type_of_pricing') }}</b></td>
|
||||
<td>{{ $bed_category->cost_type == 1 ? 'Static' : 'Structured' }}</td>
|
||||
</tr>
|
||||
|
||||
@if($bed_category->cost_type == 1)
|
||||
<tr>
|
||||
<td><b>{{ __('bed_categories.cost_per_night') }}</b></td>
|
||||
<td>{{ ugandan_shillings($bed_category->cost_per_night) }}</td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td><b>{{ __('bed_categories.cost_of_first_night') }}</b></td>
|
||||
<td>{{ ugandan_shillings($bed_category->cost_first_night) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('bed_categories.night_ranges') }}</b></td>
|
||||
<td>2 - {{ $bed_category->to_night }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('bed_categories.range_cost') }}</b></td>
|
||||
<td>{{ ugandan_shillings($bed_category->cost_range) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('bed_categories.cost_for_nights_thereafter') }}</b></td>
|
||||
<td>{{ ugandan_shillings($bed_category->cost_after) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1"></div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
@if($bed_category->cost_type == 1)
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.co_payment_cost_per_night') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->cost_per_night) }}</td>
|
||||
<td><b>{{ __('insurance_benefits.chi_cost_per_night') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->chi_cost_per_night) }}</td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.co_payment_cost_of_first_night') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->cost_first_night) }}</td>
|
||||
<td><b>{{ __('insurance_benefits.chi_cost_of_first_night') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->chi_cost_first_night) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.co_payment_range_cost') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->cost_range) }}</td>
|
||||
<td><b>{{ __('insurance_benefits.chi_range_cost') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->chi_cost_range) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.co_payment_cost_for_nights_thereafter') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->cost_after) }}</td>
|
||||
<td><b>{{ __('insurance_benefits.chi_cost_for_nights_thereafter') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->chi_cost_after) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.annual_member_limit') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->annual_member_limit) }}</td>
|
||||
<td><b>{{ __('insurance_benefits.annual_family_limit') }}</b></td>
|
||||
<td>{{ ugandan_shillings($rate->annual_family_limit) }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.gender') }}</b></td>
|
||||
<td>{{ ($genders[$rate->gender] ?? 'All') }}</td>
|
||||
<td><b>{{ __('insurance_benefits.authorisation') }}</b></td>
|
||||
<td>{{ $rate->authorisation_required == 1 ? 'Yes' : 'No' }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('insurance_benefits.age_limit') }}</b></td>
|
||||
<td colspan="3">{{ ($age_limits[0] ?? "0") . ' to ' . ($age_limits[1] ?? "0") . ' ' . $time_periods[$rate->age_type] ?? 'years' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<a href="/insurance_benefits/edit_inpatient_accommodation/{{ $rate->id }}" class="btn btn-warning">{{ __('insurance_benefits.edit') }}</a>
|
||||
<a href="/insurance_benefits/delete_inpatient_accommodation/{{ $rate->id }}" class="btn btn-danger">{{ __('insurance_benefits.delete') }}</a>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script></script>
|
||||
@endpush
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
@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_benefits.inpatient_accommodation') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li><a href="/insurance_benefits/details/{{ $benefit->id }}">{{ __('insurance_benefits.insurance_benefits_details') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
<h3>{{ __('insurance_benefits.insurance_benefit') }}: {{ $benefit->name }}</h3>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.bed_category') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.type_of_pricing') }}</th>
|
||||
<th>{{ __('insurance_benefits.co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.chi_amount') }}</th>
|
||||
<th>{{ __('insurance_benefits.gender') }}</th>
|
||||
<th>{{ __('insurance_benefits.age_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$time_periods = [0 => 'Days', 1 => 'Months', 2 => 'Years'];
|
||||
$genders = [0 => 'All', 1 => 'Male', 2 => 'Female'];
|
||||
@endphp
|
||||
|
||||
@foreach($rates as $record)
|
||||
@php $age_limits = explode(",", $record->age_limit); @endphp
|
||||
<tr>
|
||||
<td>{{ $bed_categories[$record->bed_category_id] }}</td>
|
||||
<td>{{ $record->authorisation_required == 1 ? 'Yes' : 'No' }}</td>
|
||||
<td>{{ $record->cost_type == 1 ? 'Static' : 'Structured' }}</td>
|
||||
<td>{{ ugandan_shillings($record->cost_per_night ?? $record->cost_first_night) }}</td>
|
||||
<td>{{ ugandan_shillings($record->chi_cost_per_night ?? $record->chi_cost_first_night) }}</td>
|
||||
<td>{{ ($genders[$record->gender] ?? 'All') }}</td>
|
||||
<td>{{ ($age_limits[0] ?? "0") . ' to ' . ($age_limits[1] ?? "0") . ' ' . $time_periods[$record->age_type] ?? 'years' }}</td>
|
||||
<td>{{ ugandan_shillings($record->annual_member_limit) }}</td>
|
||||
<td>{{ ugandan_shillings($record->annual_family_limit) }}</td>
|
||||
<td>
|
||||
<a href="/insurance_benefits/view_accommodation_details/{{ $record->id }}" class="btn btn-success btn-sm">Details</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</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',
|
||||
bInfo: false,
|
||||
bPaginate: true,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+147
@@ -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_benefits.insurance_benefit') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_groups.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_benefits/">{{ __('insurance_benefits.insurance_benefits') }}</a></li>
|
||||
<li><a href="/insurance_benefits/details/{{ $benefit->id }}">{{ __('insurance_benefits.insurance_benefits_details') }}</a></li>
|
||||
<li class="active">{{ __('insurance_benefits.view') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('insurance::insurance_benefits.menu')
|
||||
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
<h3>{{ __('insurance_benefits.insurance_benefit') }}: {{ $benefit->name }}</h3>
|
||||
{{ Form::hidden('benefit_id', $benefit->id, ['id' => 'benefit_id']) }}
|
||||
{{ Form::hidden('item_type', $item_type, ['id' => 'item_type']) }}
|
||||
<h4>{{ __('insurance_benefits.item_type') }}: {{ [1 => 'Services', 2 => 'Procedures', 3 => 'Investigations', 4 => 'Drugs', 5 => 'Sundries'][$item_type] }}</h4>
|
||||
|
||||
@if(Auth::user()->can('insurance-items-edit'))<a href="/insurance_benefits/edit_items/{{ $benefit->id }}/{{ $item_type }}" class="btn btn-success btn-rounded">Edit Items</a>@endif
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_benefits.name') }}</th>
|
||||
<th>{{ __('insurance_benefits.authorisation') }}</th>
|
||||
<th>{{ __('insurance_benefits.cash_price') }}</th>
|
||||
<th>{{ __('insurance_benefits.opd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.ipd_co_payment') }}</th>
|
||||
<th>{{ __('insurance_benefits.capitation_fee') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_member_limit') }}</th>
|
||||
<th>{{ __('insurance_benefits.annual_family_limit') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($benefit_items as $record)
|
||||
@php $items_array = explode(",", $record->item_id); @endphp
|
||||
|
||||
@foreach($items_array as $item_id)
|
||||
@php $item_details = get_item_insurance_details($item_id, $item_type, $benefit->id); if (!$item_details) {continue;} @endphp
|
||||
|
||||
<tr>
|
||||
<td>{{ $items[$item_id] }}</td>
|
||||
<td>{{ $item_details['authorisation'] == 1 ? 'Yes' : 'No' }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['cash_price']) }}</td>
|
||||
<td>
|
||||
@if(isset($item_details['apply_opd_percentage']) && $item_details['apply_opd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->opd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->opd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['co_payment']) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(isset($item_details['apply_ipd_percentage']) && $item_details['apply_ipd_percentage'] == 1)
|
||||
{{ ugandan_shillings(($benefit->ipd_percentage / 100) * $item_details['cash_price']) }}
|
||||
<br><br>
|
||||
<i style="color: #990055">{{ $benefit->ipd_percentage . '% ' . __('insurance_benefits.of_cash_price') }}</i>
|
||||
@else
|
||||
{{ ugandan_shillings($item_details['ipd_co_payment'] ?? 0) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($item_details['capitation_fee']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_member_limit']) }}</td>
|
||||
<td>{{ ugandan_shillings($item_details['annual_family_limit']) }}</td>
|
||||
<td>@if(Auth::user()->can('insurance-tariffs-create'))<a href="javascript:void(0)" onclick="manage_tariffs({{ $item_id }})" class="btn btn-rounded btn-sm btn-success">Manage Tariffs</a>@endif</td>
|
||||
<td>@if(Auth::user()->can('insurance-items-remove'))<a href="/insurance_benefits/remove_item/{{ $item_id }}/{{ $item_type }}/{{ $benefit->id }}" class="btn btn-rounded btn-sm btn-danger" onclick="return confirm('Are you sure?')">Remove</a>@endif</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal" id="modal_item_tariffs" tabindex="-1" role="dialog" aria-labelledby="debt_plan_modal_label" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Item Tariffs</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="item_tariff_body"></div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-success btn-sm btn-rounded" href="#" id="item_tariff_link">Add Tariff to item</a>
|
||||
</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',
|
||||
bInfo: false,
|
||||
bPaginate: true,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
function manage_tariffs(id) {
|
||||
let benefit_id = $('#benefit_id').val();
|
||||
let item_type = $('#item_type').val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/insurance_tariffs/get_item_tariffs/' + benefit_id + '/' + id + '/' + item_type,
|
||||
success: function(response){
|
||||
$('#item_tariff_body').html(response);
|
||||
$("#item_tariff_link").attr("href", '/insurance_tariffs/add_tariff/' + benefit_id + '/' + id + '/' + item_type);
|
||||
$('#modal_item_tariffs').modal('show');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user