@extends('layouts.superadmin') @section('title','ساعات الأعضاء — غرفة إيمان الملكاوي') @section('content') @php $cmpEnabled = (bool)($compare_enabled ?? false); $showGrowth = (bool)($show_growth ?? false); $showShare = (bool)($show_share ?? true); $showSahra = (bool)($show_sahra_col ?? false); $dirNow = strtolower((string)($dir ?? 'desc')) === 'asc' ? 'asc' : 'desc'; $toggleDir = $dirNow === 'asc' ? 'desc' : 'asc'; $sortNow = (string)($sort ?? 'total'); $rows = collect($rows ?? []); $totals = $totals ?? ['members'=>0,'live_hours'=>0,'guest_hours'=>0,'total_hours'=>0,'sahra_hours'=>0,'lives_count'=>0,'guest_count'=>0]; $teamGoals = $teamGoals ?? [ 'team_goal_live'=>0,'team_goal_guest'=>0,'team_goal_total'=>0, 'hit_live'=>null,'hit_guest'=>null,'hit_total'=>null, ]; $liveKpis = $liveKpis ?? ['total'=>0,'confirmed'=>0,'pending'=>0]; $guestKpis = $guestKpis ?? ['records'=>0,'hours'=>0]; $qBase = request()->except(['sort','dir']); $sortUrl = function($key) use ($qBase, $toggleDir) { return request()->fullUrlWithQuery(array_merge($qBase, ['sort'=>$key,'dir'=>$toggleDir])); }; $badgeHit = fn($hit) => $hit === null ? 'bg-white/5 border-white/10 text-white/70' : ($hit ? 'bg-emerald-500/15 border-emerald-400/25 text-emerald-200' : 'bg-rose-500/15 border-rose-400/25 text-rose-200'); $toneNum = fn($v) => $v >= 0 ? 'text-emerald-200' : 'text-rose-200'; @endphp
| العضو | لايف (س) | قست (س) | @if($showSahra)سهرة (س) | @endifمجموع (س) | عدّاد | @if($showShare)حصة مجموع | @endif @if($cmpEnabled && $showGrowth)Δ مجموع | % مجموع | @endifالأهداف | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
@if($avatar)
{{ $name }}
{{ $r['username'] ?? '' }}
|
{{ number_format((float)($r['live_hours'] ?? 0), 2) }} | {{ number_format((float)($r['guest_hours'] ?? 0), 2) }} | @if($showSahra){{ number_format((float)($r['sahra_hours'] ?? 0), 2) }} | @endif{{ number_format((float)($r['total_hours'] ?? 0), 2) }} | لايف: {{ (int)($r['live_count'] ?? 0) }} • قست: {{ (int)($r['guest_count'] ?? 0) }} | @if($showShare){{ $shareTotal !== null ? number_format((float)$shareTotal, 1).'%' : '—' }} | @endif @if($cmpEnabled && $showGrowth){{ $deltaTotal !== null ? ( ($deltaTotal>=0?'+':'').number_format((float)$deltaTotal,2) ) : '—' }} | {{ $pctTotal !== null ? ( ($pctTotal>=0?'+':'').number_format((float)$pctTotal,1).'%' ) : '—' }} | @endif
لايف
قست
مجموع
|
||
| لا يوجد بيانات ضمن الفلاتر الحالية. | |||||||||||