@extends('layouts.admin') @section('title', 'Dashboard') @php $cards = [ ['Today\'s Sales', 'AED 4,820.00', '+12% from yesterday', 'text-emerald-500'], ['This Month Sales', 'AED 86,450.00', '+8% from last month', 'text-emerald-500'], ['Total Due', 'AED 12,300.00', '9 customers pending', 'text-red-500'], ['VAT Collected (5%)', 'AED 4,116.00', 'This month', 'text-sky-500'], ]; $months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; $sales = [42000, 51000, 47000, 62000, 58000, 71000, 69000, 77000, 82000, 86450, 0, 0]; $top = [ ['LED Panel Light 18W', 320, 8960], ['MCB 32A Single Pole', 210, 4620], ['Twin & Earth Cable 2.5mm', 38, 8170], ['2-Gang Switch White', 190, 2660], ['8-Way Distribution Board', 22, 4070], ]; $invoices = [ ['INV-1042', 'Al Noor Contracting', 3250.00, 'Paid'], ['INV-1041', 'Gulf Star Electric', 5800.50, 'Due'], ['INV-1040', 'Walk-in Customer', 420.00, 'Paid'], ['INV-1039', 'Emirates Builders', 9120.00, 'Partial'], ['INV-1038', 'Walk-in Customer', 185.00, 'Paid'], ]; $badge = [ 'Paid' => 'bg-emerald-500/10 text-emerald-600 dark:text-emerald-400', 'Due' => 'bg-red-500/10 text-red-500', 'Partial' => 'bg-amber-500/10 text-amber-600 dark:text-amber-400', ]; @endphp @section('content') {{-- KPI CARDS --}}
| Invoice | Customer | Amount (incl. VAT) | Status |
|---|---|---|---|
| {{ $no }} | {{ $customer }} | AED {{ number_format($amount, 2) }} | {{ $status }} |