@extends('layouts.app') @section('title', 'Warehouse Inventory - ' . $warehouse->name) @section('content')

{{ $warehouse->name }}

{{ $warehouse->code }} @if($warehouse->is_default) Central Hub @endif
Warehouse Intake New Transfer Dispatch Physical Audit Edit
Available Physical Units
{{ number_format($units->total()) }}
In stock on floor
Distinct SKUs / Products
{{ $productStock->count() }}
Active manufactured items
Distinct Batches in Stock
{{ $batchStock->count() }}
Manufacturing lots
Operational Status
{{ ucfirst($warehouse->status) }}
{{ $warehouse->city }}, {{ $warehouse->state }}
Product-Wise Inventory
{{ $productStock->count() }} Products
@forelse($productStock as $ps) @empty @endforelse
Product SKU Pack Size Units in Stock
{{ $ps->name }} {{ $ps->sku }} {{ $ps->size_or_weight }} {{ $ps->unit_of_measurement }} {{ number_format($ps->unit_count) }}
No products currently in stock.
Batch-Wise Inventory & Expiry
{{ $batchStock->count() }} Batches
@forelse($batchStock as $bs) @empty @endforelse
Batch No Product Expiry Date Units
{{ $bs->batch_number }} {{ $bs->product_name }} @php $exp = \Carbon\Carbon::parse($bs->expiry_date); @endphp {{ $exp->format('d M Y') }} {{ number_format($bs->unit_count) }}
No batches currently recorded.
Individual Physical Unit Registry
@forelse($units as $unit) @empty @endforelse
Serial Number Product Batch QR Token Intake Date Status Action
{{ $unit->serial_number }} {{ $unit->product->name }} {{ $unit->batch->batch_number }} {{ substr($unit->qr_token, 0, 10) }}... {{ $unit->warehouse_received_at ? $unit->warehouse_received_at->format('d M Y, H:i') : '-' }} {{ $unit->status }}
No physical units found matching your criteria in this warehouse.
@if($units->hasPages()) @endif
Recent Stock Movements
@forelse($recentMovements as $mov) @empty @endforelse
Movement No Unit Serial Product Type From → To Timestamp User
{{ $mov->movement_number }} {{ $mov->unit->serial_number ?? 'N/A' }} {{ $mov->product->name ?? 'N/A' }} {{ str_replace('_', ' ', $mov->movement_type) }} {{ $mov->from_location_display }} → {{ $mov->to_location_display }} {{ $mov->occurred_at->format('d M Y, H:i') }} {{ $mov->user->name ?? 'System' }}
No stock movements recorded yet.
@endsection