WhatsApp Business App Integration

@if($syncStatus && $syncStatus->isFullySynced()) Fully Synced @else Syncing @endif
{{-- Tab Navigation --}}
{{-- Sync Status Tab --}} @if($activeTab === 'status')
{{-- Overall Progress --}} @if($syncStatus)

Synchronization Progress

{{-- Overall Progress Bar --}}
Overall Progress {{ $syncStatus->getSyncPercentage() }}%
{{-- Contacts Sync Status --}}
@if($syncStatus->contacts_sync_status === 'completed')
@elseif($syncStatus->contacts_sync_status === 'in_progress')
@else
@endif

Contacts Synchronization

{{ $syncStatus->total_contacts_synced }} contacts synced

{{ ucfirst(str_replace('_', ' ', $syncStatus->contacts_sync_status)) }} @if($syncStatus->contacts_sync_status === 'failed') @endif
{{-- History Sync Status --}}
@if($syncStatus->history_sync_status === 'completed')
@elseif($syncStatus->history_sync_status === 'in_progress')
@elseif($syncStatus->history_sync_status === 'declined')
@else
@endif

Message History Synchronization

{{ $syncStatus->total_messages_synced }} messages synced ({{ $syncStatus->history_sync_progress }}%)

{{ ucfirst(str_replace('_', ' ', $syncStatus->history_sync_status)) }} @if($syncStatus->history_sync_status === 'failed') @endif
@if($syncStatus->last_sync_error)

Last Error: {{ $syncStatus->last_sync_error }}

@endif
@else

No sync status available

@endif
@endif {{-- Contacts Tab --}} @if($activeTab === 'contacts')
{{-- Search --}}
{{-- Contacts List --}}
    @forelse($contacts as $contact)
  • {{ $contact->full_name ?: ($contact->first_name . ' ' . $contact->last_name) }}
    {{ $contact->contact_phone_number }}
    {{ ucfirst($contact->action) }} {{ $contact->synced_at->diffForHumans() }}
  • @empty
  • No contacts found
  • @endforelse
{{ $contacts->links() }}
@endif {{-- Messages Tab --}} @if($activeTab === 'messages')
@if($selectedThread) {{-- Back to all messages --}}
Conversation with {{ $selectedThread }}
@else {{-- Search --}}
@endif {{-- Messages List --}}
    @forelse($messages as $message)
  • @if($message->is_echo) @else @endif

    {{ $message->from_phone_number }} @if($message->to_phone_number) → {{ $message->to_phone_number }} @endif

    @if($message->is_echo) Echo @endif @if($message->is_history) History @endif {{ $message->getFormattedTimestamp() }}

    {{ $message->getContentText() }}

  • @empty
  • No messages found
  • @endforelse
@if(!$selectedThread) {{ $messages->links() }} @endif
@endif {{-- Threads Tab --}} @if($activeTab === 'threads')
    @forelse($messageThreads as $thread)
  • {{ $thread->thread_id }}
    {{ $thread->message_count }} messages
    {{ \Carbon\Carbon::parse($thread->last_message_at)->diffForHumans() }}
  • @empty
  • No conversations found
  • @endforelse
@endif