@if(request('category')) @switch(request('category')) @case('computer') Computer Items @break @case('laptop') Laptop Items @break @case('antivirus') Antivirus Items @break @default All Items @endswitch @else All Items @endif

{{ $items->total() }} items found

@can('create items') Add New Item @endcan
@if(session('success')) @endif @if(session('error')) @endif
@forelse($items as $item) @empty @endforelse
Item Category Stock Expiry Date Location Serial Number Location Status
{{ $item->name }}

{{ $item->description ?: 'No description' }}

@switch($item->category) @case('computer')
Computer @break @case('laptop')
Laptop @break @case('antivirus')
Antivirus @break @default
Unknown @endswitch
{{ $item->stock }}
@if($item->expired_at) {{ $item->expired_at->format('d/m/Y') }} @else No expiry @endif
{{ $item->distribution ?: 'Not specified' }}
{{ $item->serial_number ?: 'No serial' }}
{{ ucfirst($item->status) }}
@can('edit items') @endcan @can('delete items')
@csrf @method('DELETE')
@endcan
No items found

Try adjusting your search criteria or add a new item to get started.

@can('create items') Add Your First Item @endcan
@if($items->hasPages()) @endif