mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
resolved conflicts
This commit is contained in:
Executable
+167
@@ -0,0 +1,167 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('finance.patient_category_invoices') }} {{ __('invoices.details') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('finance.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('finance.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('invoices') }}"><i class="fa fa-file"></i> {{ __('finance.invoices_home') }}</a></li>
|
||||
<li class="active">{{ __('invoices.details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<a target="_blank" class="btn btn-inverse btn-sm float-right" href='<?php echo url("invoices/patient_category_detail_print/{$id}/{$start_date}/{$end_date}"); ?>'>{{ __('invoices.print') }}</a>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h4>
|
||||
<b>{{ __('invoices.patient_category') }}:</b> {{ get_name(get_name($invoices[0]->patient_id, 'id', 'category_id', 'patients'), 'id', 'name', 'patient_categories') }}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<h4>
|
||||
<b>{{ __('invoices.patient_names') }}:</b> {{ get_full_name($invoices[0]->patient_id, 'id', 'first_name', 'last_name', 'patients') }} ({{ (get_name($invoices[0]->patient_id, 'id', 'gender', 'patients') == 1) ? 'Male' : 'Female'}} - {{ get_patients_age(get_name($invoices[0]->patient_id, 'id', 'date_of_birth', 'patients')) }})
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('finance.date') }}</th>
|
||||
<th class="text-center">{{ __('finance.invoice_number') }}</th>
|
||||
<th class="text-center">{{ __('finance.items') }}</th>
|
||||
<th class="text-center">{{ __('finance.item_amounts') }}</th>
|
||||
<th class="text-center">{{ __('finance.patient_amount_paid') }}</th>
|
||||
<th class="text-center">{{ __('finance.reason') }}</th>
|
||||
</tr>
|
||||
@php
|
||||
$sum_total = 0;
|
||||
@endphp
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($invoices as $invoice)
|
||||
<tr>
|
||||
<td class="text-center">{{ streamline_date($invoice->transaction_date) }}</td>
|
||||
<td class="text-center">
|
||||
{{--{{ ($invoice->episode_id != 0) ? ((get_claim_number($invoice->episode_id)) ? get_claim_number($invoice->episode_id) : $invoice->receipt_number) : "" }}--}}
|
||||
{{ ($invoice->number) ?? $invoice->receipt_number }}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
@if($invoice->tag_id == 11)
|
||||
N/A
|
||||
@else
|
||||
@php
|
||||
$items = explode(",",$invoice->items_ids);
|
||||
for($i = 0; $i < count($items); $i++){
|
||||
switch ($invoice->tag_id){
|
||||
case 1;
|
||||
case 3;
|
||||
$name = get_name($items[$i], 'id', 'name', 'drugs');
|
||||
break;
|
||||
case 2;
|
||||
$name = get_name($items[$i], 'id', 'name', 'investigations');
|
||||
break;
|
||||
case 4;
|
||||
$name = get_name($items[$i], 'id', 'name', 'procedures');
|
||||
break;
|
||||
case 5;
|
||||
$name = get_name($items[$i], 'id', 'name', 'sundries');
|
||||
break;
|
||||
case 6: case 7: case 8;
|
||||
$name = get_name($items[$i], 'id', 'name', 'services');
|
||||
break;
|
||||
case 10;
|
||||
$name = "Inpatient Deposit";
|
||||
break;
|
||||
case 16;
|
||||
$name = get_name($items[$i], 'id', 'name', 'eye_glasses');
|
||||
break;
|
||||
default:
|
||||
$name = "";
|
||||
break;
|
||||
}
|
||||
echo ($i + 1).". ".$name."<br/>";
|
||||
}
|
||||
@endphp
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if($invoice->tag_id == 11)
|
||||
N/A
|
||||
@else
|
||||
@php
|
||||
$amounts = explode(",",$invoice->items_amounts);
|
||||
for($i = 0; $i < count($amounts); $i++){
|
||||
echo ($i + 1).". ".$amounts[$i]."<br/>";
|
||||
}
|
||||
|
||||
$sum_total += $invoice->patient_amount;
|
||||
@endphp
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">{{ ugandan_shillings($invoice->patient_amount) }}</td>
|
||||
<td class="text-center">
|
||||
{{ get_name($invoice->tag_id, 'id', "name", 'finance_point_tags') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th class="text-center"><b>{{ __('finance.total') }}</b></th>
|
||||
<th class="text-center"><b>{{ ugandan_shillings($sum_total) }}</b></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function showPopup() {
|
||||
var myDiv = document.getElementById('invoice');
|
||||
var 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>
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#table').DataTable();
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+151
@@ -0,0 +1,151 @@
|
||||
<!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 Category Invoice - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body{
|
||||
/*font-size: 1.2em;*/
|
||||
}
|
||||
/*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')
|
||||
<h4 class="heading" style="text-align: center;">{{ __('invoices.patient_category_invoices') }}</h4>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<h5>
|
||||
<b>{{ __('invoices.patient_category') }}:</b> {{ get_name(get_name($invoices[0]->patient_id, 'id', 'category_id', 'patients'), 'id', 'name', 'patient_categories') }}
|
||||
</h5>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<h5>
|
||||
<b>{{ __('invoices.patient_names') }}:</b> {{ get_full_name($invoices[0]->patient_id, 'id', 'first_name', 'last_name', 'patients') }} ({{ (get_name($invoices[0]->patient_id, 'id', 'gender', 'patients') == 1) ? 'Male' : 'Female'}} - {{ get_patients_age(get_name($invoices[0]->patient_id, 'id', 'date_of_birth', 'patients')) }})
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<table class="table table-sm">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th class="text-center">{{ __('finance.date') }}</th>
|
||||
<th class="text-center">{{ __('finance.invoice_number') }}</th>
|
||||
<th class="text-center">{{ __('finance.items') }}</th>
|
||||
<th class="text-center">{{ __('finance.item_amounts') }}</th>
|
||||
<th class="text-center">{{ __('invoices.total_amount') }}</th>
|
||||
<th class="text-center">{{ __('finance.reason') }}</th>
|
||||
</tr>
|
||||
@php $sum_total = 0; @endphp
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($invoices as $invoice)
|
||||
<tr>
|
||||
<td class="text-center">{{ streamline_date($invoice->transaction_date) }}</td>
|
||||
<td class="text-center">
|
||||
{{ ($invoice->number) ?? $invoice->receipt_number }}
|
||||
</td>
|
||||
<td class="text-left">
|
||||
@if($invoice->tag_id == 11)
|
||||
N/A
|
||||
@else
|
||||
@php
|
||||
$items = explode(",",$invoice->items_ids);
|
||||
for($i = 0; $i < count($items); $i++){
|
||||
switch ($invoice->tag_id){
|
||||
case 1;
|
||||
case 3;
|
||||
$name = get_name($items[$i], 'id', 'name', 'drugs');
|
||||
break;
|
||||
case 2;
|
||||
$name = get_name($items[$i], 'id', 'name', 'investigations');
|
||||
break;
|
||||
case 4;
|
||||
$name = get_name($items[$i], 'id', 'name', 'procedures');
|
||||
break;
|
||||
case 5;
|
||||
$name = get_name($items[$i], 'id', 'name', 'sundries');
|
||||
break;
|
||||
case 6: case 7: case 8;
|
||||
$name = get_name($items[$i], 'id', 'name', 'services');
|
||||
break;
|
||||
case 10;
|
||||
$name = "Inpatient Deposit";
|
||||
break;
|
||||
case 16;
|
||||
$name = get_name($items[$i], 'id', 'name', 'eye_glasses');
|
||||
break;
|
||||
default:
|
||||
$name = "";
|
||||
break;
|
||||
}
|
||||
echo ($i + 1).". ".$name."<br/>";
|
||||
}
|
||||
@endphp
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if($invoice->tag_id == 11)
|
||||
N/A
|
||||
@else
|
||||
@php
|
||||
$amounts = explode(",",$invoice->items_amounts);
|
||||
for($i = 0; $i < count($amounts); $i++){
|
||||
echo ($i + 1).". ". ugandan_shillings($amounts[$i]) ."<br/>";
|
||||
}
|
||||
|
||||
$sum_total += $invoice->patient_amount;
|
||||
@endphp
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">{{ ugandan_shillings($invoice->patient_amount) }}</td>
|
||||
<td class="text-center">
|
||||
{{ get_name($invoice->tag_id, 'id', "name", 'finance_point_tags') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th class="text-center"><b>{{ __('invoices.total') }}</b></th>
|
||||
<th class="text-center"><b>{{ ugandan_shillings($sum_total) }}</b></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user