@extends('pdf.layout') @section('title', 'Financial Summary Report') @section('meta-info') @if (isset($start_date) && isset($end_date))

Period: {{ $start_date }} to {{ $end_date }}

@else

Period: All Time

@endif @endsection @section('content')

Financial Overview

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) }}
@if (isset($data['monthly_breakdown']) && count($data['monthly_breakdown']) > 0)

Monthly Breakdown

@foreach ($data['monthly_breakdown'] as $month) @endforeach
Month Collections Payments Net
{{ $month['month'] }} {{ number_format($month['collections'], 2) }} {{ number_format($month['payments'], 2) }} {{ number_format(abs($month['net']), 2) }}
@endif @endsection