@extends('adminlte::page') @section('title', $pc->nombre_pc) @section('plugins.ChartJs', true) @section('content_header')

{{ $pc->nombre_pc }} {{ $pc->ip }}

Editar Volver
@stop @section('content')
{{-- Ficha --}}

Ficha técnica

Estado @if($pc->estado === 'online') ONLINE @else OFFLINE @endif
Hostname{{ $pc->hostname ?? '—' }}
Área{{ $pc->area ?? '—' }}
Responsable{{ $pc->responsable ?? '—' }}
SO{{ $pc->sistema_operativo ?? '—' }}
Procesador{{ $pc->procesador ?? '—' }}
RAM{{ $pc->ram ?? '—' }}
Disco{{ $pc->disco ?? '—' }}
Marca/Modelo{{ $pc->marca_modelo ?? '—' }}
Garantía @if($pc->garantia_hasta) {{ $pc->garantia_hasta->format('d/m/Y') }} @if($pc->garantia_hasta->isPast()) Vencida @elseif($pc->garantia_hasta->diffInDays(now()) < 90) Por vencer @endif @else — @endif
Ping promedio {{ $pc->tiempo_respuesta ? $pc->tiempo_respuesta . ' ms' : '—' }}
Uptime 7 días {{ $pc->uptimePorcentaje(7) }}%
Último ping {{ $pc->ultimo_ping ? \Carbon\Carbon::parse($pc->ultimo_ping)->diffForHumans() : '—' }}
@if($pc->notas)
{{ $pc->notas }}
@endif
{{-- Gráfico latencia --}}

Latencia últimas 24 horas

{{-- Últimos pings --}}

Historial de pings (últimos 50)

@foreach($logs->take(50) as $log) @endforeach
Fecha/horaEstadoPing
{{ \Carbon\Carbon::parse($log->created_at)->format('d/m H:i:s') }} @if($log->estado === 'online') ONLINE @else OFFLINE @endif {{ $log->tiempo_respuesta ? $log->tiempo_respuesta . ' ms' : '—' }}
@stop @section('js') @stop