آخرین بروزرسانی: {{ $lastUpdate }}
کل پرسنل
{{ $stats['total_personnel'] ?? 0 }}
حاضر
{{ $stats['present'] ?? 0 }}
غایب
{{ $stats['absent'] ?? 0 }}
تأخیر
{{ $stats['late'] ?? 0 }}
مرخصی
{{ $stats['leave'] ?? 0 }}
خروج زودهنگام
{{ $stats['early_leave'] ?? 0 }}
ورود/خروج ناقص
{{ $stats['incomplete'] ?? 0 }}
مأموریت
{{ $stats['mission'] ?? 0 }}
مرخصی استعلاجی
{{ $stats['sick_leave'] ?? 0 }}
@if($activeTab === 'overview')

لیست حاضرین امروز ({{ count($presentList) }} نفر)

@forelse($presentList as $person) @empty @endforelse
کد نام شیفت ورود خروج وضعیت تأخیر کار (دقیقه)
{{ $person['personnel_code'] }} {{ $person['full_name'] }} {{ $person['shift_name'] }} {{ $person['actual_start'] }} {{ $person['actual_end'] }} {{ $person['status_text'] }} @if($person['late_minutes'] > 0) {{ $person['late_minutes'] }} دقیقه @else - @endif {{ $person['work_minutes'] }}
هنوز رکوردی ثبت نشده.
@endif @if($activeTab === 'absent')

لیست غایبین امروز ({{ count($absentList) }} نفر)

@forelse($absentList as $person) @empty @endforelse
کد نام شیفت واحد سازمانی
{{ $person['personnel_code'] }} {{ $person['full_name'] }} {{ $person['shift_name'] }} {{ $person['department'] }}
هیچ غایبی ثبت نشده.
@endif @if($activeTab === 'punches')

آخرین ترددات

@forelse($recentPunches as $punch) @empty @endforelse
کد پرسنلی زمان نوع دستگاه زمان سپری شده
{{ $punch['personnel_code'] }} {{ $punch['punch_time'] instanceof \Carbon\Carbon ? $punch['punch_time']->format('H:i:s') : $punch['punch_time'] }} {{ $punch['punch_type_text'] }} {{ $punch['device_name'] }} {{ $punch['time_ago'] }}
هنوز ترددی ثبت نشده.
@endif @if($activeTab === 'devices')
@forelse($deviceStatus as $device)

{{ $device['name'] }}

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

{{ $device['is_online'] ? 'آنلاین' : 'آفلاین' }}
موقعیت: {{ $device['location'] }}
آخرین سنکرون: {{ $device['last_sync_text'] }}
ترددات امروز: {{ $device['total_today'] }}
@empty
هیچ دستگاهی ثبت نشده.
@endforelse
@endif @if($activeTab === 'alerts') {{-- Current verdict, computed the moment the tab is opened --}} @if($healthReport) @php($currentStatus = $healthReport['status'] ?? 'healthy')
{{ $this->statusLabel($currentStatus) }} وضعیت کنونی سامانه
بررسی در {{ $lastUpdate }} — {{ $healthReport['timestamp'] ?? '' }}
سرویس همگام‌سازی
{{ ($healthReport['service']['service_running'] ?? false) ? 'در حال اجرا' : 'متوقف' }}
آخرین گزارش زنده
{{ $healthReport['service']['minutes_since_last_heartbeat'] ?? '-' }} دقیقه پیش
کل دستگاه‌ها
{{ $healthReport['devices']['total'] ?? 0 }}
سالم
{{ $healthReport['devices']['healthy'] ?? 0 }}
آفلاین
{{ $healthReport['devices']['offline'] ?? 0 }}
بدونِ تردد (سکوت): {{ $healthReport['devices']['silently_idle'] ?? 0 }} قرائتِ کهنه: {{ $healthReport['devices']['read_stale'] ?? 0 }} ارسالِ قدیمی: {{ $healthReport['devices']['stale'] ?? 0 }}

هشدارهای فعال ({{ count($healthReport['alerts'] ?? []) }})

@forelse($healthReport['alerts'] ?? [] as $alert)
{{ strtoupper($alert['severity'] ?? '') }} {{ $alert['message'] ?? '' }}
@empty

هشداری ثبت نشده است.

@endforelse
@endif {{-- The log itself: one row per report the notifier decided a person should see --}}

تاریخچهٔ گزارش‌ها ({{ count($alertHistory) }} موردِ اخیر)

@forelse($alertHistory as $row) @empty @endforelse
زمان وضعیت ثبت هشدارها خلاصه و جزئیات
{{ $row['at'] }} {{ $this->statusLabel($row['status']) }} {{ $row['result'] }} {{ $row['alerts_count'] }}
{{ $row['summary'] }}
@foreach($row['alerts'] as $alert)
{{ strtoupper($alert['severity'] ?? '') }} {{ $alert['message'] ?? '' }}
@endforeach @if($row['error'])
خطا: {{ $row['error'] }}
@endif
هنوز گزارشی ثبت نشده است.
@endif