@extends('layouts.app') @section('title', 'Finished Goods Inventory') @section('content')

Finished Goods Inventory

@include('manufacturing.partials.navigation')

{{ $stats['total_batches'] ?? 0 }}

Total Batches

{{ number_format($stats['available_quantity'] ?? 0) }}

Available Qty

KES {{ number_format($stats['total_value'] ?? 0, 2) }}

Total Value

{{ $stats['low_stock'] ?? 0 }}

Low Stock Items

@if(session('success'))
{{ session('success') }}
@endif
Finished Goods Inventory
Manage finished products stock
@forelse($data as $item) @empty @endforelse
Product Batch # Available Reserved Unit Cost Total Value Manufacturing Expiry Status Actions
{{ $item->product->name ?? 'N/A' }}
{{ $item->product->product_code ?? 'N/A' }}
{{ $item->batch_number }} {{ number_format($item->quantity_available, 2) }} {{ number_format($item->quantity_reserved, 2) }} KES {{ number_format($item->unit_cost, 2) }} KES {{ number_format($item->quantity_available * $item->unit_cost, 2) }} {{ $item->manufacturing_date ? $item->manufacturing_date->format('d M Y') : 'N/A' }} @if($item->expiry_date) @if($item->expiry_date < now()) {{ $item->expiry_date->format('d M Y') }} @elseif($item->expiry_date <= now()->addDays(30)) {{ $item->expiry_date->format('d M Y') }} @else {{ $item->expiry_date->format('d M Y') }} @endif @else N/A @endif @php $statusClasses = [ 'available' => 'badge-available', 'reserved' => 'badge-reserved', 'damaged' => 'badge-damaged', 'expired' => 'badge-expired' ]; $class = $statusClasses[$item->status] ?? 'badge-available'; @endphp {{ ucfirst($item->status) }}
@if($item->quantity_reserved == 0) @endif

No finished goods inventory found

Add First Stock
Showing {{ $data->firstItem() ?? 0 }} to {{ $data->lastItem() ?? 0 }} of {{ $data->total() }} entries
{{ $data->appends(request()->query())->links() }}
@endsection