@extends('layouts.superadmin') @section('title','ProActive Extra — الأحداث') @section('content')
@include('superadmin.proactive-extra.partials.flash') @include('superadmin.proactive-extra.partials.errors') {{-- HERO --}}
أحداث ProActive Extra

إدارة الأحداث

تنظيم زيارات/لقاءات/تعاون/دعم، وربط الحدث بحملة/مجموعة.

{{-- FILTER --}}

فلترة وبحث

فلترة حسب النوع والحالة + بحث بالعنوان/المكان.

@php $kindOptions = [ '' => 'الكل', 'live_visit' => 'زيارة لايف', 'meeting' => 'اجتماع', 'collab' => 'تعاون', 'support' => 'دعم', 'other' => 'أخرى', ]; @endphp
@php $statusOptions = [ '' => 'الكل', 'draft' => 'مسودة', 'pending' => 'بانتظار الموافقة', 'approved' => 'مُعتمد', 'rejected' => 'مرفوض', 'upcoming' => 'قادم', 'active' => 'نشط', 'done' => 'منتهي', 'cancelled' => 'ملغى', ]; @endphp
تصفير
{{-- TABLE --}}
@forelse($items as $e) @empty @endforelse
# العنوان النوع الحملة المجموعة التاريخ الحالة إجراءات
#{{ $e->id }} {{ $e->title }} @if($e->location_text)
{{ $e->location_text }}
@endif
{{ $kindOptions[$e->event_kind] ?? $e->event_kind }} {{ $e->campaign_title ?? '—' }} {{ $e->group_title ?? '—' }}
{{ $e->event_date ?? '—' }}
{{ $e->start_time ?? '—' }} - {{ $e->end_time ?? '—' }}
@include('superadmin.proactive-extra.partials.badge', ['value'=>$e->status,'kind'=>'event'])
@include('superadmin.proactive-extra.partials.empty', ['text'=>'لا يوجد أحداث حسب الفلتر.'])
{{ $items->links() }}
@endsection