Paid Leave Applied: {{ $paidLeaveDays }} day(s) — ₹ {{ number_format($paidLeaveAmount, 2) }} added to salary
@endif| Sno | Attendance Date | Duty Type | Salary | Advance | Balance |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ \Carbon\Carbon::parse($row->attendance_date)->format('d/m/Y') }} | {{ $row->duty_type ?? '-' }} | {{ number_format($row->display_salary, 2) }} | {{ number_format($row->advance_received, 2) }} | {{ number_format($row->balance, 2) }} |
| Total | {{ number_format($rows->sum('display_salary'), 2) }} | {{ number_format($rows->sum('advance_received'), 2) }} | {{ number_format($rows->sum('balance'), 2) }} | ||
| + Paid Leave ({{ $paidLeaveDays }} day(s)): ₹ {{ number_format($paidLeaveAmount, 2) }} | |||||
| Grand Total (Salary + Paid Leave − Advance) | ₹ {{ number_format($rows->sum('display_salary') + $paidLeaveAmount - $rows->sum('advance_received'), 2) }} | ||||