@extends('layouts.main') @section('main')

Historial del Equipo

Ver Detalles Volver

{{ $equipo->EQU_NOMBRE }}

Serial: {{ $equipo->EQU_SERIAL ?? 'N/A' }}

Marca: {{ $equipo->EQU_MARCA ?? 'N/A' }}

Modelo: {{ $equipo->EQU_MODELO ?? 'N/A' }}

Tipo: {{ $equipo->EQU_TIPO ?? 'N/A' }}

Precio: ${{ number_format($equipo->EQU_PRECIO ?? 0, 2) }}

Estado Actual: @if($equipo->asignacionActiva) Asignado a {{ $equipo->asignacionActiva->empleado->EMP_NOMBRES ?? 'N/A' }} @else Disponible @endif

{{ $asignaciones->count() }}

Asignaciones

{{ $mantenimientos->count() }}

Mantenimientos

{{ $evidencias->count() }}

Evidencias

Timeline de Actividad

Historial completo de operaciones realizadas con este equipo

@if($timeline->isEmpty())
No hay registros en el historial de este equipo.
@else
@foreach($timeline as $index => $evento)
{{ $evento['titulo'] }}

{{ $evento['fecha']->format('d/m/Y H:i') }}

{{ $evento['descripcion'] }}

@if($evento['estado']) {{ $evento['estado'] }} @endif @if($evento['tipo'] === 'devolucion' && isset($evento['data']))
@if($evento['data']->DEV_HARDWARE_COMPLETO) Hardware Completo @else Hardware Incompleto @endif @if($evento['data']->DEV_SOFTWARE_COMPLETO) Software Completo @else Software Incompleto @endif @if($evento['data']->DEV_FALTANTES)

Faltantes: {{ $evento['data']->DEV_FALTANTES }}

@endif
@endif @if($evento['tipo'] === 'mantenimiento' && isset($evento['data']))
@if($evento['data']->MAN_PROVEEDOR)

Proveedor: {{ $evento['data']->MAN_PROVEEDOR }}

@endif @if($evento['data']->MAN_COSTO)

Costo: ${{ number_format($evento['data']->MAN_COSTO, 2) }}

@endif @if($evento['data']->MAN_FECHA_REALIZACION)

Realizado: {{ $evento['data']->MAN_FECHA_REALIZACION->format('d/m/Y') }}

@endif
@endif
@endforeach
@endif
@endsection