@if ($availability['available'])
@if ($currentStep === 'initial')
{{ t('sign_in_with_facebook') }}
{{ t('emb_signup_info') }}
{{-- Processing State --}}
@elseif ($currentStep === 'launching')
{{ t('opening_facebook_window') }}
{{-- Processing Signup --}}
@elseif ($currentStep === 'processing')
{{ t('setting_up_whatsapp') }}
{{ t('authenticating_with_facebook') }}
{{ t('configuring_whatsapp_business') }}
{{ t('setting_up_webhooks') }}
{{-- Success State --}}
@elseif ($currentStep === 'success')
{{ t('whatsapp_connected_successfully') }}
{{-- Error State --}}
@elseif ($currentStep === 'error')
@if ($errorSeverity === 'critical')
{{ t('critical_error_occurred') }}
@else
{{ t('connection_failed') }}
@endif
@if ($errorCode)
Error: {{ $errorCode }}
@if ($errorType)
Type: {{ ucfirst($errorType) }}
@endif
@endif
{{ t('what_went_wrong') }}
{{ $errorMessage }}
@if (!empty($suggestedActions))
{{ t('suggested_actions') }}
@foreach ($suggestedActions as $action)
-
{{ $action }}
@endforeach
@endif
@if ($this->canRetry())
@endif
@if ($this->shouldShowContactAdmin())
{{ t('contact_administrator') }}
@endif
@endif
@else
{{ t('service_unavailable') }}
{{ t('embedded_signup_not_configured') }}
{{ t('contact_administrator_to_configure') }}
@endif