Paid Leave Applied: {{ $paidLeaveDays }} day(s) — ₹ {{ number_format($paidLeaveAmount, 2) }} added to salary
@endif @php $totalSalary = 0; $totalAdvance = 0; @endphp| S.No | Date | Attendance | Duty Type | Calculated Salary | Advance Received |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ \Carbon\Carbon::parse($row->attendance_date)->format('d/m/Y') }} | {{ ucfirst($row->attendance_type ?? '-') }} | {{ ucfirst($row->duty_type ?? '-') }} | ₹ {{ number_format($salary, 2) }} | {{ $advanceStr }} |
| Total | ₹ {{ number_format($totalSalary, 2) }} | ₹ {{ number_format($totalAdvance, 2) }} | |||
| + Paid Leave ({{ $paidLeaveDays }} day(s)): ₹ {{ number_format($paidLeaveAmount, 2) }} | |||||
| Grand Total (Salary + Paid Leave − Advance) | ₹ {{ number_format($totalSalary + $paidLeaveAmount - $totalAdvance, 2) }} | ||||