@extends('layouts.app')
@section('title', 'Product / POS Analytics')
@section('content')
Total Sales Amount
{{ number_format($cards->total_amount, 2) }}
Total Quantity Sold
{{ $cards->total_qty }}
Total Orders
{{ $cards->orders }}
Average Sale
{{ number_format($cards->avg_sale, 2) }}
Out of Stock
{{ $cards->out_of_stock }}
Total Sales Amount by Date
Total Quantity Sold by Date
Product-wise Sales Quantity
Product-wise Sales Amount
Low / Out of Stock Products
| Product | Category | Stock | Status |
@foreach($outStock as $p)
| {{ $p->name }} | {{ $p->category->name ?? '—' }} | {{ $p->quantity_stock }} | Out |
@endforeach
@foreach($lowStock as $p)
| {{ $p->name }} | {{ $p->category->name ?? '—' }} | {{ $p->quantity_stock }} | Low |
@endforeach
@if($outStock->isEmpty() && $lowStock->isEmpty())
| All products sufficiently stocked. |
@endif
@endsection
@push('scripts')
@endpush