@extends('layouts.admin') @section('title', 'Profit & Loss Report - ' . $event->name) @section('styles') @endsection @section('content')

{{ $event->name }}

Event Date: {{ $event->date ? $event->date->format('F d, Y') : 'Not Set' }} @if($event->venue) {{ $event->venue }} @endif
Total Revenue
KSh {{ number_format($income, 2) }}
Total Expenses
KSh {{ number_format($expenses, 2) }}
Net Profit/Loss
KSh {{ number_format($profit, 2) }}
Profit Margin
{{ number_format($profitMargin, 1) }}%
Return on Investment
{{ number_format($roi, 1) }}%
ROI = (Profit ÷ Expenses) × 100
Expense Ratio
{{ $income > 0 ? number_format(($expenses / $income) * 100, 1) : 0 }}%
Expenses as % of Revenue
Break-even Point
KSh {{ number_format($expenses, 2) }}
Minimum revenue needed
Financial Breakdown
Revenue vs Expenses
Revenue Details
KSh {{ number_format($income, 2) }}
@if($invoices->count() > 0)
@foreach($invoices as $invoice) @endforeach
Invoice # Amount Date
{{ $invoice->invoice_number }} KSh {{ number_format($invoice->total_amount, 2) }} {{ $invoice->created_at->format('M d, Y') }}
Total Revenue KSh {{ number_format($income, 2) }}
@else

No invoices found for this event

@endif
Expense Details
KSh {{ number_format($expenses, 2) }}
@if($expenseDetails->count() > 0)
@foreach($expenseDetails as $expense) @endforeach
Description Amount Date
{{ $expense->description }} KSh {{ number_format($expense->amount, 2) }} {{ $expense->created_at->format('M d, Y') }}
Total Expenses KSh {{ number_format($expenses, 2) }}
@else

No expenses found for this event

@endif
Financial Summary
Performance Analysis
Revenue Generated KSh {{ number_format($income, 2) }}
Total Expenses KSh {{ number_format($expenses, 2) }}
Net Profit/Loss KSh {{ number_format($profit, 2) }}
Key Ratios
Profit Margin {{ number_format($profitMargin, 1) }}%
Return on Investment {{ number_format($roi, 1) }}%
Expense Ratio {{ $income > 0 ? number_format(($expenses / $income) * 100, 1) : 0 }}%
@endsection @section('scripts') @endsection