@extends('layouts.admin') @section('content')

{{ __('Machine List') }}

{{ __('Manage your machine fleet and operational data') }}

{{ __('Machine List') }} {{ __('Expiry Management') }}
@if($tab === 'list')
@foreach ($machines as $machine) @endforeach
{{ __('Machine Information') }} {{ __('Status / Temp / Sub / Card / Scan') }} {{ __('Last Page') }} {{ __('APP Version') }} {{ __('Last Time') }} {{ __('Actions') }}
@if(isset($machine->image_urls[0])) @else @endif
{{ $machine->name }}
{{ $machine->serial_no ?: '--' }}
@if($machine->status === 'online')
{{ __('Online') }}
@elseif($machine->status === 'error')
{{ __('Error') }}
@else
{{ __('Offline') }}
@endif | {{ $machine->temperature ?? '--' }}°C |
{{ __('Normal') }}
{{ __('Normal') }}
{{ __('Normal') }}
{{ $machine->current_page_label ?: '-' }} {{ $machine->firmware_version ?: '-' }} {{ $machine->last_heartbeat_at ? $machine->last_heartbeat_at->format('Y-m-d H:i:s') : '-' }}
{{ $machines->appends(request()->query())->links('vendor.pagination.luxury') }}
@elseif($tab === 'expiry')
@foreach ($machines as $machine) @endforeach
{{ __('Machine Information') }} {{ __('Total Slots') }} {{ __('Expired') }} {{ __('Warning') }} {{ __('Pending') }} {{ __('Risk') }} {{ __('Actions') }}
@if(isset($machine->image_urls[0])) @else @endif
{{ $machine->name }}
{{ $machine->serial_no }}
{{ $machine->total_slots }}
{{ $machine->expired_count }}
{{ $machine->warning_count }}
{{ $machine->pending_count }}
@if($machine->expired_count > 0)
{{ __('Critical') }}
@elseif($machine->warning_count > 0)
{{ __('Warning') }}
@else
{{ __('Optimal') }}
@endif
{{ $machines->appends(request()->query())->links('vendor.pagination.luxury') }}
@endif @endsection