mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
resolved conflicts
This commit is contained in:
+144
@@ -0,0 +1,144 @@
|
||||
@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/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_reports.premium_report') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.insurance_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.premium_report') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
{{ Form::open(['route' => 'insurance_reports.cumulative_premiums_report']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('insurance_reports.start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class'=>'form-control', 'readonly', 'id'=>'start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('insurance_reports.end_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class'=>'form-control', 'readonly', 'id'=>'end_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::submit(__('insurance_reports.submit'), ['class'=>'btn btn-success pull-right']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h4><label class="label label-info">{{ $search_text }}</label></h4>
|
||||
<br><br>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_reports.group_name') }}</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.insurance_status') }}</th>
|
||||
<th>{{ __('insurance_reports.details') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1 @endphp
|
||||
@foreach($reports as $report)
|
||||
@php
|
||||
$amount = group_amount_sum_period($report->id, $start_date, $end_date);
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $report->name }}</td>
|
||||
<td>{{ ugandan_shillings($amount) }}</td>
|
||||
<td>{{ streamline_date($report->start_date) }}</td>
|
||||
<td>{{ streamline_date($report->end_date) }}</td>
|
||||
<td>{{ streamline_date($report->payment_date) }}</td>
|
||||
<td>
|
||||
@if (date('Y-m-d') < $report->end_date)
|
||||
<font color="green" ><strong>{{ __('insurance_reports.active') }}</strong></font>
|
||||
@else
|
||||
<font color="red"><strong>{{ __('insurance_reports.inactive') }}</strong></font>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($report->id ,['route' => ['insurance_reports.group_premiums_report']]) }}
|
||||
{{ Form::hidden('start_date', $start_date) }}
|
||||
{{ Form::hidden('end_date', $end_date) }}
|
||||
{{ Form::hidden('id', $report->id) }}
|
||||
|
||||
<button type="submit" class="btn btn-danger">{{ __('insurance_reports.details') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#start_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+232
@@ -0,0 +1,232 @@
|
||||
@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_reports.expired_CHI') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.expired_CHI') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['url' => 'expired_premiums_search', 'method' => 'ANY']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group" id="searchby">
|
||||
{{ Form::label('search_by', __('insurance_reports.date_of_expiry')) }}
|
||||
{{ Form::select('search_by', ['0'=>'Last 24 hours','1'=>'Custom Date','2'=>'Custom Range', '3'=>'All Expired Records'], '', ['class' => 'form-control','id'=>'search_by', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="display: none;" id="date_search">
|
||||
<div class="form-group" id="reg_date" style="padding-top: 23px;">
|
||||
<div class="input-group">
|
||||
{{ Form::text('reg_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6" style="display: none;" id="date_range_search">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('family_accounts.from')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date','',['class' => 'form-control compulsory','readonly','id'=>'datepicker-autoclose-1']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group" id="reg_date">
|
||||
{{ Form::label('end_date', __('family_accounts.to')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date','',['class' => 'form-control compulsory','readonly','id'=>'datepicker-autoclose-2']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group" style="padding-top: 5px;"><br>
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10', 'id'=>'select_patient']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
|
||||
<p class="text-muted m-b-30">{{ __('insurance_reports.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_reports.group_name') }}</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.contact_name') }}</th>
|
||||
<th>{{ __('insurance_reports.details') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{-- @php $counter = 1 @endphp
|
||||
@foreach($insurance_groups as $insurance_group)
|
||||
@php $amount = group_amount_sum($insurance_group->id); @endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $insurance_group->name }}</td>
|
||||
<td>{{ ugandan_shillings($amount) }}</td>
|
||||
<td>{{ streamline_date($insurance_group->start_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_group->end_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_group->payment_date) }}</td>
|
||||
<td>{{ $insurance_group->contact_name . ' [' . $insurance_group->contact_number . ']'}}</td>
|
||||
<td>
|
||||
<a href="/insurance_reports/expired_insurance_details/{{ $insurance_group->id }}" class="btn btn-success">{{ __('insurance_reports.details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@endforeach --}}
|
||||
@php $counter = 1 @endphp
|
||||
@if (count($insurance_premiums) > 0)
|
||||
@foreach($insurance_premiums as $record)
|
||||
@php
|
||||
$group_details = \Streamline\Models\InsuranceGroup::withTrashed()->find($record->group_id);
|
||||
@endphp
|
||||
@if ($group_details && ($record->end_date < date('Y-m-d')))
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>
|
||||
{{ $group_details->name }}
|
||||
<br><br>
|
||||
<u>{{ __('insurance_reports.covered_members') }}</u>
|
||||
@php
|
||||
$this_premium_covered_members_array = $record->covered_member_ids ? explode(",",$record->covered_member_ids) : [];
|
||||
$this_premium_each_member_contribution_array = $record->covered_member_premiums_paid ? explode(",",$record->covered_member_premiums_paid) : [];
|
||||
@endphp
|
||||
<ol>
|
||||
@for ($i = 0; $i < count($this_premium_covered_members_array); $i++)
|
||||
<li>{!! insurance_flag(get_name($this_premium_covered_members_array[$i], "id", "patient_id", "insurance_members")) !!} ({{ ugandan_shillings($this_premium_each_member_contribution_array[$i]) }})</li>
|
||||
@endfor
|
||||
</ol>
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($record->amount) }}</td>
|
||||
<td>{{ streamline_date($record->start_date) }}</td>
|
||||
<td>{{ streamline_date($record->end_date) }}</td>
|
||||
<td>{{ streamline_date($record->payment_date) }}</td>
|
||||
<td>{{ $group_details->contact_name . ' [' . $group_details->contact_number . ']'}}</td>
|
||||
<td>
|
||||
<a href="/insurance_reports/expired_insurance_details/{{ $record->group_id }}" class="btn btn-success">{{ __('insurance_reports.details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</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/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy',
|
||||
{
|
||||
extend: 'excel',
|
||||
message: 'LIST OF DRUGS',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
},
|
||||
{
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
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');
|
||||
},
|
||||
title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
$('#datepicker-autoclose,#datepicker-autoclose-1,#datepicker-autoclose-2').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
$('#search_by').change(function () {
|
||||
if ($(this).val() == 1) {
|
||||
$('#date_search').show();
|
||||
$('#date_range_search').hide();
|
||||
}
|
||||
else if ($(this).val() == 2) {
|
||||
$('#date_range_search').show();
|
||||
$('#date_search').hide();
|
||||
}
|
||||
else {
|
||||
$('#date_search,#date_range_search').hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
@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">{{ $group_name }} {{ __('insurance_reports.group_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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.insurance_reports') }}</a></li>
|
||||
<li class="active">{{ $group_name }} {{ __('insurance_reports.group_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-muted m-b-30">{{ __('insurance_reports.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.insurance_status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1 @endphp
|
||||
@foreach($insurance_subscriptions as $insurance_subscription)
|
||||
<tr>
|
||||
<td> {{ $counter }} </td>
|
||||
<td> {{ ugandan_shillings($insurance_subscription->amount) }} </td>
|
||||
<td> {{ streamline_date($insurance_subscription->start_date) }} </td>
|
||||
<td> {{ streamline_date($insurance_subscription->end_date) }} </td>
|
||||
<td> {{ streamline_date($insurance_subscription->payment_date) }} </td>
|
||||
<td><font color="red"><strong>{{ __('insurance_reports.inactive') }}</strong></font></td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@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>
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
@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_reports.CHI_reports') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.group_premium_reports') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_reports.group_name') }}</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.insurance_status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1 @endphp
|
||||
@foreach($group_transactions as $group_transaction)
|
||||
<tr>
|
||||
<td> {{ $counter }} </td>
|
||||
<td> {{ $insurance_groups[$group_transaction->group_id]}} </td>
|
||||
<td> {{ ugandan_shillings($group_transaction->amount) }} </td>
|
||||
<td> {{ streamline_date($group_transaction->start_date) }} </td>
|
||||
<td> {{ streamline_date($group_transaction->end_date) }} </td>
|
||||
<td> {{ streamline_date($group_transaction->payment_date) }} </td>
|
||||
<td>
|
||||
@if (date('Y-m-d') < $group_transaction->end_date)
|
||||
<font color="green" ><strong>{{ __('insurance_reports.active') }}</strong></font>
|
||||
@else
|
||||
<font color="red"><strong>{{ __('insurance_reports.inactive') }}</strong></font>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@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
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
@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_reports.deposit_income_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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.deposit_income_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h4><label class="label label-info">{{ $search_text }}</label></h4>
|
||||
<br><br>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_reports.patient_name') }}</th>
|
||||
<th>{{ __('insurance_reports.insurance_group') }}</th>
|
||||
<th>{{ __('insurance_reports.deposit') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; $total = 0; @endphp
|
||||
@foreach($service_deposits as $service_deposit)
|
||||
@php
|
||||
$array_items = explode(",", $service_deposit->items_ids);
|
||||
$array_amounts = explode(",", $service_deposit->patient_amount_paid);
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{!! insurance_flag($service_deposit->patient_id) !!}</td>
|
||||
<td>
|
||||
{{ get_name(get_name($service_deposit->patient_id, 'patient_id', 'group_id', 'insurance_members'), 'id', 'name', 'insurance_groups') }}
|
||||
</td>
|
||||
<td>
|
||||
<ol>
|
||||
@for($i = 0; $i < count($array_items); $i++)
|
||||
<li>
|
||||
{{ get_name($array_items[$i], 'id', 'name', 'services') }}
|
||||
</li>
|
||||
@endfor
|
||||
</ol>
|
||||
</td>
|
||||
<td>{{ $service_deposit->created_at }}</td>
|
||||
<td>
|
||||
<ol>
|
||||
@for($i = 0; $i < count($array_amounts); $i++)
|
||||
|
||||
@php
|
||||
if (!is_numeric($array_amounts[$i])){
|
||||
continue;
|
||||
}
|
||||
$total += $array_amounts[$i];
|
||||
@endphp
|
||||
<li>
|
||||
{{ ugandan_shillings($array_amounts[$i]) }}
|
||||
</li>
|
||||
@endfor
|
||||
</ol>
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@endforeach
|
||||
<tr>
|
||||
<td colspan="5">{{ __('insurance_reports.total') }}</td>
|
||||
<td>{{ ugandan_shillings($total) }}</td>
|
||||
</tr>
|
||||
</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>
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<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_reports.insurance_expenditure') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.insurance_expenditure') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'insurance_reports.insurance_expenditure']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('insurance_reports.start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class'=>'form-control', 'readonly', 'id'=>'start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('insurance_reports.end_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class'=>'form-control', 'readonly', 'id'=>'end_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::select('group_id',$insurance_groups_select,'',['class' => 'form-control', 'id' => 'insurance_groups']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::submit(__('insurance_reports.submit'), ['class'=>'btn btn-success pull-right']) }}
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="white-box">
|
||||
|
||||
<h4>
|
||||
<label class="label label-info">
|
||||
{{ __('insurance_reports.from') }} {{ streamline_date($start_date) }} {{ __('insurance_reports.to') }} {{ streamline_date($end_date) }}
|
||||
|
||||
@if(isset($group_id) && $group_id != 0)
|
||||
Group: {{ get_name($group_id, 'id', 'name', 'insurance_groups') }}
|
||||
@endif
|
||||
</label>
|
||||
</h4>
|
||||
<br><br>
|
||||
<table class="table table-striped table-bordered" id="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Item</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ __('insurance_reports.expenditure_on_drugs') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_expenditure_details/4">{{ ugandan_shillings($drugs_total) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('insurance_reports.expenditure_on_investigations') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_expenditure_details/3">{{ ugandan_shillings($investigations_total) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('insurance_reports.expenditure_on_procedures') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_expenditure_details/2">{{ ugandan_shillings($procedures_total) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('insurance_reports.expenditure_on_sundries') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_expenditure_details/5">{{ ugandan_shillings($sundries_total) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('insurance_reports.expenditure_on_services') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_expenditure_details/1">{{ ugandan_shillings($services_total) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('insurance_reports.expenditure_on_inpatient_accommodation') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_expenditure_details/6">{{ ugandan_shillings($bed_stay_total) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('insurance_reports.total_expenditure') }}</td>
|
||||
<td>{{ ugandan_shillings($total) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<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/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/jszip.min.js') }}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#insurance_groups').select2({
|
||||
placeholder: "-- select group --"
|
||||
});
|
||||
|
||||
$('#end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
|
||||
$('#start_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
order:[],
|
||||
paging:false,
|
||||
searching:false,
|
||||
bInfo:false,
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
@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_reports.chi_expenditure_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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.chi_expenditure_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<h2 class="text-center">{{ $item_type_name . ' expenditure from ' . streamline_date($start_date) . ' to ' . streamline_date($end_date) }}</h2>
|
||||
|
||||
<hr>
|
||||
|
||||
<p class="text-muted m-b-30">{{ __('insurance_reports.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_reports.patient_name') }}</th>
|
||||
<th>{{ __('insurance_reports.items') }}</th>
|
||||
<th>{{ __('insurance_reports.quantities') }}</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.date_paid') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $total = 0; @endphp
|
||||
@foreach($insurance_claims as $insurance_claim)
|
||||
<tr>
|
||||
<td>{!! insurance_flag($insurance_claim->patient_id) !!} ({{ get_name($insurance_claim->patient_id, 'id', 'number', 'patients') }})</td>
|
||||
@php
|
||||
$item_ids = explode(",", $insurance_claim->item_ids);
|
||||
$item_quantities = explode(",", $insurance_claim->item_quantities);
|
||||
@endphp
|
||||
<td>
|
||||
<ul>
|
||||
@for($i = 0; $i < count($item_ids); $i++)
|
||||
@if($item_type != 6)
|
||||
<li>{{ $items[$item_ids[$i]] ?? '' }}</li>
|
||||
@else
|
||||
<li>{{ $items[get_name($item_ids[$i], 'id', 'bed_category_id', 'insurance_inpatient_accommodation_rates')] ?? '' }}</li>
|
||||
@endif
|
||||
@endfor
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
@for($i = 0; $i < count($item_quantities); $i++)
|
||||
<li>{{ $item_quantities[$i] }}</li>
|
||||
@endfor
|
||||
</ul>
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($insurance_claim->primary_plan_claim_total) }}</td>
|
||||
<td>{{ streamline_date_time($insurance_claim->created_at) }}</td>
|
||||
</tr>
|
||||
@php $total += $insurance_claim->primary_plan_claim_total; @endphp
|
||||
@endforeach
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><b>{{ __('insurance_reports.total') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total) }}</b></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</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>
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
bInfo: false,
|
||||
bPaginate: false,
|
||||
ordering: false,
|
||||
buttons: [
|
||||
{
|
||||
extend: 'pdf',
|
||||
title: '{{ __('insurance_reports.chi_expenditure_details') }}'
|
||||
},
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+219
@@ -0,0 +1,219 @@
|
||||
@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/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_reports.chi_income_received') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.chi_income') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="panel panel-default col-md-4">
|
||||
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'insurance_reports.insurance_income_received']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('insurance_reports.start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class'=>'form-control', 'readonly', 'id'=>'start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('insurance_reports.end_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class'=>'form-control', 'readonly', 'id'=>'end_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::submit(__('insurance_reports.submit'), ['class'=>'btn btn-success pull-right']) }}
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<h4><label class="label label-info">{{ $search_text }}</label></h4>
|
||||
<br><br>
|
||||
|
||||
{{-- <h5>{{ __('insurance_reports.received_premiums') }}</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th width="170px">{{ __('insurance_reports.total_premiums') }}</th>
|
||||
<td><a href="/insurance_reports/insurance_income_received_details">{{ ugandan_shillings($premiums) }}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h5>{{ __('insurance_reports.received_co_payments') }}</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th width="170px">{{ __('insurance_reports.total_co_payments') }}</th>
|
||||
<td><a href="/insurance_reports/insurance_deposit_income">{{ ugandan_shillings($co_payments) }}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h5>{{ __('insurance_reports.total_income') }}</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th width="170px">{{ __('insurance_reports.total_income') }}</th>
|
||||
<td>{{ ugandan_shillings($total) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h5>{{ __('insurance_reports.total_expenditure') }}</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th width="170px">{{ __('insurance_reports.total_expenditure') }}</th>
|
||||
<td><a href="/insurance_reports/insurance_expenditure">{{ ugandan_shillings($expenditure_total) }}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<h5>{{ __('insurance_reports.net_profit') }}</h5>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th width="170px">{{ __('insurance_reports.net_profit') }}</th>
|
||||
<td>{{ ugandan_shillings($total - $expenditure_total) }}</td>
|
||||
</tr>
|
||||
</table> --}}
|
||||
<table class="table color-bordered-table success-bordered-table" id="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="60%">{{ __('insurance_reports.total_premiums') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_income_received_details">{{ ugandan_shillings($premiums) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%">{{ __('insurance_reports.total_co_payments') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_deposit_income">{{ ugandan_shillings($co_payments) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%">{{ __('insurance_reports.total_income') }}</td>
|
||||
<td>{{ ugandan_shillings($total) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%">{{ __('insurance_reports.total_expenditure') }}</td>
|
||||
<td><a href="/insurance_reports/insurance_expenditure">{{ ugandan_shillings($expenditure_total) }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%">{{ __('insurance_reports.net_profit') }}</td>
|
||||
<td>{{ ugandan_shillings($total - $expenditure_total) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<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/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/jszip.min.js') }}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
|
||||
$('#start_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
ordering:false,
|
||||
paging:false,
|
||||
searching:false,
|
||||
bInfo:false,
|
||||
// buttons: [
|
||||
// 'copy',
|
||||
// {
|
||||
// extend: 'excel',
|
||||
// message: 'LIST OF DRUGS',
|
||||
// exportOptions: {
|
||||
// columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
// },
|
||||
// title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
// },
|
||||
// {
|
||||
// extend: 'csv',
|
||||
// exportOptions: {
|
||||
// columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
// },
|
||||
// title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
// },
|
||||
// {
|
||||
// extend: 'pdf',
|
||||
// exportOptions: {
|
||||
// columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
// },
|
||||
// title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
// },
|
||||
// {
|
||||
// extend: 'print',
|
||||
// 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');
|
||||
// },
|
||||
// title:'{{ __('insurance_reports.expired_CHI') }}'
|
||||
// },
|
||||
// ]
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
@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_reports.chi_income_received') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.income_received_from_premiums') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h4><label class="label label-info">{{ $search_text }}</label></h4>
|
||||
<br><br>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_reports.group_name') }}</th>
|
||||
<th>{{ __('insurance_reports.family_name') }}</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$total_amount = 0;
|
||||
@endphp
|
||||
@foreach($insurance_subscriptions as $insurance_subscription)
|
||||
|
||||
@php
|
||||
$explodeFamilyId = explode(",", $insurance_subscription->family_heads);
|
||||
$explodeFamilyAmount = explode(",", $insurance_subscription->family_amount);
|
||||
$count = count($explodeFamilyId);
|
||||
$total_group_amount = array_sum($explodeFamilyAmount);
|
||||
$total_amount += $total_group_amount;
|
||||
$rowspan = $count +1;
|
||||
@endphp
|
||||
<tr>
|
||||
<td rowspan='<?php echo $count + 1; ?>'>{{ get_name($insurance_subscription->group_id, 'id', 'name', 'insurance_groups') }}</td>
|
||||
<td>{{ get_name($explodeFamilyId[0], 'id', 'name', 'insurance_heads_of_family') }}</td>
|
||||
<td>{{ ugandan_shillings($explodeFamilyAmount[0]) }}</td>
|
||||
<td>{{ streamline_date($insurance_subscription->start_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_subscription->end_date) }}</td>
|
||||
</tr>
|
||||
@for($i = 1; $i < count($explodeFamilyId); $i++)
|
||||
<tr>
|
||||
@for ($t=1; $t<$rowspan; $t++)
|
||||
<td style="display: none;"></td>
|
||||
@endfor
|
||||
<td>{{ get_name($explodeFamilyId[$i], 'id', 'name', 'insurance_heads_of_family') }}</td>
|
||||
<td>{{ isset($explodeFamilyAmount[$i]) ? ugandan_shillings($explodeFamilyAmount[$i]) : ugandan_shillings(0) }}</td>
|
||||
<td>{{ streamline_date($insurance_subscription->start_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_subscription->end_date) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
<tr>
|
||||
@for ($a=1; $a<$rowspan; $a++)
|
||||
<td style="display: none;"></td>
|
||||
@endfor
|
||||
<td><b>{{ __('insurance_reports.group_total') }}</b></td>
|
||||
<td>{{ ugandan_shillings($total_group_amount) }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@if (count($single_group_receipts) > 0)
|
||||
<tr>
|
||||
<td colspan="3"><b>{{ __('insurance_reports.single_group_receipts') }}</b></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
@foreach ($single_group_receipts as $group_receipts)
|
||||
<tr>
|
||||
<td>{{ get_name($group_receipts->group_id, 'id', 'name', 'insurance_groups') }}</td>
|
||||
<td></td>
|
||||
<td>{{ ugandan_shillings($group_receipts->amount) }}</td>
|
||||
<td>{{ streamline_date($group_receipts->start_date) }}</td>
|
||||
<td>{{ streamline_date($group_receipts->end_date) }}</td>
|
||||
</tr>
|
||||
@php $total_amount += $group_receipts->amount; @endphp
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><b>{{ __('insurance_reports.total') }}</b></td>
|
||||
<td>{{ ugandan_shillings($total_amount) }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</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>
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
ordering:false,
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+173
@@ -0,0 +1,173 @@
|
||||
@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/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_reports.chi_premiums_collected') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.CHI_transactions') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
@include('errors.list')
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'insurance_reports.insurance_transactions']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('insurance_reports.start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class'=>'form-control', 'readonly', 'id'=>'start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('insurance_reports.end_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class'=>'form-control', 'readonly', 'id'=>'end_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::submit(__('insurance_reports.submit'), ['class'=>'btn btn-success pull-right']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
<hr>
|
||||
|
||||
<h4><label class="label label-info">{{ $search_text }}</label></h4>
|
||||
<br><br>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_reports.group_name') }}</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.received_on') }}</th>
|
||||
<th>{{ __('insurance_reports.received_by') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; $total_amount = 0; @endphp
|
||||
@foreach($insurance_transactions as $insurance_transaction)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $insurance_groups[$insurance_transaction->group_id] }}</td>
|
||||
<td>{{ ugandan_shillings($insurance_transaction->amount) }}</td>
|
||||
<td>{{ streamline_date($insurance_transaction->start_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_transaction->end_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_transaction->payment_date) }}</td>
|
||||
<td>{{ streamline_date_time($insurance_transaction->created_at) }}</td>
|
||||
<td>{{ get_full_name($insurance_transaction->created_by, 'id', 'first_name', 'last_name', 'users') }}</td>
|
||||
</tr>
|
||||
@php $counter++; $total_amount += $insurance_transaction->amount; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h3>Total Premiums Collected: {{ ugandan_shillings($total_amount) }}</h3>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<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/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/jszip.min.js') }}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
|
||||
$('#start_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy',
|
||||
{
|
||||
extend: 'excel',
|
||||
message: 'LIST OF DRUGS',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
title:'{{ __('insurance_reports.chi_premiums_collected') }}'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
title:'{{ __('insurance_reports.chi_premiums_collected') }}'
|
||||
},
|
||||
{
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
title:'{{ __('insurance_reports.chi_premiums_collected') }}'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
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');
|
||||
},
|
||||
title:'{{ __('insurance_reports.chi_premiums_collected') }}'
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+241
@@ -0,0 +1,241 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<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" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.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_reports.insurance_about_to_expire') }}</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_reports.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('insurance.index') }}">{{ __('insurance_reports.insurance_reports') }}</a></li>
|
||||
<li class="active">{{ __('insurance_reports.insurance_about_to_expire') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
{{ Form::open(['route' => 'insurance_reports.view_expiry_status']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('group_id', 'GROUP NAME') }}
|
||||
{{ Form::select('group_id', $insurance_group_options, '', ['class' => 'form-control group_id', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group" style="display: none;" id="searchby">
|
||||
{{ Form::label('search_by', __('patient_flow_monitoring.date')) }}
|
||||
{{ Form::select('search_by', ['4'=>'Today', '0'=>'Last 24 hours','1'=>'Custom Date','2'=>'Custom Range'], '', ['class' => 'form-control','id'=>'search_by', 'required']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="display: none;" id="date_search">
|
||||
<div class="form-group" id="reg_date" style="padding-top: 23px;">
|
||||
<div class="input-group">
|
||||
{{ Form::text('reg_date','',['class' => 'form-control compulsory', 'required','readonly','id'=>'datepicker-autoclose']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="display: none;" id="date_range_search">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('patient_flow_monitoring.from')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date','',['class' => 'form-control compulsory','readonly','id'=>'datepicker-autoclose-1']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group" id="reg_date">
|
||||
{{ Form::label('end_date', __('patient_flow_monitoring.to')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date','',['class' => 'form-control compulsory','readonly','id'=>'datepicker-autoclose-2']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1">
|
||||
<div class="form-group" style="padding-top: 5px;"><br>
|
||||
{{ Form::button(__('patient_flow_monitoring.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10', 'id'=>'select_patient']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-muted m-b-30">{{ __('insurance_reports.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_reports.group_name') }}</th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.insurance_status') }}</th>
|
||||
<th>{{ __('insurance_reports.details') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1 @endphp
|
||||
@foreach($insurance_groups as $insurance_group)
|
||||
@php
|
||||
$amount = group_amount_sum($insurance_group->id);
|
||||
|
||||
$dateToday = date('Y-m-d');
|
||||
$date1 = date_create($dateToday);
|
||||
$date2 = date_create($insurance_group->end_date);
|
||||
$diff = date_diff($date1, $date2);
|
||||
$days = ($diff->format("%R%a "));
|
||||
@endphp
|
||||
|
||||
@if($days <= 30)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $insurance_group->name }}</td>
|
||||
<td>{{ ugandan_shillings($amount) }}</td>
|
||||
<td>{{ streamline_date($insurance_group->start_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_group->end_date) }}</td>
|
||||
<td>{{ streamline_date($insurance_group->payment_date) }}</td>
|
||||
<td>
|
||||
@if(date('Y-m-d') > $insurance_group->end_date)
|
||||
<font color="red"><strong>{{ __('insurance_reports.inactive') }}</strong></font>
|
||||
@else
|
||||
<font color="green" ><strong>{{ __('insurance_reports.active') }}</strong></font>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a href="/insurance_reports/view_expiry_status_details/{{ $insurance_group->id }}" class="btn btn-success">{{ __('insurance_reports.details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<p>{{ __('insurance_reports.total_insurance_transactions') }}: {{ ugandan_shillings($total_insurance) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<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>
|
||||
$('.group_id').select2({
|
||||
placeholder: "Select"
|
||||
});
|
||||
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 50,
|
||||
ordering:false,
|
||||
buttons: [
|
||||
'copy',
|
||||
{
|
||||
extend: 'excel',
|
||||
message: 'LIST OF DRUGS',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
title:'{{ __('insurance_reports.insurance_about_to_expire') }}'
|
||||
},
|
||||
{
|
||||
extend: 'csv',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
title:'{{ __('insurance_reports.insurance_about_to_expire') }}'
|
||||
},
|
||||
{
|
||||
extend: 'pdf',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
title:'{{ __('insurance_reports.insurance_about_to_expire') }}'
|
||||
},
|
||||
{
|
||||
extend: 'print',
|
||||
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');
|
||||
},
|
||||
title:'{{ __('insurance_reports.insurance_about_to_expire') }}'
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
$('#datepicker-autoclose,#datepicker-autoclose-1,#datepicker-autoclose-2,#ward_admission_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
|
||||
$('#search_by').change(function () {
|
||||
if ($(this).val() == 1) {
|
||||
$('#date_search').show();
|
||||
$('#date_range_search').hide();
|
||||
}
|
||||
else if ($(this).val() == 2) {
|
||||
$('#date_range_search').show();
|
||||
$('#date_search').hide();
|
||||
}
|
||||
else {
|
||||
$('#date_search,#date_range_search').hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
@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-4 col-md-6 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ $group_name }} {{ __('insurance_reports.premiums_history') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-8 col-sm-8 col-md-6 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_reports.dashboard') }}</a></li>
|
||||
<li><a class="active"> {{ __('insurance_reports.CHI_reports') }}</a></li>
|
||||
<li class="active">{{ $group_name }} {{ __('insurance_reports.details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-muted m-b-30">{{ __('insurance_reports.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th></th>
|
||||
<th>{{ __('insurance_reports.amount_paid') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_reports.payment_date') }}</th>
|
||||
<th>{{ __('insurance_reports.insurance_status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1 @endphp
|
||||
@foreach($insurance_subscriptions as $insurance_subscription)
|
||||
<tr>
|
||||
<td> {{ $counter }} </td>
|
||||
<td>
|
||||
@php
|
||||
$this_premium_covered_members_array = $insurance_subscription->covered_member_ids ? explode(",",$insurance_subscription->covered_member_ids) : [];
|
||||
@endphp
|
||||
<ol>
|
||||
@for ($i = 0; $i < count($this_premium_covered_members_array); $i++)
|
||||
<li>{!! insurance_flag(get_name($this_premium_covered_members_array[$i], "id", "patient_id", "insurance_members")) !!}</li>
|
||||
@endfor
|
||||
</ol>
|
||||
</td>
|
||||
<td> {{ ugandan_shillings($insurance_subscription->amount) }} </td>
|
||||
<td> {{ streamline_date($insurance_subscription->start_date) }} </td>
|
||||
<td> {{ streamline_date($insurance_subscription->end_date) }} </td>
|
||||
<td> {{ streamline_date($insurance_subscription->payment_date) }} </td>
|
||||
<td>
|
||||
@if (date('Y-m-d') < $insurance_subscription->end_date)
|
||||
<font color="green" ><strong>{{ __('insurance_reports.active') }}</strong></font>
|
||||
@else
|
||||
<font color="red"><strong>{{ __('insurance_reports.inactive') }}</strong></font>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@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>
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user