Supplier Payments Report
Company Information
@if($company && $company->logo_path) Company Logo @endif
Name: {{ $company->name ?? 'Company Name' }}
Address: {{ $company->address ?? 'Company Address' }}
Phone: {{ $company->phone ?? 'Company Phone' }}
Email: {{ $company->email ?? 'Company Email' }}
@if($company && $company->vat_no)
VAT No: {{ $company->vat_no }}
@endif @if($company && $company->tin_no)
TIN No: {{ $company->tin_no }}
@endif
Currency: {{ $currency->code }}
Report Information
Period: {{ $dateFrom }} to {{ $dateTo }}
Report Date: {{ date('d M Y') }}
Currency: {{ $currency->code }}
Currency: {{ $currency->code }}
Period: {{ $dateFrom }} to {{ $dateTo }}
Report Date: {{ date('d M Y') }}
@php $grandTotal = 0; @endphp @foreach($paymentsData as $row) @php $grandTotal = $row['balance']; @endphp @endforeach
Date Description Reference Supplier Code Supplier Name DR CR Balance
{{ $row['date'] }} {{ $row['description'] }} {{ $row['reference'] }} {{ $row['supplier_code'] }} {{ $row['supplier_name'] }} {{ number_format($row['dr'], 2) }} {{ number_format($row['cr'], 2) }} @if($row['balance'] < 0) ({{ number_format(abs($row['balance']), 2) }}) @else {{ number_format($row['balance'], 2) }} @endif
Grand Total: @if($grandTotal < 0) ({{ number_format(abs($grandTotal), 2) }}) @else {{ number_format($grandTotal, 2) }} @endif