PAID
{{ strtoupper($net->status) }}
@include('templates.pdf_header', [ 'organisation' => $organisation, 'asOfDate' => $asOfDate, 'currency' => $base_currency, 'title' => 'MONTHLY PAYSLIP' ])
{{$organisation->organisation_name}}
{{ date('F Y', strtotime($net->payroll_run->run_date)) }} • Payment Date: {{ $net->payments->first() ? date('F j, Y', strtotime($net->payments->first()->payment_date)) : 'Pending' }}
EMPLOYEE INFORMATION
Employee Name:{{ $net->employee->first_name . " " .$net->employee->last_name ." ".$net->employee->middle_name ?? 'N/A' }}
Employee ID:{{ $net->employee->employee_code }}
Department:{{ $net->employee->designation->department->name }}
Pay Period:{{ date('F Y', strtotime($net->payroll_run->run_date)) }}
PAYMENT DETAILS
Payroll Run:{{ $net->payroll_run->name }}
Payment Date:{{ $net->payments->first() ? date('F j, Y', strtotime($net->payments->first()->payment_date)) : 'Pending' }}
Reference No:{{ $net->payments->first()->reference_number ?? 'N/A' }}
Status:{{ strtoupper($net->status) }}
EARNINGS
@php $totalAllowances = 0; @endphp @if($payroll_run->allowances && $payroll_run->allowances->count() > 0) @foreach($payroll_run->allowances as $allowance) @php $totalAllowances += $allowance->amount; @endphp @endforeach @else @endif
Description Amount ({{$base_currency->code}})
Basic Salary {{ number_format($basic_pay, 2) }}
{{ $allowance->type->name ?? 'Allowance' }} {{ number_format($allowance->amount, 2) }}
Allowances {{$totalAllowances}}
TOTAL GROSS PAY {{ number_format($net->gross_pay, 2) }}
DEDUCTIONS
@if($payroll_run->deductions && $payroll_run->deductions->count() > 0) @foreach($payroll_run->deductions as $deduction) @endforeach @endif @php $totalLoans = 0; @endphp @if($payroll_run->loan_deductions && $payroll_run->loan_deductions->count() > 0) @foreach($payroll_run->loan_deductions as $loan) @endforeach @endif
Description Amount ({{$base_currency->code}})
{{ $deduction->type->name ?? 'Deduction' }} {{ number_format($deduction->amount, 2) }}
{{ $loan->loan_type->name ?? 'Loan Repayment' }} {{ number_format($loan->amount, 2) }}
TOTAL DEDUCTIONS {{ number_format($totalDeductions + $totalLoans, 2) }}
NET PAY
{{$base_currency->code}} {{ number_format($net->gross_pay-$totalDeductions + $totalLoans, 2) }}
{{ $net_pay_in_words ?? '' }}
PAYMENT INFORMATION
Payment Method: {{ $net->payments->first()->payment_method->name ?? 'Bank Transfer' }}
Remarks: {{ $net->payroll_run->remarks ?? 'Regular payroll processing' }}