@extends('pdf.layout') @section('title', 'System 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 Suppliers | {{ $data['totalSuppliers'] ?? 0 }} | Active Suppliers | {{ $data['activeSuppliers'] ?? 0 }} |
| Total Products | {{ $data['totalProducts'] ?? 0 }} | Active Products | {{ $data['activeProducts'] ?? 0 }} |
| Total Collections | {{ $data['totalCollections'] ?? 0 }} | Total Payments | {{ $data['totalPayments'] ?? 0 }} |
| Total Collections Amount | {{ number_format($data['totalCollectionAmount'] ?? 0, 2) }} |
| Total Payments Amount | {{ number_format($data['totalPaymentAmount'] ?? 0, 2) }} |
| Outstanding Balance | {{ number_format(abs($data['outstandingBalance'] ?? 0), 2) }} |
| Collections This Month | {{ $data['collectionsThisMonth'] ?? 0 }} | Collection Amount | {{ number_format($data['collectionAmountThisMonth'] ?? 0, 2) }} |
| Payments This Month | {{ $data['paymentsThisMonth'] ?? 0 }} | Payment Amount | {{ number_format($data['paymentAmountThisMonth'] ?? 0, 2) }} |