@extends('layouts.app') @section('title', 'Inventory Management') @section('content')
@yield('title')
{{-- Search Input --}}
{{-- Bulk Actions Dropdown --}} {{-- Filters Button --}}
{{-- Per Page Select --}}
@if($locationType == 'warehouse' || $locationType == 'all')
@endif @if($locationType == 'distribution_center' || $locationType == 'all')
@endif
@forelse($inventory as $item) @php $available = $item->quantity - $item->reserved_quantity; $isLow = $available <= ($item->product->reorder_level ?? 0); @endphp @empty @endforelse
Product Location On Hand Issued Qty Reserved Available Unit Cost Total Value
{{ $item->product->name ?? 'Unknown' }}
{{ $item->product->code ?? '-' }}
@if($item->location_type == 'warehouse') {{ $item->location->name ?? 'Warehouse #' . $item->location_id }} @elseif($item->location_type == 'distribution_center') {{ $item->location->name ?? 'DC #' . $item->location_id }} @else {{ str_replace('_', ' ', ucfirst($item->location_type)) }} @endif {{ number_format($item->quantity) }} {{ number_format($item->issued_qty ?? 0) }} {{ number_format($item->reserved_quantity) }} {{ number_format($available) }} LKR {{ number_format($item->unit_cost, 2) }} LKR {{ number_format($item->quantity * $item->unit_cost, 2) }}
No inventory records found.
Showing {{ $inventory->firstItem() ?? 0 }} to {{ $inventory->lastItem() ?? 0 }} of {{ $inventory->total() }} entries
{{ $inventory->appends(request()->query())->links() }}
@endsection @push('css') @endpush @push('js') @endpush