{{ $branch->branch_name ?? 'Branch' }} - Advance Salary

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