mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
197 lines
7.8 KiB
PHP
Executable File
197 lines
7.8 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" />
|
|
@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">Payslip</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> Home</a></li>
|
|
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> Finance Home</a></li>
|
|
<li><a href="{{ route('payroll.index') }}"><i class="fa fa-eye"></i> Payroll</a></li>
|
|
<li class="active"><i class="fa fa-eye"></i> Payslip</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="white-box">
|
|
@include('flash::message')
|
|
|
|
<a class="btn btn-success btn-rounded btn-sm pull-right" onclick="printElementContent()">Print</a>
|
|
<br>
|
|
|
|
<div id="print_div">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<img src="{{ asset(isset($hospital_information->logo) ? $hospital_information->logo : 'uploads/logo/logo-sm.png') }}" width="90px" height="70px" alt="" class="pull-left">
|
|
</div>
|
|
<div class="col-md-6 text-right">
|
|
<h4><b>{{ $hospital_information->name }}</b></h4>
|
|
<p class="text-muted">
|
|
{{ $hospital_information->address }}
|
|
<br>
|
|
{{ $hospital_information->phone_number }}
|
|
<br>
|
|
{{ $hospital_information->email }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<h4>Staff Member Information</h4>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>Names</th>
|
|
<td>{{ $member->first_name }} {{ $member->last_name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Contact</th>
|
|
<td>{{ $member->contact }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Position</th>
|
|
<td>{{ $positions[$member->position] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Department</th>
|
|
<td>{{ $departments[$member->department] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Date</th>
|
|
<td>{{ $payslip->month }} {{ $payslip->year }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>Salary Scale</th>
|
|
<td>{{ $member->salary_scale }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>NSSF Number</th>
|
|
<td>{{ $member->nssf_number }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>TIN Number</th>
|
|
<td>{{ $member->tin_number }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Bank Account Name</th>
|
|
<td>{{ $banks[$member->payroll_bank_id] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Bank Account Number</th>
|
|
<td>{{ $member->bank_account_number }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h4>Salary/Allowances</h4>
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>Basic Pay</th>
|
|
<td>{{ ugandan_shillings($payslip->basic_pay) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Allowances</th>
|
|
<td>{{ ugandan_shillings($payslip->allowances) }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<h4>Deductions</h4>
|
|
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>NSSF</th>
|
|
<td>{{ ugandan_shillings($payslip->nssf_payment) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>PAYE</th>
|
|
<td>{{ ugandan_shillings($payslip->paye_payment) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Deductions</th>
|
|
<td>{{ ugandan_shillings($payslip->deductions) }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>Gross Pay</th>
|
|
<td>{{ ugandan_shillings($payslip->gross_pay) }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>Total Deductions</th>
|
|
<td>{{ ugandan_shillings($payslip->total_deductions) }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<th>Net Pay</th>
|
|
<td>{{ ugandan_shillings($payslip->net_pay) }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
|
|
|
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
|
|
|
<script>
|
|
function printElementContent(){
|
|
let mywindow = window.open('', 'PRINT', 'height=400,width=600');
|
|
let css = '<link href="/elite/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">';
|
|
css += '<link href="/elite/bower_components/datatables/jquery.dataTables.min.css" rel="stylesheet">';
|
|
css += '<style>';
|
|
css += '.col-md-4 { width:33.3%; float:left; }';
|
|
css += '.col-md-6 { width:50%; float:left; }';
|
|
css += '</style>';
|
|
|
|
mywindow.document.write('<html><head><title></title>');
|
|
mywindow.document.write('</head><body>');
|
|
mywindow.document.write(css);
|
|
mywindow.document.write($("#print_div").html());
|
|
mywindow.document.write('</body></html>');
|
|
mywindow.document.close();
|
|
|
|
setTimeout(function () {
|
|
mywindow.focus();
|
|
mywindow.print();
|
|
mywindow.remove();
|
|
}, 500);
|
|
return true;
|
|
}
|
|
</script>
|
|
@endpush
|