{{-- resources/views/superadmin/iman-room/proactive.blade.php --}} @extends('layouts.superadmin') @section('title', 'ProActive — المواعيد والتقارير') @section('page-title', 'ProActive — المواعيد والتقارير') @section('content') @php use Illuminate\Support\Facades\Route; $section = $section ?? 'proactive'; $tab = $tab ?? request('tab', 'reports'); // reports | schedules if (!in_array($tab, ['reports','schedules'], true)) $tab = 'reports'; $view = request('view', 'table'); // table | cards if (!in_array($view, ['table','cards'], true)) $view = 'table'; // from controller: // - reports tab: rows=reports (pagination), stats=reports stats // - schedules tab: rows=schedules (pagination), stats=schedules stats $rows = $rows ?? null; $stats = $stats ?? []; $platforms = $platforms ?? [ '' => 'كل المنصّات', 'tiktok' => 'تيك توك', 'instagram' => 'إنستغرام', 'youtube' => 'يوتيوب', 'other' => 'أخرى', ]; $q = $q ?? request('q',''); $type = $type ?? request('type',''); $plat = $plat ?? request('platform',''); $from = $from ?? request('from',''); $to = $to ?? request('to',''); $status = $status ?? request('status',''); $ui = $ui ?? [ 'tz_mode' => request('tz','local'), // local | jordan 'clock' => request('clock','24'), // 24 | 12 ]; $tzOptions = $tzOptions ?? [ 'local' => 'توقيت النظام', 'jordan' => 'توقيت الأردن', ]; $clockOptions = $clockOptions ?? [ '24' => '24 ساعة', '12' => '12 ساعة', ]; // Safe URLs (no hard dependency on routes) $baseUrl = url()->current(); // Optional: if you have separate proactive routes, we use them safely $reportsCreateUrl = (Route::has('superadmin.proactive.reports.create')) ? route('superadmin.proactive.reports.create') : null; $schedulesCreateUrl = (Route::has('superadmin.proactive.schedules.create')) ? route('superadmin.proactive.schedules.create') : null; @endphp
| التاريخ/الوقت | المضيف | صاحب اللايف | المنصّة | التقدير | مسجّل التقرير | إجراءات | @elseالتاريخ/الوقت | العنوان | القائد | المنصّة | الحالة | مسجّل الموعد | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $dtDisp }}
سجّل: {{ $r->created_at_display ?? ($r->created_at ?? '—') }}
|
{{ $r->live_host ?? '—' }} | {{ $r->live_owner_name ?? '—' }} | {{ $platText }} | {{ $gradeText }} @if((int)($r->had_issues ?? 0)===1) مشاكل @endif @if((int)($r->had_progress ?? 0)===1) تقدّم @endif | {{ $creator }} | |||||||
| {{ $dtDisp }} | {{ $r->event_title ?? '—' }} | {{ $r->leader_name ?? '—' }} | {{ $platText }} | {{ match($r->status ?? '') { 'upcoming' => 'قادم', 'active' => 'نشط', 'finished' => 'منتهي', 'cancelled' => 'ملغي', default => ($r->status ?? '—'), } }} | {{ $creator }} |