@extends('layouts.admin') @section('title', 'Finance Analytics') @section('content') @include('institution.partials.flash')
    @forelse(($analytics['by_invoice_status'] ?? []) as $row)
  • {{ is_object($row->invoice_status) ? $row->invoice_status->label() : ($row->invoice_status ?? '—') }} {{ $row->total }} / {{ number_format((float) $row->amount, 2) }}
  • @empty
  • No data.
  • @endforelse
    @forelse(($analytics['by_payment_method'] ?? []) as $row)
  • {{ $row->payment_method ?? '—' }} {{ $row->total }} / {{ number_format((float) $row->amount, 2) }}
  • @empty
  • No data.
  • @endforelse
    @forelse(($analytics['by_gateway'] ?? []) as $row)
  • {{ $row->gateway ?? '—' }} {{ $row->total }} / {{ number_format((float) $row->amount, 2) }}
  • @empty
  • No data.
  • @endforelse
    @forelse(($analytics['top_balances'] ?? []) as $account)
  • {{ $account->student ? trim($account->student->fullName()) : ('Account #'.$account->id) }} {{ number_format((float) $account->current_balance, 2) }} {{ $account->currency }}
  • @empty
  • No data.
  • @endforelse
@endsection