@extends('layouts.app') @section('title', 'Monthly Summary Report') @section('content')

Monthly Summary Report

Back to Reports
Total Income ({{ $year }})
LKR {{ number_format($yearlyTotals['income'], 2) }}
Total Expenses ({{ $year }})
LKR {{ number_format($yearlyTotals['expense'], 2) }}
Net {{ $yearlyTotals['net'] >= 0 ? 'Profit' : 'Loss' }}
LKR {{ number_format(abs($yearlyTotals['net']), 2) }}
Avg Monthly Profit
LKR {{ number_format($yearlyTotals['net'] / 12, 2) }}
Monthly Income vs Expense ({{ $year }})
Monthly Breakdown
@foreach($monthlyData as $data) @endforeach
Month Income Expenses Net Profit/Loss Transaction Count
{{ $data->month_name }} LKR {{ number_format($data->income, 2) }} LKR {{ number_format($data->expense, 2) }} LKR {{ number_format($data->income - $data->expense, 2) }} {{ $data->transaction_count }}
@endsection