@extends('pdf.layout') @section('title', 'Payments Summary Report') @section('meta-info') @if (isset($start_date) && isset($end_date))
Period: {{ $start_date }} to {{ $end_date }}
@elsePeriod: All Time
@endif @endsection @section('content')| Total Payments | {{ $data['summary']['total_count'] ?? 0 }} |
| Total Amount | {{ number_format($data['summary']['total_amount'] ?? 0, 2) }} |
| Payment Type | Count | Amount |
|---|---|---|
| {{ $type['type'] }} | {{ $type['count'] }} | {{ number_format($type['total_amount'], 2) }} |
| Supplier Code | Supplier Name | Count | Amount |
|---|---|---|---|
| {{ $supplier['supplier_code'] }} | {{ $supplier['supplier_name'] }} | {{ $supplier['count'] }} | {{ number_format($supplier['total_amount'], 2) }} |