@extends('layouts.app') @section('title', 'Items') @section('breadcrumb') @endsection @section('content') {{-- Stats --}}
@foreach([ ['Total','total','box-seam','#EBF3FB','#1B4F8A'], ['Active','active','check-circle','#d1e7dd','#0a3622'], ['Inventory','inventory','boxes','#fff3cd','#664d03'], ['Services','service','gear','#cfe2ff','#084298'], ] as [$label,$key,$icon,$bg,$color])
{{ $label }}
{{ $stats[$key] }}
@endforeach
{{-- Search & Filters --}}
{{-- Items Table --}}
@forelse($items as $item) @empty @endforelse
Item Category Type UOM Tracking Status Actions
{{ $item->name }}
{{ $item->code }} @if($item->barcode) {{ $item->barcode }} @endif {{-- Show type on mobile --}}
@php $tc=['inventory'=>'#fff3cd|#664d03','service'=>'#cfe2ff|#084298','non_inventory'=>'#e9ecef|#495057']; [$tb,$tf]=explode('|',$tc[$item->type]??'#e9ecef|#495057'); @endphp {{ ucfirst(str_replace('_',' ',$item->type)) }}
{{ $item->category?->name ?? '—' }} @php $tc=['inventory'=>'#fff3cd|#664d03','service'=>'#cfe2ff|#084298','non_inventory'=>'#e9ecef|#495057']; [$tb,$tf]=explode('|',$tc[$item->type]??'#e9ecef|#495057'); @endphp {{ ucfirst(str_replace('_',' ',$item->type)) }} {{ $item->uom?->code ?? '—' }} @if($item->tracking_type !== 'none') {{ ucfirst($item->tracking_type) }} @else @endif {{ $item->is_active ? 'Active' : 'Inactive' }}
@if(auth()->user()->hasPermission('inventory','edit'))
@csrf @method('PATCH')
@endif @if(auth()->user()->hasPermission('inventory','delete'))
@csrf @method('DELETE')
@endif

No items found.

Add First Item
@if($items->hasPages())
{{ $items->links() }}
@endif
@endsection