@extends('layouts.superadmin') @section('title','ساعات الأعضاء — غرفة إيمان الملكاوي') @section('content') @php $viewMode = request('view','table'); // table|cards $cmpEnabled = (bool)($compare_enabled ?? false); $badge = function($hit){ if ($hit === null) return 'bg-white/5 border-white/10 text-white/70'; return $hit ? 'bg-emerald-500/15 border-emerald-400/20 text-emerald-200' : 'bg-rose-500/15 border-rose-400/20 text-rose-200'; }; $dirIcon = function($dir){ return $dir === 'asc' ? 'fa-solid fa-arrow-up-wide-short' : 'fa-solid fa-arrow-down-wide-short'; }; $fmt = function($n, $d=2){ if ($n === null) return '—'; return number_format((float)$n, $d); }; $pctClr = function($pct){ if ($pct === null) return 'text-white/60'; if ($pct >= 10) return 'text-emerald-200'; if ($pct >= 0) return 'text-cyan-200'; if ($pct <= -10) return 'text-rose-200'; return 'text-amber-200'; }; $deltaSign = function($v){ if ($v === null) return ''; return $v > 0 ? '+' : ''; }; @endphp
| العضو | لايف (س) | عدد اللايف | @if(!empty($show_sahra_col))سهرة (س) | @endifقست (س) | عدد القست | الإجمالي (س) | @if(!empty($show_share))Share إجمالي | @endif @if($cmpEnabled && !empty($show_growth))Δ إجمالي | % نمو | @endifأهداف | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@if($avatar)
{{ $name }}
{{ $r['username'] ?? '' }}
|
{{ $fmt($r['live_hours'] ?? 0) }} | {{ (int)($r['live_count'] ?? 0) }} | @if(!empty($show_sahra_col)){{ $fmt($r['sahra_hours'] ?? 0) }} | @endif{{ $fmt($r['guest_hours'] ?? 0) }} | {{ (int)($r['guest_count'] ?? 0) }} | {{ $fmt($r['total_hours'] ?? 0) }} | @if(!empty($show_share)){{ $fmt($r['share_total'] ?? 0, 1) }}% | @endif @if($cmpEnabled && !empty($show_growth)){{ ($r['delta_total']===null) ? '—' : ($deltaSign($r['delta_total']).$fmt($r['delta_total'])) }} | {{ ($r['pct_total']===null) ? '—' : ($deltaSign($r['pct_total']).$fmt($r['pct_total'],1).'%') }} | @endif
لايف
قست
إجمالي
|
|||||||||
| لا يوجد بيانات للفترة الحالية. | |||||||||||||||||||