@extends('layouts.dashboard')
@section('title', 'Analytics Dashboard - BlueSmokeAI')
@section('header-title', __('Analytics'))
@section('page-title', __('Performance Insights'))
@section('content')
- Total Visitors
-
{{ number_format($analyticsData['website_traffic']['total_visitors']) }}
- Page Views
-
{{ number_format($analyticsData['website_traffic']['page_views']) }}
- AI Interactions
-
{{ number_format($analyticsData['ai_agent_interactions']['total_interactions']) }}
- Satisfaction Rate
-
{{ $analyticsData['ai_agent_interactions']['satisfaction_rate'] }}%
Storage Usage
{{ number_format($analyticsData['storage_usage']['used_storage'] / 1024, 2) }} GB / {{ number_format($analyticsData['storage_usage']['total_storage'] / 1024, 2) }} GB
{{ $analyticsData['storage_usage']['percentage_used'] }}%
Bandwidth Usage
{{ number_format($analyticsData['bandwidth_usage']['used_bandwidth'] / 1024, 2) }} GB / {{ number_format($analyticsData['bandwidth_usage']['total_bandwidth'] / 1024, 2) }} GB
{{ $analyticsData['bandwidth_usage']['percentage_used'] }}%
@endsection
@section('scripts')
@endsection {
beginAtZero: true
}
}
}
});
// AI Agent Chart
const aiCtx = document.getElementById('aiAgentChart').getContext('2d');
const aiChart = new Chart(aiCtx, {
type: 'bar',
data: {
labels: ['Agent 1', 'Agent 2', 'Agent 3', 'Agent 4', 'Agent 5'],
datasets: [{
label: 'Interactions',
data: [1200, 1900, 300, 500, 2000],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)'
],
borderColor: [
'rgba(255, 99, 132, 1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true
}
}
}
});
@endsection