@php $currentStatus = $currentStatus ?? 'all'; $statusPill = [ 'active' => ['bg' => 'bg-wa-mint', 'text' => 'text-wa-deep', 'dot' => 'bg-wa-green', 'label' => 'Live'], 'paused' => ['bg' => 'bg-paper-50', 'text' => 'text-ink-500', 'dot' => 'bg-paper-200', 'label' => 'Paused'], ]; $accentPalette = [ ['bg' => 'bg-wa-mint', 'text' => 'text-wa-deep'], ['bg' => 'bg-[#D9E5F2]', 'text' => 'text-[#13478A]'], ['bg' => 'bg-[#F3E9FF]', 'text' => 'text-[#5B3D8A]'], ['bg' => 'bg-paper-100', 'text' => 'text-ink-700'], ]; @endphp
@if (session('success'))
{{ session('success') }}
@endif
{{ __('Workspace') }}

{{ __('WhatsApp') }} {{ __('links') }}

{{ __('Trackable deep-links to your WhatsApp number — every click tagged, counted, and timestamped.') }}

{{ $stats['active'] }} {{ __('live') }} New link
{{ __('Total links') }}
{{ $stats['all'] }}{{ $stats['active'] }} {{ __('live') }}
{{ __('Total clicks') }}
{{ number_format($stats['clicks']) }}{{ __('all-time') }}
{{ __('Avg per link') }}
{{ $stats['all'] > 0 ? number_format($stats['clicks'] / $stats['all'], 1) : '0' }}{{ __('clicks') }}
{{ __('Health') }}{{ $stats['all'] > 0 ? round(($stats['active'] / max($stats['all'], 1)) * 100) : 0 }}%
{{ $stats['all'] === 0 ? 'empty' : ($stats['active'] === $stats['all'] ? 'healthy' : 'attention') }}
{{ __('Link') }}
{{ __('Destination') }}
{{ __('Clicks') }}
{{ __('Last clicked') }}
{{ __('Updated') }}
{{ __('Actions') }}
{{ __('Showing') }} {{ $links->count() }} of {{ method_exists($links, 'total') ? number_format($links->total()) : number_format($stats['all']) }}
Workspace · {{ $stats['all'] }} links / {{ number_format($stats['clicks']) }} {{ __('clicks') }}
@if (method_exists($links, 'links')) {{ $links->links() }} @endif