@extends('layouts.app') @section('title', $location->name) @push('styles') @endpush @section('content') @php $typeBadge = [ 'warehouse' => 'badge-warehouse', 'store' => 'badge-store', 'pickup_point' => 'badge-pickup', ][$location->type ?? 'warehouse'] ?? 'badge-warehouse'; $typeLabel = str_replace('_', ' ', $location->type ?? 'warehouse'); @endphp
{{ $location->address }}{{ $location->city ? ', '.$location->city : '' }}{{ $location->state ? ', '.$location->state : '' }}
@endif| Product | Quantity | Reserved | Available | Low Threshold | Bin | Last Restocked |
|---|---|---|---|---|---|---|
|
{{ optional($stock->product)->name ?? '—' }}
@if(!empty(optional($stock->product)->sku))
{{ $stock->product->sku }}
@endif
|
{{ number_format($qty) }} | {{ number_format($reserved) }} | {{ number_format($available) }} | {{ number_format($threshold) }} | {{ $stock->bin_location ?? '—' }} | {{ $stock->last_restocked_at ? \Carbon\Carbon::parse($stock->last_restocked_at)->diffForHumans() : '—' }} |
No stock recorded at this location yet.