@extends('layouts.app')
@php
$money = fn ($value) => 'Rs ' . number_format((float) $value, 2);
$max = fn ($items) => max(1, collect($items)->max('value') ?: 1);
@endphp
@section('content')
Dashboard
Sales, stock, customer, branch, payment, and cashier performance overview.
New bill
Today sales{{ $money($widgets['today_sales']) }}
Monthly sales{{ $money($widgets['monthly_sales']) }}
Total orders{{ number_format($widgets['total_orders']) }}
Profit margin{{ $widgets['profit_margin'] }}%
Pending payments{{ $money($widgets['pending_payments']) }}
Online orders{{ number_format($widgets['online_orders']) }}
Low stock alerts{{ $lowStockProducts->count() }}
Branch session#{{ session('shift_id', '-') }}