@extends('components.app-layout') @section('title', 'Registration Details - ' . $registration->business_name) @section('content')

Registration Details

{{ $program->name }} - {{ $registration->business_name }}

@php $statusIcons = [ 'pending' => 'fas fa-clock text-yellow-600', 'approved' => 'fas fa-check-circle text-green-600', 'rejected' => 'fas fa-times-circle text-red-600', 'cancelled' => 'fas fa-ban text-gray-600' ]; @endphp

Status

{{ ucfirst($registration->status) }}

@php $paymentIcons = [ 'pending' => 'fas fa-clock text-yellow-600', 'paid' => 'fas fa-check-circle text-green-600', 'partial' => 'fas fa-exclamation-circle text-blue-600', 'refunded' => 'fas fa-undo text-purple-600' ]; @endphp

Payment

{{ ucfirst($registration->payment_status) }}

Registered

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

Files

{{ $registration->getUploadedFilesCount() }}

Business Information

{{ $registration->business_name }}

{{ $registration->getBusinessTypeLabel() }}

{{ $registration->services_offered }}

{{ $registration->business_address }}

Contact Information

{{ $registration->contact_name }}

@if($registration->whatsapp_number) @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
@if($registration->member)

Church Member

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

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

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

@endif

Status Management

@csrf @method('PATCH')
@if($program->registration_fee > 0)

Payment Information

Registration Fee: ₵{{ number_format($program->registration_fee, 2) }}
@if($registration->amount_paid)
Amount Paid: ₵{{ number_format($registration->amount_paid, 2) }}
@endif @if($registration->payment_reference)
Payment Reference:

{{ $registration->payment_reference }}

@endif

Payment Status:

{{ ucfirst($registration->payment_status) }}
@endif

Quick Actions

Send Email @if($registration->whatsapp_number) WhatsApp @endif Call
@endsection