@extends('layouts.app') @section('title', 'Inventory Catalog') @section('page_title', 'Stock & Service Catalog') @section('content')
TOTAL PRODUCTS

{{ $products->count() }}

TOTAL SERVICES

{{ $services->count() }}

LOW STOCK VARIANTS

{{ $products->flatMap->variants->filter->isLowStock()->count() }}

ESTIMATED ASSET VALUE

{{ number_format($products->flatMap->variants->sum(fn($v) => $v->buying_price * $v->stock_qty)) }} UGX

@forelse($products as $p) @foreach($p->variants as $index => $v) @if($index === 0) @endif @endforeach @empty @endforelse
Code Product Name Category SKU Barcode Buying Price Selling Price Stock Actions
{{ $p->product_code }} {{ $p->product_name }} {{ $p->category->name }} {{ $v->sku }} {{ $v->barcode ?? '-' }} {{ number_format($v->buying_price) }} UGX {{ number_format($v->selling_price) }} UGX {{ $v->stock_qty }} @if($index === 0) @endif
No products registered yet.
@forelse($services as $s) @empty @endforelse
Code Service Name Category Default Price Status
{{ $s->service_code }} {{ $s->service_name }} {{ $s->category->name }} {{ number_format($s->default_price) }} UGX Active
No services registered yet.
@forelse($categories as $cat) @empty @endforelse
Name Type Description Status
{{ $cat->name }} {{ ucfirst($cat->type) }} {{ $cat->description ?? '-' }} Active
No categories registered yet.
@endsection @section('scripts') @endsection