{{-- Modal Header --}}

{{ __('Connect WhatsApp Device') }}

{{ $device->name }}

{{-- Connection States --}}
{{-- 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 --}} @if($isPolling)
{{ __('Waiting for scan') }} ({{ $pollAttempts }}/{{ $maxPollAttempts }})
@endif
@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]) }}

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

{{ __('Connection Failed') }}

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

@endif