@extends('pdf.layout') @section('title', 'Financial 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 Collections | {{ number_format($data['summary']['total_collections'] ?? 0, 2) }} |
| Total Payments | {{ number_format($data['summary']['total_payments'] ?? 0, 2) }} |
| Net Balance | {{ number_format(abs($data['summary']['net_balance'] ?? 0), 2) }} |
| Month | Collections | Payments | Net |
|---|---|---|---|
| {{ $month['month'] }} | {{ number_format($month['collections'], 2) }} | {{ number_format($month['payments'], 2) }} | {{ number_format(abs($month['net']), 2) }} |