@php
$companyId = auth()->user()->company_id;
$fmt = fn ($n) => \App\Helpers\NumberHelper::formatAmount((float) $n, $companyId);
$addressParts = array_filter([
$company->address ?? null,
$company->city ?? null,
$company->country ?? null,
]);
$companyAddress = implode(', ', $addressParts);
$employeeName = fn ($emp) => $emp->display_name ?: $emp->name;
$joinDate = fn ($emp) => $emp->joining_date ? $emp->joining_date->format('d-m-Y') : '—';
@endphp
Employee Name:{{ $employeeName($emp) }}
Designation:{{ $emp->designation ?? '—' }}
Project:{{ $emp->project ?: 'HQ' }}
Date of Joining:{{ $joinDate($emp) }}
Employee ID:{{ $emp->code ?? '—' }}
Department:{{ $emp->department ?? '—' }}
Branch:{{ $emp->branch ?? '—' }}
Payment Method:{{ $emp->salary_payment_method ?? '—' }}
| EARNINGS |
DEDUCTIONS |
| Component |
AMOUNT |
Component |
AMOUNT |
@for($i = 0; $i < $maxRows; $i++)
@php
$earning = $slip['earnings'][$i] ?? null;
$deduction = $slip['deductions'][$i] ?? null;
@endphp
| {{ $earning['label'] ?? '' }} |
{{ isset($earning) ? $fmt($earning['amount']) : '' }} |
{{ $deduction['label'] ?? '' }} |
{{ isset($deduction) ? $fmt($deduction['amount']) : '' }} |
@endfor
| Total Earning |
{{ $fmt($slip['total_earnings']) }} |
Total Deduction |
{{ $fmt($slip['total_deductions']) }} |
Net Salary Payable
{{ $fmt($slip['net_salary']) }}
@if($slip['show_pf_note'])
Company also Provided {{ $fmt($slip['pf_company_amount']) }} to the Employees Contributory Provident Fund for this Salary Period
@endif
Net Amount in word: {{ $amountWords }}
PREPARED BY
CHECKED BY
APPROVED BY
This is a system-generated pay slip and does not require a physical signature.
@endforeach