@extends('layouts.app') @section('title', __('dashboard.accounts_dashboard')) @section('content') @include('dashboard.partials.theme')
{{-- Header banner with filters --}}

{{ __('dashboard.accounts_dashboard') }}

{{ __('dashboard.accounts_overview_sub') }}

{{ \Carbon::now()->format('l, d M Y') }}
@if (count($all_locations) > 1) {!! Form::select('dashboard_location', $all_locations, null, [ 'class' => 'dava-select select2', 'placeholder' => __('lang_v1.select_location'), 'id' => 'dashboard_location', ]) !!} @endif
{{-- ACCOUNTS STAT CARDS --}}

{{ __('dashboard.accounts_overview') }}

{{ __('dashboard.accounts_overview_sub') }}

{{ __('dashboard.total_balance') }}

{{ __('dashboard.total_credit') }}

{{ __('dashboard.total_debit') }}

{{ __('dashboard.net_cash_flow') }}

{{ __('dashboard.total_deposits') }}

{{ __('dashboard.total_fund_transfers') }}

{{ __('dashboard.no_of_transactions') }}

{{ __('dashboard.avg_transaction_value') }}

{{ __('dashboard.active_accounts') }}

{{ __('dashboard.closed_accounts') }}

{{-- CHARTS --}}

{{ __('dashboard.cash_flow_trend_30_days') }}

{{ __('dashboard.accounts_overview_sub') }}

{!! $accounts_chart_1->container() !!}

{{ __('dashboard.cash_flow_trend_fy') }}

{!! $accounts_chart_2->container() !!}
{{-- ACCOUNT-WISE BALANCE - BAR --}}

{{ __('dashboard.account_wise_balance') }}

{!! $account_balance_chart->container() !!}
{{-- ACCOUNT-WISE VOLUME - BAR --}}

{{ __('dashboard.account_wise_volume') }}

{!! $account_volume_chart->container() !!}
{{-- BALANCE BY ACCOUNT TYPE - PIE --}}

{{ __('dashboard.balance_by_account_type') }}

{!! $account_type_chart->container() !!}
{{-- CREDIT VS DEBIT - PIE --}}

{{ __('dashboard.credit_vs_debit') }}

{!! $credit_debit_chart->container() !!}
{{-- ACCOUNT BALANCES --}}

{{ __('dashboard.account_balances') }}

@forelse ($account_balances as $acc) @empty @endforelse
{{ __('account.account') }} {{ __('sale.status') }} {{ __('lang_v1.balance') }}
{{ $acc->name }} @if ($acc->is_closed) {{ __('account.closed') }} @else {{ __('account.active') }} @endif @format_currency($acc->balance)
@lang('lang_v1.no_records_found')
{{-- RECENT TRANSACTIONS --}}

{{ __('dashboard.recent_transactions') }}

@forelse ($recent_transactions as $txn) @empty @endforelse
@lang('messages.date') {{ __('account.account_name') }} {{ __('sale.status') }} @lang('sale.total')
{{ \Carbon::parse($txn->operation_date)->format('d-m-Y') }} {{ $txn->account_name }} @if ($txn->type == 'credit') {{ __('account.credit') }} @else {{ __('account.debit') }} @endif @format_currency($txn->amount)
@lang('lang_v1.no_records_found')
@endsection @section('javascript') {!! $accounts_chart_1->script() !!} {!! $accounts_chart_2->script() !!} {!! $account_balance_chart->script() !!} {!! $account_volume_chart->script() !!} {!! $account_type_chart->script() !!} {!! $credit_debit_chart->script() !!} @endsection