Inventario

@can('inventario.editar') @endcan
@if ($items->isEmpty())

No hay elementos de inventario con esos filtros.

@else
@foreach ($items as $item)
@if ($item->foto_path) @else @endif

{{ $item->nombre }}

{{ $item->paso->nombre ?? 'General' }} @if($item->categoria) · {{ $item->categoria }} @endif

$item->estado === 'bueno', 'bg-amber-100 text-amber-700' => in_array($item->estado, ['regular', 'restauracion']), 'bg-stone-100 text-stone-600' => $item->estado === 'baja', ])>{{ \App\Models\Inventario::ESTADOS[$item->estado] }} @if ($item->valor !== null) {{ number_format($item->valor, 2, ',', '.') }} € @endif
@can('inventario.editar') @endcan
@endforeach
{{ $items->links() }}
@endif

{{ $editando ? 'Editar elemento' : 'Nuevo elemento' }}

Guardar