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

Welcome, {{ auth()->user()->first_name }}!

Manage your stock and invoices efficiently.

View Catalogue

Total Products

{{ number_format($totalProducts) }}

Active in catalog

Total Stock

{{ number_format($totalStock) }}

Units in warehouse

Low Stock

{{ number_format($lowStockCount) }}

Requires attention

Total Revenue

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

From closed invoices

All Products
Grid
List
@foreach($inventoryByCategory as $category) @foreach($category->inventories as $inv)
{{ $inv->sku }}
{{ $inv->name }}
Pack Size: {{ $inv->pack_size }}
${{ number_format($inv->sale_price_inc_gst, 2) }} @php $badgeClass = $inv->quantity <= 0 ? 'out' : ($inv->quantity < 10 ? 'low' : 'in'); $badgeText = $inv->quantity <= 0 ? 'Out of Stock' : ($inv->quantity < 10 ? 'Low Stock' : 'In Stock'); @endphp {{ $badgeText }} ({{ $inv->quantity }})
@endforeach @endforeach
Low Stock Items
@forelse($lowStockItems as $inv)
{{ $inv->sku }}
{{ $inv->name }}
${{ number_format($inv->sale_price_inc_gst, 2) }} Low ({{ $inv->quantity }})
@empty

No low stock items.

@endforelse
Out of Stock Items
@forelse($outOfStockItems as $inv)
{{ $inv->sku }}
{{ $inv->name }}
${{ number_format($inv->sale_price_inc_gst, 2) }} Out (0)
@empty

All items are in stock.

@endforelse
@push('scripts') @endpush @endsection