@extends('layouts.admin') @section('title', 'إدارة التذاكر') @section('content')

إدارة التذاكر

عرض وإدارة جميع تذاكر الحفل

تصدير Excel
{{ $stats['total'] ?? 0 }}
إجمالي التذاكر
{{ $stats['checked_in'] ?? 0 }}
حضر
{{ $stats['pending'] ?? 0 }}
في الانتظار
{{ $stats['vip'] ?? 0 }}
VIP
{{ ($stats['total'] ?? 0) > 0 ? round((($stats['checked_in'] ?? 0) / $stats['total']) * 100) : 0 }}%
نسبة الحضور
@if(request()->hasAny(['search', 'type', 'status'])) إعادة @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@forelse($tickets as $ticket) @empty @endforelse
رقم التذكرة الاسم الجوال النوع المقعد الحالة الإجراءات
{{ $ticket->ticket_number }} {{ $ticket->name }} {{ $ticket->phone }} @php $typeColors = [ 'vip' => 'bg-amber-500/20 text-amber-400 border-amber-500/30', 'excellent' => 'bg-purple-500/20 text-purple-400 border-purple-500/30', 'march' => 'bg-blue-500/20 text-blue-400 border-blue-500/30', 'regular' => 'bg-emerald-500/20 text-emerald-400 border-emerald-500/30', 'companion' => 'bg-gray-500/20 text-gray-400 border-gray-500/30', ]; $typeLabels = [ 'vip' => 'VIP', 'excellent' => 'متفوقين', 'march' => 'مسيرة', 'regular' => 'عادي', 'companion' => 'مرافقين', ]; @endphp {{ $typeLabels[$ticket->type] ?? $ticket->type }} {{ $ticket->seat?->label ?? '-' }} @if($ticket->is_checked_in) حضر @else انتظار @endif
@if(!$ticket->is_checked_in)
@csrf
@endif
لا توجد تذاكر مطابقة للبحث
@if($tickets->hasPages())
{{ $tickets->withQueryString()->links() }}
@endif
@endsection