@extends('layouts.app') @section('content') @include('human_resource.partials.styles')
@include('human_resource.partials.page_head',['title'=>'Payroll','subtitle'=>'Processed payrolls, employee payments and statutory deductions'])

Payroll Register

@if(auth()->user()->hasPermission('human_resource.download_p9')) @endif @if(auth()->user()->hasPermission('human_resource.payroll_setup')) @endif
@include('human_resource.partials.payroll_filters')
@forelse($payrollEntries as $entry) @php $totalDed=(float)$entry->statutory_deductions+(float)$entry->advance+(float)$entry->loan+(float)$entry->helb_sacco+(float)$entry->damages+(float)$entry->other_deductions; @endphp @empty@endforelse
S.NOPayrollEmp No.Employee NamePayslipID No.Basic SalaryOther PaymentsGross SalaryPAYENSSFSHIFH.LevyAdvanceLoanHELB / SACCODamagesTT DedNet SalaryMethodBank NameBank AccPaymentMore
{{ $loop->iteration+($payrollEntries->currentPage()-1)*$payrollEntries->perPage() }}{{ $entry->payrollRun?->payroll_no }}
{{ $entry->payrollRun?->period_start?->format('M Y') }}
{{ $entry->user?->employee_number?:'-' }}{{ $entry->user?->name }} @if(auth()->user()->hasPermission('human_resource.download_payslip'))@else - @endif {{ $entry->user?->id_number?:'-' }}{{ number_format($entry->basic_salary,2) }}{{ number_format((float)$entry->allowances+(float)$entry->other_payments,2) }}{{ number_format($entry->gross_pay,2) }}{{ number_format($entry->paye,2) }}{{ number_format($entry->nssf,2) }}{{ number_format($entry->shif,2) }}{{ number_format($entry->housing_levy,2) }}{{ number_format($entry->advance,2) }}{{ number_format($entry->loan,2) }}{{ number_format($entry->helb_sacco,2) }}{{ number_format($entry->damages,2) }}{{ number_format($totalDed,2) }}{{ number_format($entry->net_pay,2) }}{{ $entry->payment_method?:'-' }}{{ $entry->bank_name?:'-' }}{{ $entry->bank_account_number?:'-' }}{{ ucfirst($entry->payrollRun?->status) }}
More
Branch: {{ $entry->payrollRun?->branch?->name }}
Pay date: {{ $entry->payrollRun?->pay_date?->format('d M Y') }}
@include('human_resource.partials.payroll_calculation') @if(auth()->user()->hasPermission('human_resource.payroll') && ($entry->payrollRun?->status==='draft' || !$entry->tax_card))@endif @if($entry->payrollRun?->status==='draft')@endif
No payroll has been processed yet.
{{ $payrollEntries->links() }}
@forelse($payrollRuns as $run)@empty@endforelse
Payroll No.BranchPeriodPay DateEmployeesGrossDeductionsNetStatusAction
{{ $run->payroll_no }}{{ $run->branch?->name }}{{ $run->period_start->format('d M Y') }} - {{ $run->period_end->format('d M Y') }}{{ $run->pay_date->format('d M Y') }}{{ $run->entries->count() }}{{ number_format($run->gross_total,2) }}{{ number_format($run->deduction_total,2) }}{{ number_format($run->net_total,2) }}{{ ucfirst($run->status) }}@if($run->status==='draft')
@csrf
@else Locked @endif
No payroll runs found.
@include('human_resource.partials.generate_payroll') @include('human_resource.partials.payroll_setup')

Edit Payroll Entry

@csrf @method('PUT')@foreach(['other_payments'=>'Other Payments','paye'=>'PAYE','nssf'=>'NSSF','shif'=>'SHIF','housing_levy'=>'Housing Levy','advance'=>'Advance','loan'=>'Loan','helb_sacco'=>'HELB / SACCO','damages'=>'Damages','other_deductions'=>'Other Deductions'] as $field=>$label)
@endforeach
@include('human_resource.partials.modal_script') @include('human_resource.partials.payroll_documents') @include('human_resource.partials.payroll_enhancements') @endsection