@extends('layouts.app') @section('title', 'Finance Statistics') @section('page_title', 'Finance Statistics') @section('content')

Total Income

{{ number_format($totalIncome, 2) }}

{{ $stats['income']['count'] }} entries

Total Expenses

{{ number_format($totalExpenses, 2) }}

{{ $stats['fixed_cost']['count'] + $stats['variable_cost']['count'] }} entries

NET Result

{{ $netResult >= 0 ? '+' : '' }}{{ number_format($netResult, 2) }}

{{ $title }}

Income Analysis

Total

{{ number_format($stats['income']['total'], 2) }}

Average per Entry

{{ number_format($stats['income']['average'], 2) }}

Number of Entries

{{ $stats['income']['count'] }}

Fixed Costs

Total

{{ number_format($stats['fixed_cost']['total'], 2) }}

Average per Entry

{{ number_format($stats['fixed_cost']['average'], 2) }}

Number of Entries

{{ $stats['fixed_cost']['count'] }}

Variable Costs

Total

{{ number_format($stats['variable_cost']['total'], 2) }}

Average per Entry

{{ number_format($stats['variable_cost']['average'], 2) }}

Number of Entries

{{ $stats['variable_cost']['count'] }}

@if(count($recurring) > 0)

Recurring Expenses

Expenses that appear multiple times in this period

@foreach($recurring as $expense) @endforeach
Description Category Occurrences Average Total
{{ $expense['description'] }} {{ $expense['category'] === 'fixed_cost' ? 'Fixed' : 'Variable' }} {{ $expense['occurrences'] }}x {{ number_format($expense['average'], 2) }} {{ number_format($expense['total'], 2) }}
@endif
← Back to Finances @endsection