Payment Details Report

{{ $branchHistory->branch->branch_name ?? '' }}
@foreach($details as $i => $row) @endforeach
# ID Name Branch PD Paid Leave Leave Amt Advance Total Amount Payable Amount Bank Name Account Holder Name Account Number IFSC Bank Branch Name
{{ $i + 1 }} {{ $row->staff_id }} {{ $row->staff->name ?? '-' }} {{ $row->branchHistory->branch->branch_name ?? '-' }} {{ $row->present_days }} {{ $row->paid_leave_days ?: 0 }} {{ number_format($row->paid_leave_amount ?: 0, 2) }} {{ number_format($row->advance, 2) }} {{ number_format($row->salary, 2) }} {{ number_format($row->payout, 2) }} {{ $row->bank_name ?: 'null' }} {{ $row->account_holder_name ?: 'null' }} {{ $row->account_number ?: 'null' }} {{ $row->ifsc ?: 'null' }} {{ $row->branch_name ?: 'null' }}
Total {{ $details->sum('present_days') }} {{ $details->sum('paid_leave_days') }} {{ number_format($details->sum('paid_leave_amount'), 2) }} {{ number_format($details->sum('advance'), 2) }} {{ number_format($details->sum('salary'), 2) }} {{ number_format($details->sum('payout'), 2) }}