mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
202 lines
10 KiB
PHP
Executable File
202 lines
10 KiB
PHP
Executable File
@extends('layouts.main')
|
|
|
|
@push('styles')
|
|
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
|
@endpush
|
|
|
|
@section('content')
|
|
<div class="row bg-title">
|
|
<div class="col-md-7">
|
|
<h4>{{ __('streamline_bills.streamline_bills') }}</h4>
|
|
</div>
|
|
<div class="col-md-5">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('streamline_bills.home') }}</a></li>
|
|
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('streamline_bills.finance_home') }}</a></li>
|
|
<li class="active"><i class="fa fa-bil"></i> {{ __('streamline_bills.streamline_bills') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div style="float: right;">
|
|
<button class="btn btn-rounded" style="background-color: #03C03C; color: white;" id="printPurchaseOrderReceipt">
|
|
<i class="fa fa-print"></i>
|
|
<span style="margin-left: 10px;">{{ __('streamline_bills.print') }}</span>
|
|
</button>
|
|
<br>
|
|
</div>
|
|
</div>
|
|
</div><br>
|
|
|
|
@include('flash::message')
|
|
|
|
<div class="white-box" style="background-color: #F5FFFA" id="printableContent">
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="pull-left">
|
|
<address>
|
|
<h3> <b class="text-danger">{{ $hospital_information->name }}</b></h3>
|
|
<p class="text-muted m-l-5">{{ $hospital_information->phone_number }}, {{ $hospital_information->email }},
|
|
<br/> {{ get_name($hospital_information->sub_county,'id', 'name', 'subcounties') }}, {{ get_name($hospital_information->district,'id', 'name', 'districts') }},
|
|
<br/> {{ $hospital_information->country }}.</p>
|
|
</address>
|
|
</div>
|
|
<div class="pull-right text-right">
|
|
<address>
|
|
<p class="m-t-30"><b> {{ __('streamline_bills.date') }} : </b> <i class="fa fa-calendar"></i> {{ streamline_date_time(\Carbon\Carbon::now()->toDateTimeString()) }}</p>
|
|
</address>
|
|
<button class="btn-success btn btn-rounded" disabled>{{ __('streamline_bills.bill_generated') }}</button>
|
|
</div>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div class="row">
|
|
<div class="col panel">
|
|
<div class="panel-default">
|
|
<div class="panel-heading">
|
|
<div class="row">
|
|
<div class="col text-left">
|
|
{{ __('streamline_bills.billing_date') }}
|
|
</div>
|
|
<div class="col text-right">
|
|
@php
|
|
if(isset($report->time_frame)){ $time_frame = explode("&", $report->time_frame);}
|
|
@endphp
|
|
<div class="btn btn-info btn-rounded">{{ streamline_date(isset($time_frame[0]) ? streamline_date($time_frame[0]) : "" ) }}
|
|
@if(isset($time_frame[1]))
|
|
<b>{{ __('streamline_bills.to') }}</b>
|
|
{{ streamline_date($time_frame[1]) }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div class="row">
|
|
<div class="col panel">
|
|
<div class="panel-body">
|
|
<table class="table color-bordered-table success-bordered-table">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('streamline_bills.patient_name') }}</th>
|
|
<th>{{ __('streamline_bills.patient_number') }}</th>
|
|
<th>{{ __('streamline_bills.first_visit') }}</th>
|
|
<th class="text-center">{{ __('streamline_bills.recorded_by') }}</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@if(isset($report) > 0)
|
|
@php
|
|
$patients = explode("/", $report->patients);
|
|
@endphp
|
|
@foreach($patients as $id)
|
|
<tr>
|
|
<td>{{ get_full_name($id, 'id', 'first_name', 'last_name', 'patients') }}</td>
|
|
<td>{{ get_name($id, 'id', 'number', 'patients') }}r</td>
|
|
<td>
|
|
@php
|
|
$episode_date = \Streamline\Models\PatientEpisode::where('patient_id', $id)->pluck('created_at')->first();
|
|
echo streamline_date($episode_date);
|
|
@endphp
|
|
</td>
|
|
<td class="text-center">
|
|
@php
|
|
$recorded_by = \Streamline\Models\PatientEpisode::where('patient_id', $id)->pluck('created_by')->first();
|
|
echo get_full_name($recorded_by, 'id', 'first_name', 'last_name', 'users');
|
|
@endphp
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@else
|
|
<tr>
|
|
<th>{{ __('streamline_bills.no_records_found') }}</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
@endif
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br/>
|
|
|
|
<div class="text-right">
|
|
|
|
<h5><strong>{{ __('streamline_bills.number_of_patients') }}: <div class="label label-success"></div></strong></h5> <br>
|
|
<h5><strong>{{ __('streamline_bills.cost_per_patient_annually') }} : <div class="label label-success">{{ ugandan_shillings(1000) }}</div></strong></h5><br>
|
|
@php
|
|
$total = count($patients) * 1000;
|
|
@endphp
|
|
<h2><strong>Total : {{ ugandan_shillings($total) }}</strong></h2><br>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
@push('scripts')
|
|
<script type="text/javascript">
|
|
function printElementContent(elem,title){
|
|
var mywindow = window.open('', 'PRINT', 'height=400,width=600');
|
|
var css = '<link href="/elite/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">';
|
|
|
|
mywindow.document.write('<html><head><title></title>');
|
|
mywindow.document.write('</head><body >');
|
|
mywindow.document.write(css);
|
|
mywindow.document.write('<center><h3>' + title + '</h3></center>');
|
|
mywindow.document.write(document.getElementById(elem).innerHTML);
|
|
mywindow.document.write('</body></html>');
|
|
mywindow.document.close(); // necessary for IE >= 10
|
|
//mywindow.focus(); // necessary for IE >= 10*/
|
|
setTimeout(function () {
|
|
mywindow.focus();
|
|
mywindow.print();
|
|
mywindow.remove();
|
|
}, 500);
|
|
return true;
|
|
}
|
|
|
|
$("#printPurchaseOrderReceipt").click(function(e){
|
|
printElementContent('printableContent','Stre@mline Bill');
|
|
});
|
|
</script>
|
|
@endpush
|
|
|
|
|
|
@endpush
|
|
|
|
|
|
|
|
|