@extends('layouts.app') @section('title', 'Dashboard') @section('content')

Dashboard

Products
{{ $totalProducts }}
Today's Orders
{{ $todayOrders }}
Today's Sales
Rs. {{ number_format($todaySales, 2) }}
Supplier Due
Rs. {{ number_format($totalSupplierBalance, 2) }}
Customer Receivable
Rs. {{ number_format($totalCustomerBalance, 2) }}
Recent Orders
@forelse($recentOrders as $order) @empty @endforelse
#CustomerTotalPaidDate
{{ $order->id }} {{ $order->customer ? $order->customer->name : ($order->customer_name ?: 'Walk-in') }} Rs. {{ number_format($order->total, 2) }} @if($order->total - $order->paid > 0) Rs. {{ number_format($order->paid, 2) }} @else Full @endif {{ $order->date->format('d M Y') }}
No orders yet
Low Stock Products
@forelse($lowStockProducts as $product) @empty @endforelse
ProductStock
{{ $product->category->name ?? '' }} - {{ $product->weight->label ?? '' }} {{ $product->stock }} bags
All stocked up
@endsection