Advance Salary Report

@foreach($rows as $i => $row) @endforeach
# Date Staff ID Name Branch Amount Remark
{{ $i + 1 }} {{ $row->date ? \Carbon\Carbon::parse($row->date)->format('d/m/Y') : '-' }} {{ $row->staff_id ?? '-' }} {{ optional($row->staff)->name ?? '-' }} {{ optional($row->staff)->branch ?? '-' }} ₹ {{ number_format($row->amount ?? 0, 2) }} {{ $row->remark ?? '-' }}
Total ₹ {{ number_format($rows->sum('amount'), 2) }}