Files
streamline-emr/docker/statistics/Modules/Payroll/Resources/views/payroll/inactive_payslips.blade.php
T
2025-03-31 03:46:05 +03:00

108 lines
5.3 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">Inactive Payslips</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-trash"></i> Inactive Payslips</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="white-box">
@include('flash::message')
<p class="text-muted m-b-30">Export data to CSV, Excel, PDF & Print</p>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Staff Member</th>
<th>Payment Period</th>
<th>Headship</th>
<th>Calls</th>
<th>Other</th>
<th>Staff Society</th>
<th>School Fees</th>
<th>Other Debts</th>
<th>Advances</th>
<th>Vehicle Hire</th>
<th>Patient Debts</th>
<th>PAYE</th>
<th>NSSF</th>
<th>Basic Pay</th>
<th>Gross Pay</th>
<th>Total Deductions</th>
<th>Net Pay</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($payments as $payment)
<tr>
<td>{{ $member_details_first_name[$payment->member_id] }} {{ $member_details_last_name[$payment->member_id] }}</td>
<td>{{ $payment->month }}, {{ $payment->year }}</td>
<td>{{ ugandan_shillings($payment->headship) }}</td>
<td>{{ ugandan_shillings($payment->calls) }}</td>
<td>{{ ugandan_shillings($payment->other) }}</td>
<td>{{ ugandan_shillings($payment->staff_society) }}</td>
<td>{{ ugandan_shillings($payment->school_fees) }}</td>
<td>{{ ugandan_shillings($payment->other_debts) }}</td>
<td>{{ ugandan_shillings($payment->advances) }}</td>
<td>{{ ugandan_shillings($payment->vehicle_hire) }}</td>
<td>{{ ugandan_shillings($payment->patient_debts) }}</td>
<td>{{ ugandan_shillings($payment->paye_payment) }}</td>
<td>{{ ugandan_shillings($payment->nssf_payment) }}</td>
<td>{{ ugandan_shillings($payment->basic_pay) }}</td>
<td>{{ ugandan_shillings($payment->gross_pay) }}</td>
<td>{{ ugandan_shillings($payment->total_deductions) }}</td>
<td>{{ ugandan_shillings($payment->net_pay) }}</td>
<td>
{{ Form::model($payment->id ,['method' => 'POST', 'route' => ['payroll.activate_payslip', $payment->id]]) }}
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> Activate</button>
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</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 src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
<script>
$('.table').DataTable({
dom: 'Bfrtip',
buttons: [
'csv', 'excel', 'pdf', 'print'
]
});
</script>
@endpush