@extends('dashboard.body.main') @section('container')
@if(session()->has('success')) @endif

Dashboard Overview

Welcome back, {{ auth()->user()->name }}! Here's what's happening in your store today.

Go to POS

Total Paid

${{ number_format($total_paid, 2) }}

Total Due

${{ number_format($total_due, 2) }}

Complete Orders

{{ $complete_orders }}

Pending Orders

{{ $pending_orders }}

Monthly Sales Overview ({{ date('Y') }})

Recent Orders

@forelse($recent_orders as $order) @empty @endforelse
Date Customer Amount Status Action
{{ $order->created_at->format('d M Y') }} {{ $order->customer->name ?? 'Walk-in Customer' }} ${{ number_format($order->total, 2) }} {{ ucfirst($order->order_status) }}
No recent orders found.

Top Selling Products

@forelse($top_products as $product) @empty @endforelse
Product Code Sold
{{ $product->product_name }} {{ $product->product_code }} {{ $product->total_sold }}
No sales data yet.
@endsection @section('specificpagescripts') @endsection