@extends('layouts.app') @section('title', 'Admin Dashboard | SEF Solution') @section('content')
SEF Solution

Admin Dashboard

Website chat monitoring, active session insight, lead form tracking

Total Chats{{ $stats['total_sessions'] }}
Returning Users{{ $stats['returning_sessions'] }}
Lead Forms{{ $stats['lead_forms'] }}
Total Active Minutes{{ $stats['chat_minutes'] }}
Active Prompts{{ $stats['active_prompts'] }}

Recent Chats

View all
@forelse($recentChats as $chat) @empty @endforelse
PhoneMessagesActiveDate
{{ $chat->phone ?: 'N/A' }} {{ $chat->messages_count }} {{ $chat->active_seconds >= 60 ? ceil($chat->active_seconds / 60).'m' : $chat->active_seconds.'s' }} {{ $chat->last_activity_at?->format('d M Y h:i A') }} Open
No chats yet.

Recent Form Submissions

View all
@forelse($recentForms as $form) @empty @endforelse
NamePhoneBusinessDate
{{ $form->name ?: 'N/A' }} {{ $form->phone ?: ($form->session->phone ?? 'N/A') }} {{ $form->business_name ?: ($form->business_type ?: 'N/A') }} {{ $form->created_at?->format('d M Y h:i A') }}
No forms yet.
@endsection