@extends('layouts.app') @section('title', 'WhatsApp Conversations') @push('styles') @endpush @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(!$tenant->wa_enabled) @endif
Total {{ number_format($stats['total'] ?? 0) }}
Active Today {{ number_format($stats['active_today'] ?? 0) }}
Orders Placed {{ number_format($stats['orders_placed'] ?? 0) }}
Abandoned Carts {{ number_format($stats['abandoned'] ?? 0) }}
@if(isset($conversations) && $conversations->count())
@foreach($conversations as $conv) @php $state = $conv->state ?? 'idle'; $stateClass = 'state-' . $state; $lastAt = $conv->last_message_at ?? $conv->updated_at; @endphp @endforeach
Phone Customer State Last Message Last Order Actions
{{ $conv->phone ?? '—' }} {{ $conv->customer?->name ?? '—' }} {{ str_replace('_', ' ', $state) }} {{ $lastAt ? \Carbon\Carbon::parse($lastAt)->diffForHumans() : '—' }} @if($conv->last_order_id && $conv->lastOrder) #{{ $conv->lastOrder->id }} @else — @endif View
{{ $conversations->withQueryString()->links() }}
@else

No conversations yet

When customers message your WhatsApp business number, their conversations will appear here.

@if(!$tenant->wa_enabled) Configure WhatsApp @endif
@endif @endsection