@extends('layouts.app') @section('title', 'Admin Dashboard - eCards Accounting') @section('page-title', 'Admin Dashboard') @section('content')
Total Customers
{{ number_format($stats['total_customers']) }}
Total Income
LKR {{ number_format($stats['total_income'], 2) }}
Total Expenses
LKR {{ number_format($stats['total_expenses'], 2) }}
Net Balance
LKR {{ number_format($stats['net_balance'], 2) }}
Monthly Income vs Expenses ({{ date('Y') }})
This Month
Income: LKR {{ number_format($stats['total_income'], 2) }}
Expenses: LKR {{ number_format($stats['total_expenses'], 2) }}

Net: LKR {{ number_format($stats['monthly_net'], 2) }}
Recent Transactions
View All
@if($recentTransactions->count() > 0)
@foreach($recentTransactions as $transaction) @endforeach
Date Customer Type Amount Description Created By
{{ $transaction->transaction_date->format('M d, Y') }} {{ $transaction->customer->name }} {{ ucfirst($transaction->type) }} {{ $transaction->formatted_amount }} {{ Str::limit($transaction->description, 50) }} {{ $transaction->user->name }}
@else

No transactions found

@endif
@endsection @section('scripts') @endsection