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

Gestion de l'inventaire

Suivez votre équipement et vos fournitures

📥 Export

Total Items

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

Inventory Value

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

Low Stock

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

Profit Margin

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

@if ($items->count() > 0)
@foreach ($items as $item)

{{ $item->name }}

@if ($item->isLowStock()) ⚠️ Low @else ✓ OK @endif

{{ $item->category }}

{{ $item->quantity }} {{ $item->unit }}
Stock
€{{ number_format($item->selling_price, 2) }}
Prix
@php $margin = $item->cost_per_unit > 0 ? (($item->selling_price - $item->cost_per_unit) / $item->cost_per_unit) * 100 : 0; @endphp
{{ number_format($margin, 1) }}%
Marge
@csrf @method('DELETE')
@endforeach
{{ $items->links() }}
@else

No Inventory Items

Start by adding your first inventory item.

@endif
@endsection