@extends('layouts.superadmin') @section('title', 'جدول ساعات الأعضاء') @section('content')
{{-- ✅ HERO (Socratic Style) --}}
غرفة المؤشرات — جدول ساعات الأعضاء • SuperAdmin

جدول ساعات الأعضاء

يعرض ساعات اللايفات المؤكدة + ساعات القستات (Guest) مع مقارنة ونِسَب وأهداف — بدون ما نلمس خوارزمياتك، فقط عرض ملحمي واضح.

لايفات مؤكدة: {{ $liveKpis['confirmed'] ?? 0 }} غير محسوم: {{ $liveKpis['pending'] ?? 0 }} سجلات قست: {{ $guestKpis['records'] ?? 0 }}
الفترة
{{ $from }} → {{ $to }}
@if($compare_enabled)
المقارنة
{{ $compare_from }} → {{ $compare_to }}
@endif رجوع للتأكيد
{{-- ✅ FILTERS (Socratic Card) --}}
فلترة
فلاتر البحث + الأهداف
{{-- Filters --}}
@php $inp = 'w-full rounded-xl bg-black/40 border border-white/15 px-3 py-2 text-sm text-slate-50 focus:outline-none focus:ring-2 focus:ring-sky-500/35'; $lbl = 'block text-[10px] font-bold text-slate-300/80 mb-1'; @endphp
{{-- Goals --}}
الأهداف
{{-- Actions --}}
إعادة تعيين
{{-- ✅ KPIs (Socratic Cards) --}}
لايفات مؤكدة (ساعات)
{{ $totals['live_hours'] }}
عدد: {{ $liveKpis['confirmed'] ?? 0 }} • غير محسوم: {{ $liveKpis['pending'] ?? 0 }}
قستات (Guest) — ساعات
{{ $totals['guest_hours'] }}
سجلات: {{ $guestKpis['records'] ?? 0 }}
الإجمالي — ساعات
{{ $totals['total_hours'] }}
أعضاء ظاهرين: {{ $totals['members'] }}
السهرات — ساعات
{{ $totals['sahra_hours'] }}
(من ضمن اللايفات المؤكدة)
{{-- ✅ TABLE (Socratic Card) --}}

الترتيب التفصيلي

ساعات اللايف / القست / الإجمالي مع مؤشرات الهدف والتغير.

@if($show_sahra_col) @endif @forelse($rows as $i => $r) {{-- Live --}} {{-- Sahra --}} @if($show_sahra_col) @endif {{-- Guest --}} {{-- Total --}} @empty @endforelse
# العضو ساعات اللايفاتساعات السهراتساعات القستات الإجمالي
{{ $i+1 }}
@if(!empty($r['avatar'])) @else
@endif
{{ $r['name'] }} #{{ $r['id'] }}
{{ $r['username'] ? '@'.$r['username'] : '' }}
{{ number_format($r['live_hours'], 2) }} س
عدد: {{ $r['live_count'] }} @if($show_share) • {{ $r['share_live'] ?? 0 }}% @endif
@if($compare_enabled)
Δ {{ number_format($r['delta_live'] ?? 0, 2) }}س @if($show_growth && !is_null($r['pct_live'])) ({{ $r['pct_live'] }}%) @endif
@endif @if($goal_live > 0) @php $pct = min(100, ($r['live_hours'] / $goal_live) * 100); @endphp
هدف: {{ $goal_live }}س @if($r['hit_live'] === true) @elseif($r['hit_live'] === false) @endif
@endif
{{ number_format($r['sahra_hours'], 2) }} س
@if($show_share)
{{ $r['share_sahra'] ?? 0 }}%
@endif
{{ number_format($r['guest_hours'], 2) }} س
سجلات: {{ $r['guest_count'] }} @if($show_share) • {{ $r['share_guest'] ?? 0 }}% @endif
@if($compare_enabled)
Δ {{ number_format($r['delta_guest'] ?? 0, 2) }}س @if($show_growth && !is_null($r['pct_guest'])) ({{ $r['pct_guest'] }}%) @endif
@endif @if($goal_guest > 0) @php $pct = min(100, ($r['guest_hours'] / $goal_guest) * 100); @endphp
هدف: {{ $goal_guest }}س @if($r['hit_guest'] === true) @elseif($r['hit_guest'] === false) @endif
@endif
{{ number_format($r['total_hours'], 2) }} س
@if($show_share)
{{ $r['share_total'] ?? 0 }}%
@endif @if($compare_enabled)
Δ {{ number_format($r['delta_total'] ?? 0, 2) }}س @if($show_growth && !is_null($r['pct_total'])) ({{ $r['pct_total'] }}%) @endif
@endif @if($goal_total > 0) @php $pct = min(100, ($r['total_hours'] / $goal_total) * 100); @endphp
هدف: {{ $goal_total }}س @if($r['hit_total'] === true) @elseif($r['hit_total'] === false) @endif
@endif
لا يوجد بيانات ضمن الفترة المحددة والفلاتر الحالية.
@endsection