Accounting Dashboard

Welcome back, {{ Auth::user()->name ?? 'User' }}!

{{ now()->format('M d, Y') }}
Back to Dashboard
Total Assets
{{ number_format($stats['total_assets'] ?? 0) }}
+12% vs last month
Monthly Revenue
{{ number_format($stats['monthly_revenue_gross'] ?? $stats['monthly_revenue'] ?? 0) }}
Includes VAT
+8% vs last month
Monthly Expenses
{{ number_format($stats['monthly_expenses'] ?? 0) }}
-3% vs last month
Net Income
{{ number_format(($stats['monthly_revenue'] ?? 0) - ($stats['monthly_expenses'] ?? 0)) }}
+15% vs last month
Booked: {{ number_format($stats['booked_revenue'] ?? 0) }} @if($stats['pending_pos'] > 0) POS: {{ number_format($stats['pending_pos'] ?? 0) }} @endif

Revenue vs Expenses

Trial Balance
View balances
Profit & Loss
Revenue vs expenses
Balance Sheet
Assets & liabilities
General Ledger
All transactions
@if(isset($alerts) && count($alerts) > 0)
{{ $alerts[0]['message'] ?? 'System alert' }}
@endif

Recent Journal Entries

View All
@forelse($recentEntries ?? [] as $entry)
{{ $entry->entry_number }}
{{ $entry->date->format('M d, Y') }} • {{ Str::limit($entry->description, 20) }}
{{ number_format($entry->total_amount) }}
{{ ucfirst($entry->status) }}
@empty

No recent entries

@endforelse

Module Sync Status

@foreach(['pos' => 'POS Revenue', 'services' => 'Services', 'rooms' => 'Room Revenue', 'purchase_orders' => 'Purchase Orders', 'expenses' => 'Expenses', 'payments' => 'Payments'] as $key => $label)
{{ $label }} {{ $syncStatus[$key]['pending_count'] ?? 0 }} pending
@php $pending = $syncStatus[$key]['pending_count'] ?? 0; $total = $pending + 1; $syncedPercent = $total > 0 ? round((($total - $pending) / $total) * 100) : 100; @endphp
@endforeach
@php $totalPending = 0; foreach ($syncStatus as $status) { $totalPending += $status['pending_count'] ?? 0; } $totalSynced = $stats['journal_entries_count'] ?? 0; @endphp
{{ $totalPending }}
Pending
{{ $totalSynced }}
Synced
{{ $stats['posted_entries_count'] ?? 0 }}
Posted
@php $monthlyRevenueGross = (float) ($stats['monthly_revenue_gross'] ?? ($stats['monthly_revenue'] ?? 0)); $monthlyRevenueNet = (float) ($stats['monthly_revenue_net'] ?? ($stats['monthly_revenue'] ?? 0)); $revenueBreakdown = $stats['revenue_breakdown'] ?? []; $revenueStatsPayload = [ 'gross' => $monthlyRevenueGross, 'net' => $monthlyRevenueNet, 'breakdown' => $revenueBreakdown, ]; @endphp