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

{{ $currentStore->name }}

{{ $currentStore->code }} {{ ucfirst($currentStore->status) }}
@if(Auth::user()->isSuperAdmin() && $allStores->count() > 1)
Switch Store:
@endif View Transfers
@if($incomingTransfers->isNotEmpty())
{{ $incomingTransfers->count() }} Incoming Shipment(s) In Transit
Total {{ $incomingTransfers->sum('total_units_dispatched') }} units on route to {{ $currentStore->name }}. Receipt confirmation required.
@foreach($incomingTransfers as $incTrf) Receive {{ $incTrf->transfer_number }} @endforeach
@endif
Available Units in Store
{{ number_format($units->total()) }}
Physical shelf stock
Distinct Products
{{ $productStock->count() }}
Active product lines
Batches in Store
{{ $batchStock->count() }}
Inventory lots
Store Location
{{ $currentStore->city }}, {{ $currentStore->state }}
{{ $currentStore->contact_number }}
Product-Wise Store Inventory
{{ $productStock->count() }} SKUs
@forelse($productStock as $ps) @empty @endforelse
Product Name SKU Pack Size Units in Store
{{ $ps->name }} {{ $ps->sku }} {{ $ps->size_or_weight }} {{ $ps->unit_of_measurement }} {{ number_format($ps->unit_count) }}
No stock available in store.
Batch-Wise Store Inventory
{{ $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 in store.
Physical Unit Registry (In Store)
@if(Auth::user()->isSuperAdmin()) @endif
@forelse($units as $unit) @empty @endforelse
Serial Number Product Batch QR Token Store Received Status Action
{{ $unit->serial_number }} {{ $unit->product->name }} {{ $unit->batch->batch_number }} {{ substr($unit->qr_token, 0, 8) }}... {{ $unit->store_received_at ? $unit->store_received_at->format('d M Y, H:i') : '-' }} {{ $unit->status }}
No physical units found in this store's inventory.
@if($units->hasPages()) @endif
Recent Stock Movements at {{ $currentStore->name }}
@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 for this store.
@endsection