@extends('components.app-layout') @section('title', 'Programs Management') @section('content')
Comprehensive program and registration management
Total Programs
{{ $stats['total'] ?? 0 }}
Published
{{ $stats['published'] ?? 0 }}
Registrations
{{ $stats['total_registrations'] ?? 0 }}
Pending
{{ $stats['pending_registrations'] ?? 0 }}
Comprehensive program management and analytics
| Program | Type | Date & Time | Status | Registrations | Fee | Actions |
|---|---|---|---|---|---|---|
|
@if($program->hasFlyer())
{{ $program->name }}
@if($program->venue)
{{ Str::limit($program->venue, 30) }}
@endif
|
{{ $program->formatted_type }} |
{{ $program->date_range }}
@if($program->time_range)
{{ $program->time_range }}
@endif
|
@php $statusConfig = [ 'draft' => ['bg' => 'from-gray-100 to-gray-200', 'text' => 'text-gray-800', 'icon' => 'fas fa-edit'], 'published' => ['bg' => 'from-green-100 to-emerald-200', 'text' => 'text-green-800', 'icon' => 'fas fa-check-circle'], 'ongoing' => ['bg' => 'from-blue-100 to-cyan-200', 'text' => 'text-blue-800', 'icon' => 'fas fa-play-circle'], 'completed' => ['bg' => 'from-purple-100 to-violet-200', 'text' => 'text-purple-800', 'icon' => 'fas fa-flag-checkered'], 'cancelled' => ['bg' => 'from-red-100 to-rose-200', 'text' => 'text-red-800', 'icon' => 'fas fa-times-circle'] ]; $config = $statusConfig[$program->status] ?? $statusConfig['draft']; @endphp {{ ucfirst($program->status) }} |
{{ $program->registrations->count() }}
@if($program->max_participants)
/ {{ $program->max_participants }}
@endif
@if($program->max_participants)
Approved: {{ $program->approvedRegistrations->count() }}
|
@if($program->registration_fee > 0)
₵{{ number_format($program->registration_fee, 2) }}
@else
Free
@endif
|
{{ $program->description ?: 'No description available.' }}