@push('header') @endpush

Moon Traders
Supplier Ledger (Accounts Receivable — Supplier Wise)
@if ($dateFrom && $dateTo) For the period {{ \Carbon\Carbon::parse($dateFrom)->format('d-M-Y') }} to {{ \Carbon\Carbon::parse($dateTo)->format('d-M-Y') }}
@elseif ($dateTo) Up to {{ \Carbon\Carbon::parse($dateTo)->format('d-M-Y') }}
@endif Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

@if ($supplierRows->isEmpty())
No data found for the selected filters.
@else @foreach ($supplierRows as $index => $row) @endforeach
# Supplier Customers Salesmen Opening Bal. Credit Sales Recoveries Closing Bal.
{{ $index + 1 }} {{ $row->supplier_name }} {{ $row->supplier_name }} @if ($row->customer_count > 0) {{ $row->customer_count }} {{ $row->customer_count }} @else 0 @endif @if ($row->employee_count > 0) {{ $row->employee_count }} {{ $row->employee_count }} @else 0 @endif {{ number_format($row->opening_balance, 2) }} {{ number_format($row->period_debit, 2) }} {{ number_format($row->period_credit, 2) }} {{ number_format($row->closing_balance, 2) }}
Grand Total ({{ $supplierRows->count() }} supplier(s)) {{ number_format($totals['customer_count']) }} {{ number_format($totals['opening_balance'], 2) }} {{ number_format($totals['period_debit'], 2) }} {{ number_format($totals['period_credit'], 2) }} {{ number_format($totals['closing_balance'], 2) }}
@endif