@extends('layouts.app') @section('title', 'Inventory Items') @section('content')
@forelse($items as $item) @empty @endforelse
Code Name Category UOM Min Stock Cost Price Status Actions
{{ $item->item_code }} {{ $item->item_name }} @php $catBadgeClass = match($item->category) { 'raw_material' => 'badge-blue', 'wip' => 'badge-yellow', 'finished_good' => 'badge-green', default => 'badge-gray', }; $catLabels = ['raw_material' => 'Raw Material', 'wip' => 'WIP', 'finished_good' => 'Finished Good']; @endphp {{ $catLabels[$item->category] ?? ucfirst($item->category) }} {{ $item->unit_of_measure }} {{ number_format($item->minimum_stock_level, 2) }} {{ number_format($item->cost_price, 2) }} @if($item->is_active) Active @else Inactive @endif
Edit
@csrf @method('DELETE')
No items found.
@if($items->hasPages())
{{ $items->links() }}
@endif {{-- ═══════════ Import Modal ═══════════ --}} @endsection