@extends('layouts.admin-simple') @section('title', $item->item_description) @section('page-title', $item->item_description) @section('page-subtitle', 'Item Details') @section('breadcrumb') @endsection @section('page-actions')
@can('warehouse.items.edit') edit Edit Item @endcan
@endsection @section('content')
Item Information
Basic Information
Item Code
{{ $item->item_code }}
Item Description
{{ $item->item_description }}
Category
@if($item->category) {{ $item->category->category_name }} @else No category assigned @endif
Unit of Measure
{{ $item->unit ? $item->unit->display_name : $item->unit_of_measure }}
Status
@if($item->status === 'active') Active @elseif($item->status === 'inactive') Inactive @else {{ ucfirst($item->status) }} @endif
Created Date
{{ $item->created_at->format('M d, Y H:i') }}
Last Updated
{{ $item->updated_at->format('M d, Y H:i') }}
Stock Information
Min Stock Level
{{ $item->min_stock_level ?: 'Not set' }}
Max Stock Level
{{ $item->max_stock_level ?: 'Not set' }}
Reorder Point
{{ $item->reorder_point ?: 'Not set' }}
Current Stock
@php $totalStock = $item->inventories->sum('quantity_available'); @endphp {{ $totalStock }} {{ $item->unit ? $item->unit->unit_symbol : $item->unit_of_measure }}
Stock Locations
{{ $item->inventories->count() }} location(s)
@if($item->notes)
Notes

{{ $item->notes }}

@endif
@if($item->stockMovements->count() > 0)
Recent Stock Movements
Last 10 movements
@foreach($item->stockMovements->take(10) as $movement) @endforeach
Date Type Quantity Reference Notes
{{ $movement->created_at->format('M d, Y H:i') }} @if($movement->movement_type === 'in') Stock In @else Stock Out @endif @if($movement->movement_type === 'in') +{{ $movement->quantity }} @else -{{ $movement->quantity }} @endif {{ $item->unit ? $item->unit->unit_symbol : $item->unit_of_measure }} {{ $movement->reference_number ?? 'N/A' }} {{ $movement->notes ?? 'No notes' }}
@endif @endsection