@extends('backend.layouts.main') @section('title') {{ __('Dashboard') }} :: {{ __('Accounts') }} @endsection @section('content') @include('backend.pages.dashboard.tabs')
{{ __('Average balance') }}

{{ $avg_balance }}

{{ __('Max balance') }}

{{ $max_balance }}

{{ __('Total balance') }}

{{ $total_balance }}

{{ __('Transactions by type') }}

@if(!$top_transactions->isEmpty())

{{ __('Top transactions') }}

@foreach($top_transactions as $transaction) @endforeach
{{ __('User') }} {{ __('ID') }} {{ __('Type') }} {{ __('Amount') }} {{ __('Created') }}
{{ $transaction->account->user->name }} {{ $transaction->transactionable_id }} {{ $transaction->transactionable->title ?? __('Unknown') }} {{ $transaction->_amount }} {{ $transaction->updated_at->diffForHumans() }}
@endif @endsection