{{ $companyName }}

Payslip
{{ $item->payroll->month->format('F Y') }}
Generated: {{ now()->format('d M Y') }}
Employee Name {{ $item->employee->name }} Designation {{ $item->employee->employeeProfile?->job_title ?? '-' }}
Department {{ $item->employee->employeeProfile?->departmentRel?->name ?? '-' }} Payroll Month {{ $item->payroll->month->format('F Y') }}

Earnings

@foreach($item->salary_breakdown['earnings'] ?? [] as $earning) @endforeach
ComponentAmount
{{ $earning['name'] }} @if($earning['type'] === 'percentage')({{ $earning['value'] }}%)@endif {{ number_format($earning['amount'], 2) }}
Total Earnings {{ number_format($item->total_earnings, 2) }}

Deductions

@foreach($item->salary_breakdown['deductions'] ?? [] as $deduction) @endforeach
ComponentAmount
{{ $deduction['name'] }} @if($deduction['type'] === 'percentage')({{ $deduction['value'] }}%)@endif {{ number_format($deduction['amount'], 2) }}
Total Deductions {{ number_format($item->total_deductions, 2) }}
Gross Salary {{ number_format($item->gross_salary, 2) }}
Total Earnings {{ number_format($item->total_earnings, 2) }}
Total Deductions - {{ number_format($item->total_deductions, 2) }}
Net Salary {{ number_format($item->net_salary, 2) }}