{{-- Header --}}
آخرین بروزرسانی: {{ $lastUpdate }}
{{-- Sync Message --}} @if($syncMessage)
{{ $syncMessage }}
@endif {{-- Stats Summary --}}
دستگاه‌های آنلاین
{{ collect($deviceStatuses)->where('is_online', true)->count() }}
دستگاه‌های آفلاین
{{ collect($deviceStatuses)->where('is_online', false)->count() }}
کل دستگاه‌ها
{{ count($deviceStatuses) }}
{{-- Device Cards Grid --}}
@forelse($deviceStatuses as $device)
{{-- Device Header --}}

{{ $device['name'] }}

{{ $device['ip'] }}:{{ $device['port'] }}

{{ $device['is_online'] ? 'آنلاین' : ($device['connection_status'] === 'error' ? 'خطا' : 'آفلاین') }}
{{-- Device Info --}}
@if($device['location'])
موقعیت: {{ $device['location'] }}
@endif
آخرین اتصال: {{ $device['last_seen_at'] }}
آخرین سنکرون: {{ $device['last_sync_at'] }}
@if($device['unprocessed_count'] > 0)
ترددات ثبت‌نشده: {{ $device['unprocessed_count'] }}
@endif @if($device['firmware_version'])
firmware: {{ $device['firmware_version'] }}
@endif
{{-- Actions --}}
@empty
هیچ دستگاهی ثبت نشده است.
@endforelse
{{-- Sync Logs Modal --}} @if($showSyncLogs)

تاریخچه همگام‌سازی

@forelse($syncLogs as $log) @empty @endforelse
نوع وضعیت دریافتی ذخیره شده رد شده زمان
{{ match($log['sync_type']) { 'realtime' => 'لحظه‌ای', 'batch' => 'دسته‌ای', 'manual' => 'دستی', default => $log['sync_type'] } }} {{ match($log['status']) { 'success' => 'موفق', 'failed' => 'ناموفق', 'running' => 'در حال اجرا', default => $log['status'] } }} {{ $log['logs_received'] }} {{ $log['logs_imported'] }} {{ $log['logs_skipped'] }} {{ \Carbon\Carbon::parse($log['created_at'])->format('Y/m/d H:i') }}
تاریخچه‌ای موجود نیست.
@endif