@extends('admin.layout.template') @section('title','Dashboard') @section('content')
{{-- ================= KPI CARDS ================= --}}

Today Revenue

₹ {{ number_format($todayRevenue,2) }}

Today Orders

{{ $todayOrders }}

Monthly Revenue

₹ {{ number_format($monthlyRevenue,2) }}

Customers

{{ $totalCustomers }}

{{-- ================= SALES GRAPH ================= --}}

Sales & Revenue Snapshot

{{-- ================= ALERTS ================= --}}
⚠ Alerts
    @if($quotationPending > 0)
  • Pending Quotations {{ $quotationPending }}
  • @endif @if($pendingInstallation > 0)
  • Pending Installation {{ $pendingInstallation }}
  • @endif @if($lowStockProducts > 0)
  • Low Stock Products {{ $lowStockProducts }}
  • @endif
{{-- ================= QUICK VIEWS ================= --}}
{{-- Orders Quick View --}}
Orders Quick View

{{ $ordersToday }}

Today

{{ $pendingOrders }}

Pending

{{ $processingOrders }}

Processing

{{ $completedOrders }}

Completed

{{-- Project Status --}}
Project Status
  • Total Projects {{ $totalProjects }}
  • In Progress {{ $projectsInProgress }}
  • Completed {{ $projectsCompleted }}
  • Pending Material {{ $pendingMaterial }}
  • Pending Installation {{ $pendingInstallation }}
{{-- Quotation Status --}}
Quotation Status
  • Sent Today {{ $quotationToday }}
  • Pending Approval {{ $quotationPending }}
  • Approved {{ $quotationApproved }}
  • Converted Orders {{ $quotationConverted }}
{{-- ================= RECENT ORDERS ================= --}}

Recent Orders

@foreach($recentOrders as $order) @endforeach
Order Customer Total Status Date
#{{ $order->order_number }} {{ $order->user->name ?? '-' }} ₹ {{ number_format($order->total,2) }} {{ ucfirst($order->status) }} {{ $order->created_at->format('d M Y') }}
{{-- ================= ACTIVITY FEED ================= --}}

Activity Feed

    @foreach($activities as $activity)
  • {{ $activity->description }}
    {{ $activity->created_at->diffForHumans() }}
  • @endforeach
{{-- ================= CHART ================= --}} @endsection