@extends('layouts.app') @section('title', __('Financial Dashboard') . ' — ' . \App\Services\BrandingService::appName()) @php $currency = \App\Services\BrandingService::currency(); $balanced = abs($stats['total_debit'] - $stats['total_credit']) < 0.005; @endphp @section('content') {{ __('Voucher register') }} {{ __('Trial balance') }}
{{ __('Posted debit total') }}
{{ number_format($stats['total_debit'], 2) }} {{ $currency }}
{{ __('Posted credit total') }}
{{ number_format($stats['total_credit'], 2) }} {{ $currency }}
{{ $balanced ? __('Journal is balanced') : __('Journal is out of balance') }}
{{ __('Largest account balances') }}
@forelse($balances as $row) @empty @endforelse
{{ __('Account') }}{{ __('Debit') }}{{ __('Credit') }}{{ __('Balance') }}
{{ $row['account'] }} {{ number_format($row['debit'], 2) }} {{ number_format($row['credit'], 2) }} {{ number_format($row['balance'], 2) }}
{{ __('No posted journal entries yet.') }}
{{ __('Recent vouchers') }} {{ __('View all') }}
@forelse($recent as $voucher) @empty @endforelse
{{ __('Voucher') }}{{ __('Type') }}{{ __('Date') }}{{ __('Branch') }}{{ __('Amount') }}{{ __('Status') }}
{{ $voucher->voucher_number }} {{ ucfirst($voucher->voucher_type) }} {{ $voucher->voucher_date?->format('d M Y') }} {{ $voucher->branch?->name ?? '—' }} {{ number_format($voucher->total_debit, 2) }}
{{ __('No vouchers yet.') }}
@endsection