@extends('layouts.pdf.base') @section('pdf-title', 'Income Statement') @section('pdf-subtitle') Period: {{ $from ?? 'Start' }} → {{ $to ?? 'End' }} @endsection @section('pdf-content')
Revenues
@foreach($revenues as $row) @endforeach
AccountBalance
{{ $row['code'] }} — {{ $row['account'] }} {{ number_format($row['balance'], 2) }}
Total Revenues {{ number_format($totalRevenue, 2) }}
Expenses
@foreach($expenses as $row) @endforeach
AccountBalance
{{ $row['code'] }} — {{ $row['account'] }} {{ number_format($row['balance'], 2) }}
Total Expenses {{ number_format($totalExpense, 2) }}
Net Profit / Loss {{ number_format($netProfit, 2) }}
@endsection