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

{{ __('Connectivity Status') }}

{{ __('Real-time status monitoring') }}

{{ __('LIVE') }}
{{ __('Online Machines') }}
{{ $activeMachines }}
{{ __('Offline Machines') }}
{{ $offlineMachines }}
{{ __('Alerts Pending') }}
{{ $alertsPending }}

{{ $activeMachines }}

{{ __('Total Connected') }}

{{ __('Monthly Transactions') }}

{{ __('Monthly Cumulative Revenue') }}: ${{ number_format($monthlyRevenue, 0) }}

{{ __("Today Cumulative Sales") }}

${{ number_format($todayRevenue, 0) }}

{{ $yesterdayTrend >= 0 ? '+' : '' }}{{ number_format($yesterdayTrend, 1) }}%

{{ __('vs Yesterday') }}

{{ __("Yesterday") }}

${{ number_format($yesterdayRevenue, 0) }}

{{ __("Day Before") }}

${{ number_format($dayBeforeRevenue, 0) }}

{{ __('Machine Status List') }}

{{ __('Total items', ['count' => $machines->total()]) }}

{{ __('Real-time monitoring across all machines') }}

@forelse($machines as $machine)
@if(isset($machine->image_urls[0])) @else @endif

{{ $machine->name }} @if($machine->has_login_warning) {{ __('Login Alert') }} @endif

SN: {{ $machine->serial_no ?: '--' }}

@php $cStatus = $machine->calculated_status; @endphp
@if($cStatus === 'online') @if($machine->is_unstable)
@endif
@elseif($cStatus === 'error')
@else
@endif
@empty
{{ __('No data available') }}
@endforelse
{{ $machines->appends(request()->query())->links('vendor.pagination.luxury') }}
@endsection