@extends('adminlte::page') @section('title', 'CRUD de PCs') @section('plugins.Datatables', true) @section('plugins.DatatablesPlugin', true) @section('content_header')

Administración de PCs

Hora actual:
@stop @section('content') @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
Revisa los datos ingresados:
@endif
Dashboard Registrar PC
@csrf
Auto ping cada 60 s
@foreach($pcs as $pc) @endforeach
Nombre PC IP Hostname Área Responsable Estado Ping Último ping Acciones
{{ $pc->nombre_pc }} {{ $pc->ip }} {{ $pc->hostname ?? '—' }} {{ $pc->area ?? '—' }} {{ $pc->responsable ?? '—' }} @if($pc->estado === 'online') ONLINE @else OFFLINE @endif @if($pc->tiempo_respuesta) {{ $pc->tiempo_respuesta }} ms @else @endif {{ $pc->ultimo_ping ? \Carbon\Carbon::parse($pc->ultimo_ping)->diffForHumans() : '—' }}
@csrf @method('DELETE')
@stop @section('js') @stop