@extends('layout.master') @section('title', 'Dashboard') @section('header-title', 'Dashboard') @section('content')
{{-- ========================================================= NOTE FOR DEV: - Total Users and Total Leads are now LIVE (from DashboardController). - Clients, Invoices, Revenue, Expenses, and chart data are still STATIC/dummy — wire those up the same way (pass from controller, replace hardcoded values here) once you're ready. ========================================================== --}}

Dashboard

Welcome back, {{ Auth::user()->name ?? 'Admin' }} 👋

{{ now()->format('d M Y') }}

Total Users

{{ $totalUsers }}

All Time

Total Clients

64

All Time

Total Leads

{{ $totalLeads }}

All Time

Total Invoices

97

All Time

Total Revenue

Company Sales

2,540,000

This Year

Total Expenses

Supplier + Self

1,120,000

This Year

Net Profit

Revenue − Expenses

1,420,000

Revenue − Expenses
Expense Breakdown
Supplier vs Self
Expense Sources
{{ now()->format('Y') }}

Supplier Expenses

Purchases & vendor payments
780,000 70%

Self Expenses

Internal / personal spend
340,000 30%
Revenue vs Expenses
{{ now()->format('Y') }} — Monthly Overview
Top Expense Categories
{{ now()->format('Y') }}
Raw Material (Supplier) 420,000
Office Rent (Self) 210,000
Logistics (Supplier) 180,000
Utilities (Self) 95,000
Recent Expenses
View All
Category Type Currency Date Amount PKR Equivalent
Raw Material Supplier USD 12 Jul 2026 1,250.00 USD 348,750.00
Office Rent Self PKR 10 Jul 2026 85,000.00 PKR 85,000.00
Logistics Supplier PKR 08 Jul 2026 62,000.00 PKR 62,000.00
Travel Self USD 05 Jul 2026 140.00 USD 39,060.00
{{-- ApexCharts — already loaded in master.blade.php --}} @endsection