@php
$properties = array_filter(Schema::getColumnListing($registration->getTable()), function($value) {
return !in_array($value, ['id', 'created_at', 'status', 'updated_at']);
});
@endphp
@foreach($properties as $property)
@if ($property !== 'extra')
{{ucfirst(str_replace('_', ' ', str_replace('_id', '', $property)))}} |
@if (str_ends_with($property, '_id'))
{{ $registration->{str_replace('_id', '', $property)}->name }}
@else
@if (in_array($property, ['newsletter', 'reception', 'sponsorship', 'portal']))
{{ $registration->{$property} ? 'Yes' : 'No' }}
@else
{{ $registration->{$property} ?? 'N/A' }}
@endif
@endif
|
@endif
@endforeach
@if ($registration->extra)
@foreach($registration->extra as $key => $value)
{{ucfirst(str_replace('_', ' ', $key))}} |
{{$value}} |
@endforeach
@endif
|
Processing Note
|
@if ($registration->promo)
@php
$promo = \App\Models\PromoCode::where('code', $registration->promo)->first();
@endphp
@if ($promo && $promo->discount === 100)
The registrant has used a FREE promo code ({{ $registration->promo}}) for this registration. Please validate their registration.
|
@else
@if ($promo)
The registrant has used a promo code ({{ $registration->promo}}) for this registration. Their transaction is still in process. Please look out for the payment notification from Stripe.
@else
The registrant has used an invalid promo code ({{ $registration->promo}}) for this registration. Their transaction is still in process. Please look out for the payment notification from Stripe.
@endif
|
@endif
@else
The registrant has just submitted their information. Their transaction is still in process. Please look out for the payment notification from Stripe.
|
@endif
|