@extends('layouts.atelier') @section('title', 'Inventaire ESL') @section('page-title', 'Inventaire ESL') @php $brand = $brand ?? 'hanshow'; @endphp @section('topbar-actions') @if(isset($connector) && $connector) @if($brand === 'hanshow') AP : {{ $connector->eslworking_url }} @else Serveur : {{ $connector->apiproxy_url ?? $connector->eslworking_url }} @endif @endif @endsection @section('content') {{-- Agent actif --}} @if($activeAgent)
| ID étiquette | Statut | Batterie | @if($brand === 'hanshow')Template | Succès | Échecs | Dernier contact | Temp. | @elseFirmware | Type | RSSI | Dernier contact | Dernière tâche | @endifActions | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $esl['esl_id'] }} | @if($isOnline) online @else offline @endif | @include('partials.battery-icon', ['pct' => $batPct]) | @if($brand === 'hanshow')@php $isReset = str_starts_with($esl['template'] ?? '', 'RESET_'); @endphp @if($isReset) RESET @else Autre @endif | {{ $esl['success_rate'] ?? '—' }} | {{ $esl['failed_times'] ?? 0 }} | @if($lastHbIso) {{ \Carbon\Carbon::createFromTimestampMs((int)$esl['last_hb_time'])->diffForHumans() }} @else — @endif | @if(isset($esl['temperature']) && $esl['temperature'] > 0) {{ $esl['temperature'] }}°C @else — @endif | @else{{ $esl['firmware'] ?? '—' }} | {{ $esl['screen_size'] ?? '—' }} | {{ $esl['rssi'] ?? '—' }} | @if($lastHbIso) {{ \Carbon\Carbon::parse($esl['last_contact'])->diffForHumans() }} @else — @endif | @php $taskStatus = $esl['last_task_status'] ?? ''; @endphp @if($taskStatus === 'SUCCESSFUL') {{ $esl['last_task_type'] ?? 'OK' }} @elseif($taskStatus === 'FAILED') Échec @else — @endif | @endif
@if($brand === 'hanshow')
|