@extends('layouts.finance')
@section('title', 'Monthly Report')
@section('subtitle', 'Closed month detail report')
@section('content')
@php
$closing = $reportData['closing'];
$status = $reportData['status'];
$trend = $reportData['trend'];
@endphp
Monthly Business Report
{{ $closing->month->format('F Y') }} Closing
Covered period: {{ $closing->period_start?->format('d M Y') ?? $status['period_start']->format('d M Y') }}
to
{{ $closing->period_end?->format('d M Y') ?? $status['period_end']->format('d M Y') }}
Closed {{ $closing->closed_at?->format('d M Y, H:i') }}
{{ $closing->accounts_closed_count }}/{{ $closing->accounts_required_count }} accounts closed
Total Sale
{{ $metrics->money($closing->total_sale, $closing->currency) }}
Profit Before Expense
{{ $metrics->money($closing->profit, $closing->currency) }}
Expense
{{ $metrics->money($closing->expense, $closing->currency) }}
Net Profit / Loss
{{ $metrics->money($closing->net_profit, $closing->currency) }}
Company Net Worth
{{ $metrics->money($closing->net_worth, $closing->currency) }}
Closing Checklist
| Account |
Type |
Status |
@foreach($status['rows'] as $row)
|
{{ $row['name'] }}
{{ $row['subtitle'] }}
|
{{ $row['kind'] === 'bank' ? 'Bank / Wallet' : 'Credit Card' }} |
@if($row['is_closed'])
Closed {{ $row['closing']?->closed_at?->format('d M Y') }}
@else
Open
@endif
|
@endforeach
Report Notes
This report is generated from the locked monthly closing snapshot.
The month only becomes reportable after every active bank, wallet, and credit card is manually closed for that cycle.
For {{ $closing->month->format('F Y') }}, the coverage window is
{{ $closing->period_start?->format('d M Y') ?? $status['period_start']->format('d M Y') }}
to
{{ $closing->period_end?->format('d M Y') ?? $status['period_end']->format('d M Y') }}.
Recent 6-Month Trend
| Month |
Revenue |
Expenses |
Net |
@foreach($trend['labels'] as $i => $label)
month->format('M Y')) style="background:#eef2ff" @endif>
| {{ $label }} |
{{ $metrics->money($trend['revenue'][$i]) }} |
{{ $metrics->money($trend['expenses'][$i]) }} |
{{ $metrics->money($trend['revenue'][$i] - $trend['expenses'][$i]) }}
|
@endforeach
@endsection