@extends('layouts.app') @section('title','Stock Report') @section('page_title','Stock Report') @section('content') @include('reports.partials.print-header',['reportTitle'=>'Stock Report','reportSubtitle'=>'Current inventory position'])

Stock Report

Back to Reports
@forelse($products as $product) @php $wholesaleQty=$product->wholesaleAvailable(); $singleQty=$product->looseSingleAvailable(); $sold=max(0,(int)($product->sold_pieces ?? 0)-(int)($product->returned_pieces ?? 0)); @endphp @empty@endforelse
ProductCategoryUnit ConversionWholesale StockSingle StockTotal Single StockSoldStock ValueAlertStatus
{{ $product->name }}{{ $product->category?->displayName() ?? 'General Products' }}{{ $product->conversionLabel() }}{{ $product->canSellWholesale() ? number_format($wholesaleQty).' '.$product->unitName('wholesale',$wholesaleQty) : '—' }}{{ number_format($singleQty) }} {{ $product->unitName('single',$singleQty) }}{{ number_format($product->current_stock_pieces) }} {{ $product->unitName('single',$product->current_stock_pieces) }}{{ number_format($sold) }} {{ $product->unitName('single',$sold) }}TZS {{ tzs_amount($product->stockValue()) }}{{ number_format($product->minimum_stock_alert) }} {{ $product->unitName('single',$product->minimum_stock_alert) }}{{ $product->stockStatusLabel() }}
No stock records found.
@forelse($products as $product)@php $wholesaleQty=$product->wholesaleAvailable(); $singleQty=$product->looseSingleAvailable(); $sold=max(0,(int)($product->sold_pieces ?? 0)-(int)($product->returned_pieces ?? 0)); @endphp
@if($product->thumbnailUrl())@else{{ strtoupper(substr($product->name,0,1)) }}@endif

{{ $product->name }}

{{ $product->category?->displayName() ?? 'General Products' }}
{{ $product->stockStatusLabel() }}
{{ $product->stockDisplay() }}
Value: TZS {{ tzs_amount($product->stockValue()) }}Sold: {{ number_format($sold) }} {{ $product->unitName('single',$sold) }}
Manage
•••
Sealed stock: {{ $product->canSellWholesale() ? number_format($wholesaleQty).' '.$product->unitName('wholesale',$wholesaleQty) : 'Not used' }}Loose stock: {{ number_format($singleQty) }} {{ $product->unitName('single',$singleQty) }}Alert threshold: {{ number_format($product->minimum_stock_alert) }} {{ $product->unitName('single',$product->minimum_stock_alert) }}
@empty
S

No stock records

Try another status or add stock to an existing product.

Receive Stock
@endforelse
@endsection