@extends('Branch.layout') @section('content') {{-- Hero --}}

Welcome back{{ isset($branchName) ? ', ' . $branchName : '' }} 👋

Have a great day! Manage your products, bills and stock from here.

{{-- Primary stats --}}
{{-- Products --}}
Products
{{ $productCount }}
{{-- Bills --}}
Bills
{{ $billCount }}
{{-- Today's Sales --}}
Today's Sales
₹{{ number_format($todaySales ?? 0, 0) }}
{{-- Out Of Stock --}}
Out of Stock
{{ $outOfStockCount }}
{{-- Secondary stats --}}
Low Stock
{{ $lowStockCount ?? 0 }}
Customers
{{ $customerCount ?? 0 }}
Monthly Sales
₹{{ number_format($monthSales ?? 0, 0) }}
Avg. Bill Value
₹{{ number_format($avgBillValue ?? 0, 0) }}
{{-- Quick links + Recent activity --}}
Overview
Recent Bills
@forelse($recentBills ?? [] as $bill)
#{{ $bill->order_id }} — {{ $bill->customer_name ?? 'Walk-in' }}
{{ \Carbon\Carbon::parse($bill->created_at)->diffForHumans() }}
₹{{ number_format($bill->total, 2) }}
@empty

No recent bills to show yet.

@endforelse
@endsection