@extends('layouts.admin', ['title' => 'Dashboard - HIPL CRM']) @section('content')

Dashboard

Overview of leads from all websites
View Leads Export CSV
@if($activeTab === 'overview')
Reset
Total Leads (Filtered)
{{ $totalLeads }}
@foreach($websites as $site)
{{ $site->name }}
{{ $websiteCounts[$site->id] ?? 0 }}
View leads ->
@endforeach
Leads Trend (optional)
You can add Chart.js here later (month-wise leads graph).
Chart placeholder
@else
Website API Tokens
Copy the website key, token, or full Elementor webhook URL.
@forelse($websites as $site) @empty @endforelse
# Website Key API Token Webhook URL
{{ $loop->iteration }} {{ $site->name }}
{{ $site->key }}
{{ $site->api_token ?: 'Token not generated' }} @if($site->api_token) @endif
@if($site->api_token)
{{ $site->elementor_webhook_url }}
@else Generate token first with php artisan hipl:tokens @endif
No websites found.
@endif @endsection