@extends('components.app-layout') @section('content')

{{ $program->name }}

Program Details

@if($program->status === 'draft')

Draft Program

This program is in draft mode and not visible to the public. Publish it to allow registrations.

@elseif($program->status === 'cancelled')

Cancelled Program

This program has been cancelled.

@endif
{{ $stats['total'] ?? 0 }}
Total Registrations
{{ $stats['approved'] ?? 0 }}
Approved
{{ $stats['pending'] ?? 0 }}
Pending
₵{{ number_format($stats['total_revenue'] ?? 0, 2) }}
Total Revenue

Program Information

{{ $program->name }}

{{ ucfirst($program->type) }}
@php $statusColors = [ 'draft' => 'bg-gray-100 text-gray-800', 'published' => 'bg-green-100 text-green-800', 'ongoing' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-purple-100 text-purple-800', 'cancelled' => 'bg-red-100 text-red-800' ]; @endphp {{ ucfirst($program->status) }}

@if($program->registration_fee > 0) ₵{{ number_format($program->registration_fee, 2) }} @else Free @endif

{{ $program->start_date->format('M d, Y') }}

{{ $program->end_date->format('M d, Y') }}

@if($program->start_time)

{{ $program->start_time->format('g:i A') }}

@endif @if($program->end_time)

{{ $program->end_time->format('g:i A') }}

@endif @if($program->venue)

{{ $program->venue }}

@endif @if($program->max_participants)

{{ number_format($program->max_participants) }}

@endif @if($program->registration_deadline)

{{ $program->registration_deadline->format('M d, Y g:i A') }}

@endif @if($program->contact_email) @endif @if($program->contact_phone) @endif
@if($program->description)
{{ $program->description }}
@endif @if($program->terms_and_conditions)
{{ $program->terms_and_conditions }}
@endif
@if($program->allow_file_uploads)

File Upload Settings

{{ $program->max_file_size ?? 100 }} MB

{{ $program->max_files ?? 5 }} files

@if($program->allowed_file_types) {{ implode(', ', $program->allowed_file_types) }} @else PDF, Images, Audio, Video @endif

@endif
@if(isset($businessTypeDistribution) && count($businessTypeDistribution) > 0)

Business Types

@foreach($businessTypeDistribution as $type => $count)
{{ $type }} {{ $count }}
@endforeach
@endif @if(isset($recentRegistrations) && $recentRegistrations->count() > 0)

Recent Registrations

@foreach($recentRegistrations as $registration)

{{ $registration->business_name }}

{{ $registration->contact_name }}

{{ $registration->created_at->diffForHumans() }}

@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', 'cancelled' => 'bg-gray-100 text-gray-800' ]; @endphp {{ ucfirst($registration->status) }}
@endforeach
@endif

Quick Actions

@if($program->status === 'draft')
@csrf @method('PUT')
@endif View Public Page Export Registrations
@csrf @method('DELETE')
@endsection