@extends('backend.partials.master') @section('title') {{ ___('admin.financial_reports_39c53c') }} @endsection @section('maincontent') @include('backend.reports._filterbar') @php $laDonut = ['labels' => ['Income', 'Expense'], 'series' => [(float) $income, (float) $expense]]; $laTrend = ['type' => 'area', 'labels' => $byMonth->pluck('month')->all(), 'series' => [ ['name' => 'Income', 'data' => $byMonth->pluck('income')->map(fn($v) => (float) $v)->all()], ['name' => 'Expense', 'data' => $byMonth->pluck('expense')->map(fn($v) => (float) $v)->all()], ]]; @endphp
{{ ___('admin.income_1c89b1') }}

{{ currency_symbol() }}{{ number_format($income) }}

{{ ___('admin.expense_a0db8e') }}

{{ currency_symbol() }}{{ number_format($expense) }}

{{ ___('admin.net_9bb81c') }}

{{ currency_symbol() }}{{ number_format($net) }}

{{ ___('admin.transactions_1e3281') }}

{{ number_format($txns) }}

{{ ___('admin.income_vs_expense_by_month_22529f') }}

{{ ___('admin.by_account_a8f309') }}

@foreach($byAccount as $a) {{ $a->account_name }} {{ currency_symbol() }}{{ number_format($a->income) }} {{ currency_symbol() }}{{ number_format($a->expense) }} {{ currency_symbol() }}{{ number_format($a->income - $a->expense) }} @endforeach
@endsection @push('scripts') @endpush