@extends('layouts.app') @section('content')

Inventory Management

Track your equipment and supplies

Total Items

{{ $analytics['total_items'] ?? 0 }}

Inventory Value

€{{ number_format($analytics['total_value'] ?? 0, 2) }}

Low Stock Items

{{ $analytics['low_stock_count'] ?? 0 }}

Profit Margin

{{ number_format($analytics['average_profit_margin'] ?? 0, 1) }}%

@if ($items->count() > 0)
@foreach ($items as $item) @endforeach
Item Name Category Quantity Cost/Unit Price/Unit Margin Status Actions
{{ $item->name }} {{ $item->category }} {{ $item->quantity }} {{ $item->unit }} €{{ number_format($item->cost_per_unit, 2) }} €{{ number_format($item->selling_price, 2) }} @php $margin = (($item->selling_price - $item->cost_per_unit) / $item->cost_per_unit) * 100; @endphp {{ number_format($margin, 1) }}% @if ($item->isLowStock()) ⚠️ Low Stock @else ✓ In Stock @endif
@csrf @method('DELETE')
{{ $items->links() }}
@else

No Inventory Items

Start by adding your first inventory item.

@endif
@endsection