@extends('components.app-layout') @section('title', 'Programs Management') @section('content')

Programs Management

Comprehensive program and registration management

Total Programs

{{ $stats['total'] ?? 0 }}

Published

{{ $stats['published'] ?? 0 }}

Registrations

{{ $stats['total_registrations'] ?? 0 }}

Pending

{{ $stats['pending_registrations'] ?? 0 }}

Filter & Search Programs

Programs Overview

Comprehensive program management and analytics

{{ $programs->total() }} programs total
@if($programs->count() > 0)
@foreach($programs as $program) @endforeach
Program Type Date & Time Status Registrations Fee Actions
@if($program->hasFlyer()) {{ $program->name }} @else @php $typeColors = [ 'ergates_conference' => 'from-orange-500 to-red-500', 'annual_retreat' => 'from-green-500 to-blue-500', 'conference' => 'from-blue-500 to-purple-500', 'workshop' => 'from-yellow-500 to-orange-500', 'seminar' => 'from-purple-500 to-pink-500', 'retreat' => 'from-green-500 to-teal-500', 'other' => 'from-gray-500 to-slate-500' ]; $typeColor = $typeColors[$program->type] ?? $typeColors['other']; @endphp
@endif
{{ $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)
@endif
Approved: {{ $program->approvedRegistrations->count() }}
@if($program->registration_fee > 0)
₵{{ number_format($program->registration_fee, 2) }}
@else Free @endif
@csrf @method('DELETE')
{{ $programs->links() }}
@else

No programs found

Get started by creating your first program.

Create First Program
@endif
@endsection