@extends('components.public-layout') @section('title', 'Registration Details - ' . $program->name) @section('content')

Registration Details

{{ $program->name }}

{{ $program->date_range }}

Registration Status

@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'approved' => 'bg-green-100 text-green-800 border-green-200', 'rejected' => 'bg-red-100 text-red-800 border-red-200', 'cancelled' => 'bg-gray-100 text-gray-800 border-gray-200' ]; $paymentColors = [ 'pending' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'paid' => 'bg-green-100 text-green-800 border-green-200', 'partial' => 'bg-blue-100 text-blue-800 border-blue-200', 'refunded' => 'bg-purple-100 text-purple-800 border-purple-200' ]; @endphp {{ ucfirst($registration->status) }} Payment: {{ ucfirst($registration->payment_status) }}

Registered On

{{ $registration->registered_at->format('M j, Y') }}

@if($program->registration_fee > 0)

Registration Fee

₵{{ number_format($program->registration_fee, 2) }}

@endif

Registration ID

#{{ $registration->id }}

Business Information

{{ $registration->business_name }}

{{ $registration->business_type === 'other' ? $registration->business_type_other : ucfirst(str_replace('_', ' ', $registration->business_type)) }}

{{ $registration->services_offered }}

{{ $registration->business_address }}

Contact Information

{{ $registration->contact_name }}

{{ $registration->business_phone }}

@if($registration->whatsapp_number)

{{ $registration->whatsapp_number }}

@endif

{{ $registration->email }}

@if($registration->member)

Church Member Information

{{ $registration->member->full_name }}

Member ID: {{ $registration->member->member_id }}

{{ $registration->member->phone }}

@endif @if($registration->special_offers || $registration->additional_info)

Additional Information

@if($registration->special_offers)

{{ $registration->special_offers }}

@endif @if($registration->additional_info)

{{ $registration->additional_info }}

@endif
@endif @if($registration->uploaded_files && count($registration->uploaded_files) > 0)

Uploaded Files

@foreach($registration->uploaded_files as $index => $file)
@php $iconClass = 'fas fa-file text-gray-400'; if (str_contains($file['mime_type'], 'image/')) { $iconClass = 'fas fa-image text-green-500'; } elseif (str_contains($file['mime_type'], 'video/')) { $iconClass = 'fas fa-video text-blue-500'; } elseif (str_contains($file['mime_type'], 'audio/')) { $iconClass = 'fas fa-music text-purple-500'; } elseif ($file['mime_type'] === 'application/pdf') { $iconClass = 'fas fa-file-pdf text-red-500'; } @endphp

{{ $file['original_name'] }}

{{ number_format($file['size'] / 1024 / 1024, 2) }} MB

@endforeach
@endif
Back to Program @if($registration->status === 'pending' || $registration->status === 'approved')
Edit Registration @if($registration->status !== 'cancelled')
@csrf
@endif
@endif
@endsection