@extends('layouts.app') @section('content')
@if(session('error'))

{{ session('error') }}

@endif @if(session('success'))

{{ session('success') }}

@endif

Inventory Items

Manage and track your inventory items

Reset
@if(request('search') || request('category_id'))

Found {{ $items->total() }} item(s) @if(request('search')) matching "{{ request('search') }}" @endif

@endif
@if($items->count() > 0)
@foreach($items as $item)
@if($item->category) {{ $item->category->name }} @else Uncategorized @endif
{{ $item->stock_quantity <= 5 ? 'Low' : ($item->stock_quantity <= 10 ? 'Med' : 'Good') }}

{{ $item->sku }}

{{ $item->name }}

{{ $item->stock_quantity <= 5 ? '⚠ Low Stock' : ($item->stock_quantity <= 10 ? '⚡ Medium' : '✓ Good') }} {{ $item->stock_quantity }}

{{ $item->unit }} available

@php $gradientClass = $item->stock_quantity <= 5 ? 'from-red-400 to-red-500' : ($item->stock_quantity <= 10 ? 'from-yellow-400 to-yellow-500' : 'from-emerald-400 to-emerald-500'); @endphp

Cost Price

₹{{ number_format($item->cost_price, 2) }}

Selling Price

₹{{ number_format($item->selling_price, 2) }}

@if($item->description)

{{ $item->description }}

@endif
@csrf @method('DELETE')
@endforeach
{{ $items->links() }}
@else

No Items Found

Get started by creating your first inventory item to organize your items.

Create First Item @if(request('search') || request('category_id')) Clear Filters @endif
@endif
@endsection