@extends('layouts.admin') @section('title', 'Profit & Loss Statement') @section('page-title', 'Profit & Loss Statement') @section('header-actions') download Export CSV @endsection @section('content')

Profit & Loss Statement

Period: {{ \Carbon\Carbon::parse($report['date_from'])->format('M d, Y') }} to {{ \Carbon\Carbon::parse($report['date_to'])->format('M d, Y') }}

Revenue

@foreach($report['revenue']['details'] as $item)
{{ $item['account']->name }} {{ number_format($item['amount'], 2) }}
@endforeach
Total Revenue {{ number_format($report['revenue']['total'], 2) }}

Expenses

@foreach($report['expenses']['details'] as $item)
{{ $item['account']->name }} {{ number_format($item['amount'], 2) }}
@endforeach
Total Expenses {{ number_format($report['expenses']['total'], 2) }}
Net Income {{ number_format($report['net_income'], 2) }}
@endsection