@extends('layouts.app') @section('title', 'Inventario — TI Manager') @section('content')
{{-- Encabezado --}} @if($items->count() > 0) {{-- VISTA MÓVIL: Cards --}}
@foreach($items as $item)
@if($item->category)
@endif
{{ $item->name }}
{{ $item->status_label }}
@if($item->brand || $item->model)
Marca / Modelo {{ $item->brand }} {{ $item->model }}
@endif @if($item->serial_number)
Serial {{ $item->serial_number }}
@endif @if($item->branch)
Ubicación {{ $item->branch->company->name }} › {{ $item->branch->name }}
@endif @if($item->assigned_to)
Asignado a {{ $item->assigned_to }}
@endif
Ver @if(Auth::user()->isAdmin()) Editar
@csrf @method('DELETE')
@endif
@endforeach
{{-- VISTA DESKTOP: Tabla --}}
@foreach($items as $item) @endforeach
Equipo Serial Empresa › Sede Categoría Estado Asignado a Acciones
{{ $item->name }}
@if($item->brand || $item->model)
{{ $item->brand }} {{ $item->model }}
@endif
@if($item->serial_number) {{ $item->serial_number }} @else @endif @if($item->branch)
{{ $item->branch->company->name }}
{{ $item->branch->name }}
@else @endif
@if($item->category) {{ $item->category->name }} @else @endif {{ $item->status_label }} {{ $item->assigned_to ?? '—' }}
@if(Auth::user()->isAdmin())
@csrf @method('DELETE')
@endif
{{-- Paginación --}}
{{ $items->withQueryString()->links() }}
@else {{-- Estado vacío --}}

No se encontraron equipos

@if(request()->anyFilled(['company_id', 'branch_id', 'category_id', 'status', 'search'])) No hay equipos que coincidan con los filtros aplicados. @else Comienza agregando el primer equipo al inventario. @endif

@if(request()->anyFilled(['company_id', 'branch_id', 'category_id', 'status', 'search'])) Limpiar filtros @endif Nuevo Equipo
@endif
@endsection @push('scripts') @endpush