@extends('layouts.app') @section('title', 'Profit & Loss') @section('content') @include('super-admin.partials.nav') Finance home

Income

@forelse ($incomeRows as $row)
{{ $row->account?->name ?? 'Account #'.$row->account_id }} {{ number_format((float) $row->total, 2) }}
@empty

No income in range.

@endforelse
Total income {{ number_format((float) $incomeTotal, 2) }}

Expense

@forelse ($expenseRows as $row)
{{ $row->account?->name ?? 'Account #'.$row->account_id }} {{ number_format((float) $row->total, 2) }}
@empty

No expense in range.

@endforelse
Total expense {{ number_format((float) $expenseTotal, 2) }}

Net profit / (loss)

{{ number_format((float) $net, 2) }}

@endsection