{{ $companyName }} — Salary Sheet

Period: {{ $payroll->month->format('F Y') }}  |  Status: {{ ucfirst($payroll->status) }}  |  Generated: {{ now()->format('d M Y H:i') }}

@php $totalNet = 0; $i = 1; @endphp @foreach($payroll->items as $item) @php $totalNet += $item->net_salary; @endphp @endforeach
# Employee Department Gross Earnings Income Tax Loan Addition Deduction Net Salary
{{ $i++ }} {{ $item->employee->name }} {{ $item->employee->employeeProfile?->departmentRel?->name ?? '-' }} {{ number_format($item->gross_salary, 2) }} {{ number_format($item->total_earnings, 2) }} {{ $item->tax_deduction > 0 ? '−'.number_format($item->tax_deduction, 2) : '—' }} {{ $item->loan_deduction > 0 ? '−'.number_format($item->loan_deduction, 2) : '—' }} {{ $item->addition_adjustment > 0 ? '+'.number_format($item->addition_adjustment, 2) : '—' }} {{ $item->deduction_adjustment > 0 ? '−'.number_format($item->deduction_adjustment, 2) : '—' }} {{ number_format($item->net_salary, 2) }}
Total ({{ $payroll->items->count() }} employees) {{ number_format($totalNet, 2) }}