{{ __('app.accounts.overview.title') }}

{{ __('app.accounts.overview.desc') }}

@if ($years->count() > 1)
@foreach ($years as $option) @endforeach
@endif @can('financial_years.view') {{ __('app.accounts.overview.manage_years') }} @endcan
@if ($year === null) @can('financial_years.create') {{ __('app.accounts.years.create') }} @endcan @else

{{ $year->localizedName() }}

{{ $year->code }} · {{ $year->starts_on->translatedFormat('d M Y') }} — {{ $year->ends_on->translatedFormat('d M Y') }}

{{ $year->is_closed ? __('app.accounts.status.closed') : __('app.accounts.status.open') }} @if ($year->is_current) {{ __('app.accounts.years.current_badge') }} @endif {{ __('app.accounts.overview.as_of') }}: {{ \Illuminate\Support\Carbon::parse($dashboard['as_of'])->translatedFormat('d M Y') }}
@php($currency = config('brand.currency.symbol')) @php($position = [ ['label' => __('app.accounts.overview.stats.cash'), 'value' => $dashboard['cash'], 'icon' => 'banknotes'], ['label' => __('app.accounts.overview.stats.bank'), 'value' => $dashboard['bank'], 'icon' => 'banknotes'], ['label' => __('app.accounts.overview.stats.liquid'), 'value' => $dashboard['liquid_total'], 'icon' => 'arrows-right-left'], ['label' => __('app.accounts.overview.stats.receivable'), 'value' => $dashboard['receivable'], 'icon' => 'users'], ['label' => __('app.accounts.overview.stats.payable'), 'value' => $dashboard['payable'], 'icon' => 'file-text'], ])
@foreach ($position as $stat)

{{ $stat['label'] }}

{{ number_format((float) $stat['value'], 2) }} {{ $currency }}

@endforeach
@php($activity = [ ['label' => __('app.accounts.overview.stats.income'), 'value' => $dashboard['income'], 'tone' => 'text-emerald-700 dark:text-emerald-300'], ['label' => __('app.accounts.overview.stats.expense'), 'value' => $dashboard['expense'], 'tone' => 'text-red-700 dark:text-red-300'], ['label' => __('app.accounts.overview.stats.net'), 'value' => $dashboard['net'], 'tone' => $dashboard['net'] >= 0 ? 'text-emerald-700 dark:text-emerald-300' : 'text-red-700 dark:text-red-300'], ['label' => __('app.accounts.overview.stats.fundraising'), 'value' => $dashboard['fundraising_raised'], 'tone' => 'text-ink dark:text-slate-100'], ])
@foreach ($activity as $stat)

{{ $stat['label'] }}

{{ number_format((float) $stat['value'], 2) }} {{ $currency }}

@endforeach

{{ __('app.accounts.overview.reconciliation.desc') }}

{{ __('app.nav.fees') }}

@if ($dashboard['fees']['reconciled']) {{ __('app.accounts.overview.reconciliation.reconciled') }} @else {{ __('app.accounts.overview.reconciliation.attention') }} @endif
{{ __('app.accounts.overview.reconciliation.fees') }}
{{ number_format((float) $dashboard['fees']['verified_payments'], 2) }}
{{ __('app.accounts.overview.reconciliation.refunds') }}
{{ number_format((float) $dashboard['fees']['refunds'], 2) }}
{{ __('app.accounts.overview.reconciliation.fee_ledger') }}
{{ number_format((float) $dashboard['fees']['ledger_net'], 2) }}
{{ __('app.accounts.overview.reconciliation.fee_difference') }}
{{ number_format((float) $dashboard['fees']['difference'], 2) }}
@if ($dashboard['fees']['pending_count'] > 0)

{{ __('app.accounts.overview.reconciliation.pending_payments', ['count' => $dashboard['fees']['pending_count']]) }} ({{ number_format((float) $dashboard['fees']['pending_amount'], 2) }} {{ $currency }})

@endif

{{ __('app.accounts.nav.payroll') }}

@if ($dashboard['payroll']['reconciled']) {{ __('app.accounts.overview.reconciliation.reconciled') }} @else {{ __('app.accounts.overview.reconciliation.attention') }} @endif
{{ __('app.accounts.overview.reconciliation.payroll_registered') }}
{{ number_format((float) $dashboard['payroll']['registered'], 2) }}
{{ __('app.accounts.overview.reconciliation.payroll_ledger') }}
{{ number_format((float) $dashboard['payroll']['ledger_expense'], 2) }}
{{ __('app.accounts.overview.reconciliation.payroll_difference') }}
{{ number_format((float) $dashboard['payroll']['difference'], 2) }}
@can('vouchers.create') {{ __('app.accounts.overview.shortcuts.new_voucher') }} @endcan @can('bank_reconciliation.view') {{ __('app.accounts.overview.shortcuts.reconcile') }} @endcan @can('account_reports.view') {{ __('app.accounts.overview.shortcuts.trial_balance') }} @endcan
{{ __('app.accounts.overview.stats.drafts') }}
{{ $dashboard['draft_count'] }}
{{ number_format((float) $dashboard['draft_amount'], 2) }} {{ $currency }}
{{ __('app.accounts.overview.stats.posted') }}
{{ $dashboard['posted_count'] }}
{{ __('app.accounts.overview.stats.active_campaigns') }}
{{ $dashboard['active_campaigns'] }}
@forelse ($dashboard['recent_entries'] as $entry) @empty @endforelse
{{ __('app.accounts.overview.recent.entry_no') }} {{ __('app.accounts.overview.recent.date') }} {{ __('app.accounts.overview.recent.memo') }} {{ __('app.accounts.overview.recent.debit') }} {{ __('app.accounts.overview.recent.credit') }}
{{ $entry->entry_no }} {{ $entry->entry_date?->translatedFormat('d M Y') }} {{ $entry->memo }} {{ $entry->lines->pluck('account.code')->filter()->unique()->join(', ') }} {{ number_format((float) $entry->lines->sum('debit'), 2) }} {{ number_format((float) $entry->lines->sum('credit'), 2) }}
@endif