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:
+346
@@ -0,0 +1,346 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.central_billing_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.central_billing_receipt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_name') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(isset($service_ids_array) && count($service_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($service_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $service_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
@php $service_total += $service_prices_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Services</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($service_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($procedure_ids_array) && count($procedure_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($procedure_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $procedure_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
@php $procedure_total += $procedure_amounts_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Procedures</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($procedure_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($investigation_ids_array) && count($investigation_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($investigation_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $invs_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
@php $invs_total += $investigation_amounts_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Investigations</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($invs_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($treatment_item) && count($treatment_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_item[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($treatment_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $treatment_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
@php $treatment_total += $treatment_subtotal[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Treatment</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($treatment_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($sundry_item) && count($sundry_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($sundry_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $sundry_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
@php $sundry_total += $sundry_subtotal[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Sundries</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($sundry_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($optic_item))
|
||||
@for($i = 0; $i < count($optic_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($optic_item[$i], "id", "name", "eye_glasses") }}</td>
|
||||
<td>{{ $optic_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($optic_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} To Pay</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($treatment_balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.progressive_treatment_balance') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($treatment_balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+298
@@ -0,0 +1,298 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Patient Receipt - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body{
|
||||
font-size: 0.8em;
|
||||
}
|
||||
/*thead, tfoot { display: table-row-group }*/
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_names') }}</b></td>
|
||||
<td>{{ $patient->first_name }} {{ $patient->last_name }}</td>
|
||||
<td><b>{{ __('patient_finance.patient_number') }}</b></td>
|
||||
<td>{{ $patient->number }}</td>
|
||||
<td><b>{{ __('patient_finance.patient_category') }}</b></td>
|
||||
<td>{{ get_name($patient->category_id, "id", "name", "patient_categories") }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.date') }}</b></td>
|
||||
<td colspan="2">{{ streamline_date_time_short($receipt_date) }}</td>
|
||||
<td><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif</b></td>
|
||||
<td colspan="2">{{ $receipt_number }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<table class="table table-bordered" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(isset($service_ids_array) && count($service_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($service_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $service_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
@php $service_total += $service_prices_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Services</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($service_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($procedure_ids_array) && count($procedure_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($procedure_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $procedure_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
@php $procedure_total += $procedure_amounts_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Procedures</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($procedure_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($investigation_ids_array) && count($investigation_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($investigation_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $invs_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
@php $invs_total += $investigation_amounts_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Investigations</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($invs_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($treatment_item) && count($treatment_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_item[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($treatment_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $treatment_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
@php $treatment_total += $treatment_subtotal[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Treatments</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($treatment_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($sundry_item) && count($sundry_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($sundry_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $sundry_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
@php $sundry_total += $sundry_subtotal[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Sundries</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($sundry_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($optic_item))
|
||||
@for($i = 0; $i < count($optic_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($optic_item[$i], "id", "name", "eye_glasses") }}</td>
|
||||
<td>{{ $optic_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($optic_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} To Pay</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($treatment_balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.progressive_treatment_balance') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($treatment_balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<i style="font-size: 0.8em; float: left">© {{ date('Y') }} Stre@mline</i>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i style="float: right">{{ __('patient_finance.printed_on') }} {{ date(" d M Y h:ia") }} {{ __('patient_finance.by') }} {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+204
@@ -0,0 +1,204 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.central_billing_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.central_billing_receipt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
<div class="row" style="float:right;"><button class="btn btn-success glyphicon glyphicon-print" onclick="print_receipt()"> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.original_print_date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.reprint_date') }}:</b> {{ streamline_date_time_short(date('Y-m-d H:i:s')) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}:</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_name') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
@php $total_amount_pay = 0; @endphp
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(isset($service_ids_array) && count($service_ids_array) > 0)
|
||||
<tr>
|
||||
<td colspan="3" class="text-center"><b>{{ __('patient_finance.services') }}</b></td>
|
||||
</tr>
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($service_prices_array[$i]) }}</td>
|
||||
@php $total_amount_pay += $service_prices_array[$i]; @endphp
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($procedure_ids_array) && count($procedure_ids_array) > 0)
|
||||
<tr>
|
||||
<td colspan="3" class="text-center"><b>{{ __('patient_finance.procedures') }}</b></td>
|
||||
</tr>
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($procedure_amounts_array[$i]) }}</td>
|
||||
@php $total_amount_pay += $procedure_amounts_array[$i]; @endphp
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($investigation_ids_array) && count($investigation_ids_array) > 0)
|
||||
<tr>
|
||||
<td colspan="3" class="text-center"><b>{{ __('patient_finance.investigations') }}</b></td>
|
||||
</tr>
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($investigation_amounts_array[$i]) }}</td>
|
||||
@php $total_amount_pay += $investigation_amounts_array[$i]; @endphp
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($treatment_item) && count($treatment_item) > 0)
|
||||
<tr>
|
||||
<td colspan="3" class="text-center"><b>{{ __('patient_finance.drugs') }}</b></td>
|
||||
</tr>
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_item[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($treatment_subtotal[$i]) }}</td>
|
||||
@php $total_amount_pay += $treatment_subtotal[$i]; @endphp
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($sundry_item) && count($sundry_item) > 0)
|
||||
<tr>
|
||||
<td colspan="3" class="text-center"><b>{{ __('patient_finance.sundries') }}</b></td>
|
||||
</tr>
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($sundry_subtotal[$i]) }}</td>
|
||||
@php $total_amount_pay += $sundry_subtotal[$i]; @endphp
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_amount_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(($total_amount_pay - $patient_to_pay) > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay - $patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+373
@@ -0,0 +1,373 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.chi_deposit_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.chi_deposit_receipt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
@if (!empty(session()->get('episode_id')))
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row" style="float:right;"><button class="btn btn-success glyphicon glyphicon-print" onclick="print_receipt()"> {{ __('patient_finance.print') }}</button></div>
|
||||
@endif
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }} :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_name') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(isset($service_ids_array) && count($service_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($service_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($service_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($service_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $service_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
@php $service_total += $service_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Services</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($service_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($procedure_ids_array) && count($procedure_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($procedure_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($procedure_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($procedure_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $procedure_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
@php $procedure_total += $procedure_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Procedures</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($procedure_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($investigation_ids_array) && count($investigation_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($investigation_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($investigation_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($investigation_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $invs_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
@php $invs_total += $investigation_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Investigations</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($invs_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($treatment_item) && count($treatment_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_item[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity[$i] }}</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($treatment_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($treatment_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($treatment_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $treatment_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
@php $treatment_total += $treatment_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Treatment</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($treatment_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($sundry_item) && count($sundry_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($sundry_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($sundry_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($sundry_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $sundry_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
@php $sundry_total += $sundry_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Sundries</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($sundry_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($chi_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.chi_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($chi_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_co_payment') }}</b></td>
|
||||
<td>
|
||||
<b>{{ ugandan_shillings($patient_co_payment) }}</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr><td colspan="3"></td></tr>
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && !empty($one_off_discount_memo))
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+315
@@ -0,0 +1,315 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Patient Receipt - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body{
|
||||
font-size: 0.8em;
|
||||
}
|
||||
/*thead, tfoot { display: table-row-group }*/
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_names') }}</b></td>
|
||||
<td>{{ $patient->first_name }} {{ $patient->last_name }}</td>
|
||||
<td><b>{{ __('patient_finance.patient_number') }}</b></td>
|
||||
<td>{{ $patient->number }}</td>
|
||||
<td><b>{{ __('patient_finance.patient_category') }}</b></td>
|
||||
<td>{{ get_name($patient->category_id, "id", "name", "patient_categories") }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.date') }}</b></td>
|
||||
<td>{{ streamline_date_time_short($receipt_date) }}</td>
|
||||
<td><b>{{ __('patient_finance.receipt_number') }}</b></td>
|
||||
<td>{{ $receipt_number }}</td>
|
||||
<td><b>{{ __('patient_finance.cashier') }}</b></td>
|
||||
<td>{{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<table class="table table-bordered" id="receipt_table">
|
||||
<thead>
|
||||
<th><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(isset($service_ids_array) && count($service_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($service_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($service_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($service_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $service_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
@php $service_total += $service_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Services</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($service_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($procedure_ids_array) && count($procedure_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($procedure_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($procedure_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($procedure_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $procedure_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
@php $procedure_total += $procedure_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Procedures</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($procedure_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($investigation_ids_array) && count($investigation_ids_array) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($investigation_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($investigation_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($investigation_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $invs_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
@php $invs_total += $investigation_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Investigations</td>
|
||||
<td>1</td>
|
||||
<td>{{ ugandan_shillings($invs_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($treatment_item) && count($treatment_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_item[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity[$i] }}</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($treatment_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($treatment_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($treatment_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $treatment_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
@php $treatment_total += $treatment_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Treatments</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($treatment_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(isset($sundry_item) && count($sundry_item) > 0)
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>
|
||||
{{ ugandan_shillings($sundry_co_payment_amount_array[$i]) }}
|
||||
|
||||
@if($sundry_chi_amount_array[$i] > 0)
|
||||
<span style="color: green">({{ ugandan_shillings($sundry_chi_amount_array[$i]) }} {{ __('patient_finance.paid_by_chi') }}) </span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
@php $sundry_total = 0; @endphp
|
||||
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
@php $sundry_total += $sundry_co_payment_amount_array[$i]; @endphp
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td>Sundries</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($sundry_total) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($chi_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.chi_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($chi_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_co_payment') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_co_payment) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && !empty($one_off_discount_memo))
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<i style="font-size: 0.8em; float: left">© {{ date('Y') }} Stre@mline</i>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i style="float: right">{{ __('patient_finance.printed_on') }} {{ date(" d M Y h:ia") }} {{ __('patient_finance.by') }} {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+228
@@ -0,0 +1,228 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.collective_bills_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.collective_bills_receipt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
<div class="row" style="float:right;"><button class="btn btn-success glyphicon glyphicon-print" onclick="print_receipt()"> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_name') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(isset($service_ids_array))
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($service_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($procedure_ids_array))
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($procedure_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($investigation_ids_array))
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($investigation_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($treatment_item))
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_item[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($treatment_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($sundry_item))
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($sundry_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
@if(isset($inpatient_to_pay))
|
||||
<tr>
|
||||
<td>{{ __('patient_finance.inpatient_bills') }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($inpatient_to_pay) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(isset($debt_to_pay))
|
||||
<tr>
|
||||
<td>{{ __('patient_finance.patient_debts') }}</td>
|
||||
<td>N/A</td>
|
||||
<td>{{ ugandan_shillings($debt_to_pay) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+177
@@ -0,0 +1,177 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.inpatient_deposit') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.inpatient_deposit') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@if(isset($ward_discount_amount) && $ward_discount_amount > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.ward_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($ward_discount_amount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(isset($patient_category_amount) && $patient_category_amount > 0)
|
||||
<tr>
|
||||
<td><b>{{ get_name($patient->category_id, 'id', 'name', 'patient_categories').' '.__('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_amount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(isset($staff_guarantor_to_pay) && $staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(isset($return_payment_methods) && count($return_payment_methods) > 0)
|
||||
<tr><td colspan="2"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if(isset($patient_account_pay_with) && $patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(isset($family_account_pay_with) && $family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.inpatient_payment') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@if (!empty(session()->get('episode_id')))
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row" style="float:right;"><button class="btn btn-success glyphicon glyphicon-print" onclick="print_receipt()"> {{ __('patient_finance.print') }}</button></div>
|
||||
@endif
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.ref') }}</b> : {{ get_full_name($patient_id, 'id', 'first_name', 'last_name', 'patients') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($category, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.investigations') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->investigation_cost) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.treatment') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->treatment_cost) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.sundries') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->sundries_cost) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.procedures') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->procedure_cost) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.extras') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->extras_cost) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>TTA</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->tta_cost) }}</b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.total') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->total_patient_amount_to_pay) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.amount_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->amount_paid) }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.balance') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($request->balance) }}</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+232
@@ -0,0 +1,232 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.investigation_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.investigation_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>{{ ugandan_shillings($investigation_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_debts_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="2"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.investigation_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.investigation_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.original_print_date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.reprint_date') }}:</b> {{ streamline_date_time_short(date('Y-m-d H:i:s')) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}: </b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($investigation_ids_array[$i], "id", "name", "investigations") }}</td>
|
||||
<td>{{ ugandan_shillings($investigation_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($discounts_applied > 0)
|
||||
<tr>
|
||||
<td>
|
||||
<b>
|
||||
@if($type == 1)
|
||||
{{ __('patient_finance.discounts_applied') }}
|
||||
@else
|
||||
{{ get_name($patient->category_id, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}
|
||||
@endif
|
||||
</b>
|
||||
</td>
|
||||
<td><b>{{ ugandan_shillings($discounts_applied) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+236
@@ -0,0 +1,236 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.optical_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.optical_receipt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
@if (!empty(session()->get('episode_id')))
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row" style="float:right;"><button class="btn btn-success glyphicon glyphicon-print" onclick="print_receipt()"> {{ __('patient_finance.print') }}</button></div>
|
||||
@endif
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>Tel:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for($i = 0; $i < count($optical_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($optical_item[$i], "id", "name", "eye_glasses") }}</td>
|
||||
<td>{{ $optical_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($optical_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>Patient Debts Paid</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>One Off Discount</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>One Off Discount Memo</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>Patient Paid With {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.optical_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.optical_receipt') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@if (!empty(session()->get('episode_id')))
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row" style="float:right;"><button class="btn btn-success glyphicon glyphicon-print" onclick="print_receipt()"> {{ __('patient_finance.print') }}</button></div>
|
||||
@endif
|
||||
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>Tel:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>Original Print Date:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>Reprint Date:</b> {{ streamline_date_time_short(date('Y-m-d H:i:s')) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}: </b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for($i = 0; $i < count($optical_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($optical_ids_array[$i], "id", "name", "eye_glasses") }}</td>
|
||||
<td>{{ $optical_quantity_array[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($optical_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($discounts_applied > 0)
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<b>
|
||||
@if($type == 1)
|
||||
{{ __('patient_finance.discounts_applied') }}
|
||||
@else
|
||||
{{ get_name($patient->category_id, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}
|
||||
@endif
|
||||
</b>
|
||||
</td>
|
||||
<td><b>{{ ugandan_shillings($discounts_applied) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+214
@@ -0,0 +1,214 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Patient Receipt - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body{
|
||||
font-size: 0.8em;
|
||||
}
|
||||
/*thead, tfoot { display: table-row-group }*/
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container-fluid">
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_names') }}</b></td>
|
||||
<td>{{ $patient->first_name }} {{ $patient->last_name }}</td>
|
||||
<td><b>{{ __('patient_finance.patient_number') }}</b></td>
|
||||
<td>{{ $patient->number }}</td>
|
||||
<td><b>{{ __('patient_finance.patient_category') }}</b></td>
|
||||
<td>{{ get_name($patient->category_id, "id", "name", "patient_categories") }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.date') }}</b></td>
|
||||
<td colspan="2">{{ streamline_date_time_short($receipt_date) }}</td>
|
||||
<td><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif</b></td>
|
||||
<td colspan="2">{{ $receipt_number }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($items); $i++)
|
||||
<tr>
|
||||
<td>
|
||||
@if($item_table == "inpatient")
|
||||
{{ $items[$i] }}
|
||||
@else
|
||||
{{ get_name($items[$i], "id", "name", $item_table) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $item_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($item_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="text-center">
|
||||
@if(!are_patient_receipts_full_detail())
|
||||
<b>{{ ucfirst($item_table) }}</b>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>Patient Debts Paid</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($ward_discount_amount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.ward_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($ward_discount_amount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($discounts_applied > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.discounts_applied') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($discounts_applied) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($treatment_balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>Progressive Treatment Balance</b></td>
|
||||
<td><b>{{ ugandan_shillings($treatment_balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<i style="font-size: 0.8em; float: left">© {{ date('Y') }} Stre@mline</i>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i style="float: right">{{ __('patient_finance.printed_on') }} {{ date(" d M Y h:ia") }} {{ __('patient_finance.by') }} {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+232
@@ -0,0 +1,232 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.procedure_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.procedure_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ $patient->last_name }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>{{ ugandan_shillings($procedure_amounts_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_debts_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="2"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.procedure_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.procedure_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.original_print_date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.reprint_date') }}:</b> {{ streamline_date_time_short(date('Y-m-d H:i:s')) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}: </b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($procedure_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($procedure_ids_array[$i], "id", "name", "procedures") }}</td>
|
||||
<td>{{ ugandan_shillings($procedure_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($discounts_applied > 0)
|
||||
<tr>
|
||||
<td>
|
||||
<b>
|
||||
@if($type == 1)
|
||||
{{ __('patient_finance.discounts_applied') }}
|
||||
@else
|
||||
{{ get_name($patient->category_id, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}
|
||||
@endif
|
||||
</b>
|
||||
</td>
|
||||
<td><b>{{ ugandan_shillings($discounts_applied) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
docker/statistics/Modules/PatientFinance/Resources/views/patient_finance/receipts/services.blade.php
Executable
+232
@@ -0,0 +1,232 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.services_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.services_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($service_prices_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>{{ ugandan_shillings($service_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_debts_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="2"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.services_receipt') }}kkk</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.services_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.original_print_date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.reprint_date') }}:</b> {{ streamline_date_time_short(date('Y-m-d H:i:s')) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}: </b> {{ $receipt_number }}</span><br>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($service_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($service_ids_array[$i], "id", "name", "services") }}</td>
|
||||
<td>{{ ugandan_shillings($service_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($discounts_applied > 0)
|
||||
<tr>
|
||||
<td>
|
||||
<b>
|
||||
@if($type == 1)
|
||||
{{ __('patient_finance.discounts_applied') }}
|
||||
@else
|
||||
{{ get_name($patient->category_id, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}
|
||||
@endif
|
||||
</b>
|
||||
</td>
|
||||
<td><b>{{ ugandan_shillings($discounts_applied) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
docker/statistics/Modules/PatientFinance/Resources/views/patient_finance/receipts/sundries.blade.php
Executable
+234
@@ -0,0 +1,234 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.sundries_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.sundries_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($sundry_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_debts_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+226
@@ -0,0 +1,226 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.sundries_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.sundries_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row" style="float:right;"><button class="btn btn-success glyphicon glyphicon-print" onclick="print_receipt()"> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ auth()->user()->first_name }} {{ auth()->user()->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($sundry_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_item[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($sundry_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_debts_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.sundries_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.sundries_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.original_print_date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.reprint_date') }}:</b> {{ streamline_date_time_short(date('Y-m-d H:i:s')) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}: </b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($sundry_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($sundry_ids_array[$i], "id", "name", "sundries") }}</td>
|
||||
<td>{{ $sundry_quantity_array[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($sundry_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($discounts_applied > 0)
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<b>
|
||||
@if($type == 1)
|
||||
{{ __('patient_finance.discounts_applied') }}
|
||||
@else
|
||||
{{ get_name($patient->category_id, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}
|
||||
@endif
|
||||
</b>
|
||||
</td>
|
||||
<td><b>{{ ugandan_shillings($discounts_applied) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+241
@@ -0,0 +1,241 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.treatment_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.treatment_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
@php
|
||||
// check if receipt has a debt plan
|
||||
$previous_debt_plan_id = get_name($receipt_number, 'receipt_number', 'id', 'debt_plan');
|
||||
@endphp
|
||||
|
||||
@if($previous_debt_plan_id != 'N/A')
|
||||
<br><br>
|
||||
<a class="btn btn-primary btn-sm" target="_blank" href="/patient_debtors/debt_plan_guarantor_agreement/{{ $previous_debt_plan_id }}">{{ __('patient_finance.print_guarantor_agreement') }}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>Tel:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>@if($is_invoice == 1) {{ __('patient_finance.invoice_number') }} @else {{ __('patient_finance.receipt_number') }} @endif :</b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($treatment_item); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_item[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($treatment_subtotal[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($staff_guarantor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.staff_guarantor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($staff_guarantor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_category_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ get_name($patient_category_id_to_pay, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_category_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($donor_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.donor_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($donor_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($hospital_to_pay > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.hospital_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($hospital_to_pay) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($patient_unpaid_debts > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_debts_paid') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_unpaid_debts) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($one_off_discount) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($one_off_discount > 0 && $one_off_discount_memo != "")
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.one_off_discount_memo') }}</b></td>
|
||||
<td><b>{{ $one_off_discount_memo }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if(count($return_payment_methods) > 0)
|
||||
<tr><td colspan="3"></td></tr>
|
||||
@foreach($return_payment_methods as $key => $value)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_paid_with') }} {{ ($key == 0) ? 'Cash' : get_name($key, 'id', 'name', 'patient_payment_methods') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($value) }}</b></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($patient_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_patient_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($family_account_pay_with > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.paid_with_family_account_wallet') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($family_account_pay_with) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.balance_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if($treatment_balance > 0)
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.progressive_treatment_balance') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($treatment_balance) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
||||
|
||||
<style type="text/css">
|
||||
#divToPrint{
|
||||
font-size: 13px;
|
||||
color: #7c7c7c;
|
||||
}
|
||||
|
||||
#receipt_table{
|
||||
font-size: 1em;
|
||||
font-weight: normal;
|
||||
font-family: monospace
|
||||
}
|
||||
|
||||
#receipt_table th{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
#receipt_table td{
|
||||
border: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.receipt-label{
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.receipt-title{
|
||||
font-weight: bolder;
|
||||
text-decoration: underline;
|
||||
display: block; font-family:
|
||||
monospace
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ __('patient_finance.treatment_receipt') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('patient_finance.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patient_finance.home') }}">{{ __('patient_finance.finance_home') }}</a></li>
|
||||
<li class="active">{{ __('patient_finance.treatment_payment') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-9"></div>
|
||||
<div class="col-1" style="float:right;"><button class="btn btn-success" onclick="print_receipt()"><span class="glyphicon glyphicon-print"></span> {{ __('patient_finance.print') }}</button></div>
|
||||
<div class="col-2">
|
||||
@if(Auth::user()->can('view-episode-summary'))
|
||||
<a type="button" class="btn btn-primary" href="/patients/episode_summary/{{ session()->get('episode_id') }}" target="_blank" id="patient_file">{{ __('patient_episode.episode_summary') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="divToPrint">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6" style="text-align: center;">
|
||||
<p style="text-align: center; font-size: 1em">
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace"><b>{{ $hospital_information->name }}</b></span>
|
||||
<span style="font-weight: bolder; text-decoration: underline; display: block; font-family: monospace">{{ $hospital_information->address }}</span>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.tel') }}:</b> {{ $hospital_information->phone_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.email') }}:</b> {{ $hospital_information->email }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.cashier') }}:</b> {{ get_full_name($cashier, 'id', 'first_name', 'last_name', 'users') }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.original_print_date') }}:</b> {{ streamline_date_time_short($receipt_date) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.reprint_date') }}:</b> {{ streamline_date_time_short(date('Y-m-d H:i:s')) }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.receipt_number') }}: </b> {{ $receipt_number }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_names') }}</b> : {{ $patient->first_name }} {{ $patient->last_name }}</span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_number') }}</b> : {{ $patient->number }} </span><br>
|
||||
<span class="receipt-label"><b>{{ __('patient_finance.patient_category') }} :</b> {{ get_name($patient->category_id, "id", "name", "patient_categories") }}</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table class="table" id="receipt_table">
|
||||
<thead>
|
||||
<th style="width: 60%"><b>{{ __('patient_finance.description') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.quantity') }}</b></th>
|
||||
<th style="width: 20%"><b>{{ __('patient_finance.price') }}</b></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(are_patient_receipts_full_detail())
|
||||
@for($i = 0; $i < count($treatment_ids_array); $i++)
|
||||
<tr>
|
||||
<td>{{ get_name($treatment_ids_array[$i], "id", "name", "drugs") }}</td>
|
||||
<td>{{ $treatment_quantity_array[$i] }}</td>
|
||||
<td>{{ ugandan_shillings($treatment_prices_array[$i]) }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.total_amount') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($total_amount_pay) }}</b></td>
|
||||
</tr>
|
||||
|
||||
@if($discounts_applied > 0)
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<b>
|
||||
@if($type == 1)
|
||||
{{ __('patient_finance.discounts_applied') }}
|
||||
@else
|
||||
{{ get_name($patient->category_id, "id", "name", "patient_categories") }} {{ __('patient_finance.to_pay') }}
|
||||
@endif
|
||||
</b>
|
||||
</td>
|
||||
<td><b>{{ ugandan_shillings($discounts_applied) }}</b></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>{{ __('patient_finance.patient_to_pay') }}</b></td>
|
||||
<td><b>{{ ugandan_shillings($patient_to_pay) }}</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
</div>
|
||||
<i style="font-size: 0.8em; margin-left: 50%;">© Stre@mline</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<script type="text/javascript">
|
||||
function print_receipt() {
|
||||
let myDiv = document.getElementById('divToPrint');
|
||||
let newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='' " +
|
||||
" onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.close();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user