{{-- resources/views/superadmin/iman-room/programs-jordan.blade.php --}} @extends('layouts.superadmin') @section('title','جدول برامج الأردن') @section('page-title','جدول برامج الأردن') @section('content') @php use Carbon\Carbon; $labels = [ now()->subDay()->toDateString() => 'أمس', now()->toDateString() => 'اليوم', now()->addDay()->toDateString() => 'غداً', now()->addDays(2)->toDateString()=> 'بعد غد', ]; $tzMode = $tzMode ?? request('tz','jordan'); // ✅ الافتراضي الأردن $clock = $clock ?? request('clock','12'); // ✅ الافتراضي 12 @endphp
{{-- HERO (هيبة غرفة إيمان) --}}
غرفة إيمان • جدول الأردن

جدول برامج اللايفات — الأردن

افتراضيًا: توقيت الأردن + {{ $clock === '12' ? '12 ساعة' : '24 ساعة' }} • الفترة: {{ $start->toDateString() }}{{ $end->toDateString() }}

{{ $tzMode === 'jordan' ? 'توقيت الأردن' : 'توقيت النظام' }} {{ $clock === '12' ? '12 ساعة' : '24 ساعة' }}
{{-- FILTERS --}}
{{-- DAYS / PROGRAMS --}} @forelse($streams as $date => $items) @php $dateKey = Carbon::parse($date)->toDateString(); $headerLabel = $labels[$dateKey] ?? $dateKey; @endphp
{{ $headerLabel }} ({{ $items->count() }} بث)
@foreach($items as $live) @php $u = $live->user; $name = $u->name ?: $u->username; $hours = round(($live->duration_hours ?? 0) + (($live->duration_minutes ?? 0)/60), 2); // ✅ الوقت مرتب من الكنترول (حل مشكلة 2026-01-18 20:00:00) $timeText = $live->scheduled_time_display ?? '—'; $statusLabel = match($live->status) { 'confirmed' => 'مؤكد', 'missed_excuse' => 'مع عذر', 'missed_no_excuse' => 'بدون عذر', default => $live->status, }; $statusClass = match($live->status) { 'confirmed' => 'bg-emerald-500/15 text-emerald-200 border border-emerald-400/20', 'missed_excuse' => 'bg-amber-500/15 text-amber-200 border border-amber-400/20', 'missed_no_excuse' => 'bg-rose-500/15 text-rose-200 border border-rose-400/20', default => 'bg-white/10 text-white/70 border border-white/10', }; @endphp @endforeach
العضو الوقت الفترة النوع الحالة المدة
{{ $name }}
{{ $name }} @if($live->is_sahra) 🔥 سهرة @endif
#{{ $u->id ?? '' }}
{{ $timeText }} {{ $live->slot_label ?: '—' }} @if($live->type === 'guests') قستات @elseif($live->type === 'tours') تحديات @elseif($live->type === 'both') قستات + تحديات @else {{ $live->type }} @endif {{ $statusLabel }} {{ $hours }} ساعة
@empty

لا توجد لايفات ضمن الفترة المحددة حالياً.

جرّب تغيير نطاق التواريخ.

@endforelse
@endsection