{{ $branch->branch_name }} - Payout Preview

{{ $monthName }} {{ $year }} | {{ \Carbon\Carbon::parse($from_date)->format('d/m/Y') }} to {{ \Carbon\Carbon::parse($to_date)->format('d/m/Y') }}

@php $sno = 1; $totalHourBasedSalary = 0; $totalDayBasedSalary = 0; $totalSalary = 0; $totalAdvance = 0; $totalBalance = 0; $totalPresentDays = 0; $totalPaidLeaveDays = 0; $totalPaidLeaveAmount = 0; $totalHalfDay = 0; $totalFullDay = 0; $totalOneHalfDay = 0; $totalDoubleDuty = 0; $totalHourBasedCount = 0; @endphp @foreach ($staffs as $staff) @php $hourBasedSalary = $staff->hour_based_salary ?? 0; $dayBasedSalary = $staff->day_based_salary ?? 0; $salary = $staff->salary ?? 0; $advance = $staff->advance ?? 0; $balance = $staff->balance ?? 0; $presentDays = $staff->present_days ?? 0; $perDaySalary = $staff->per_day_salary ?? 0; $paidLeaveDays = $staff->paid_leave_days ?? 0; $paidLeaveAmount = $staff->paid_leave_amount ?? 0; $halfDayCount = $staff->half_day_count ?? 0; $fullDayCount = $staff->full_day_count ?? 0; $oneHalfDayCount = $staff->one_half_day_count ?? 0; $doubleDutyCount = $staff->double_duty_count ?? 0; $hourBasedCount = $staff->hour_based_count ?? 0; $totalHourBasedSalary += $hourBasedSalary; $totalDayBasedSalary += $dayBasedSalary; $totalSalary += $salary; $totalAdvance += $advance; $totalBalance += $balance; $totalPresentDays += $presentDays; $totalPaidLeaveDays += $paidLeaveDays; $totalPaidLeaveAmount += $paidLeaveAmount; $totalHalfDay += $halfDayCount; $totalFullDay += $fullDayCount; $totalOneHalfDay += $oneHalfDayCount; $totalDoubleDuty += $doubleDutyCount; $totalHourBasedCount += $hourBasedCount; @endphp @endforeach
S.No Staff ID Staff Name Attendance Date Total Working Hours Hour Based Salary Day Based Salary Present Days Per Day Salary Paid Leave Days Paid Leave Amt Half Day Full Day One & Half Day Double Duty Hour Based Salary Advance Balance
{{ $sno++ }} {{ $staff->user_id ?? '-' }} {{ $staff->name ?? '-' }} {{ $staff->attendance_date ?? '-' }} {{ $staff->total_working_hours ?? '-' }} {{ number_format($hourBasedSalary, 2) }} {{ number_format($dayBasedSalary, 2) }} {{ $presentDays }} {{ number_format($perDaySalary, 2) }} {{ $paidLeaveDays }} {{ number_format($paidLeaveAmount, 2) }} {{ $halfDayCount }} {{ $fullDayCount }} {{ $oneHalfDayCount }} {{ $doubleDutyCount }} {{ $hourBasedCount }} {{ number_format($salary, 2) }} {{ number_format($advance, 2) }} {{ number_format($balance, 2) }}
Total {{ number_format($totalHourBasedSalary, 2) }} {{ number_format($totalDayBasedSalary, 2) }} {{ $totalPresentDays }} {{ $totalPaidLeaveDays }} {{ number_format($totalPaidLeaveAmount, 2) }} {{ $totalHalfDay }} {{ $totalFullDay }} {{ $totalOneHalfDay }} {{ $totalDoubleDuty }} {{ $totalHourBasedCount }} {{ number_format($totalSalary, 2) }} {{ number_format($totalAdvance, 2) }} {{ number_format($totalBalance, 2) }}