@extends('layouts.app', ['page' => 'Income Statement', 'pageSlug' => 'reports-income-statement', 'section' => 'reports']) @section('content')

Income Statement

{{ config('app.name') }}

Income Statement

For the period: {{ $startDate->format('F d, Y') }} to {{ $endDate->format('F d, Y') }}
Revenue
@php $totalRevenue = 0; @endphp @foreach($revenues as $account) @php $balance = $accountBalances[$account->id] ?? 0; $totalRevenue += $balance; @endphp @endforeach
{{ $account->name }} {{ formatMoney($balance) }}
Total Revenue {{ formatMoney($totalRevenue) }}
Expenses
@php $totalExpenses = 0; @endphp @foreach($expenses as $account) @php $balance = $accountBalances[$account->id] ?? 0; $totalExpenses += $balance; @endphp @endforeach
{{ $account->name }} {{ formatMoney($balance) }}
Total Expenses {{ formatMoney($totalExpenses) }}
NET INCOME
{{ formatMoney($totalRevenue - $totalExpenses) }}
@endsection @push('css') @endpush