{{-- Time Remaining Display --}} @if($connectionState !== 'connected' && $connectionState !== 'expired')
{{ __('Link expires in') }} {{ __('minutes') }}
@endif {{-- Connection States --}}
{{-- Expired State --}} @if($connectionState === 'expired')

{{ __('Connection Link Expired') }}

{{ __('This connection link has expired. Please request a new link from the administrator.') }}

@endif {{-- Connecting State --}} @if($connectionState === 'connecting')

{{ __('Connecting...') }}

{{ __('Initializing connection to WhatsApp servers. Please wait.') }}

@endif {{-- QR Code Ready State --}} @if($connectionState === 'qr_ready' && $qrCode)

{{ __('Scan QR Code') }}

{{ __('Use your WhatsApp mobile app to scan the QR code below') }}

{{-- QR Code Display --}}
@if(str_starts_with($qrCode, 'data:image')) WhatsApp QR Code @else

{{ __('QR Code Data') }}

{{ Str::limit($qrCode, 50) }}
@endif
{{-- Instructions --}}

{{ __('How to connect') }}

  1. {{ __('Open WhatsApp on your phone') }}
  2. {{ __('Go to Settings > Linked Devices') }}
  3. {{ __('Tap Link a Device') }}
  4. {{ __('Scan the QR code above') }}
{{-- Polling Status --}}
{{ __('Waiting for connection...') }}
@endif {{-- Connected State --}} @if($connectionState === 'connected')

{{ __('Successfully Connected!') }}

{{ __('Your WhatsApp device is now connected and ready to send messages.') }}

{{ __('Device ":device" has been activated and is ready for use.', ['device' => $device->name]) }}

{{ __('This connection link has been automatically deactivated for security.') }}

@endif {{-- Error State --}} @if($connectionState === 'error')

{{ __('Connection Failed') }}

{{ $errorMessage ?? __('An error occurred while connecting to WhatsApp. Please try again.') }}

@endif