@extends('dashboard') @section('page-title', $agent->name . ' - Analytics') @section('content')

Usage Over Time

Response Time

Token Usage

Top Queries

@foreach($stats['top_queries'] ?? [] as $query) @endforeach
Query Count Avg. Response Time
{{ $query['text'] }} {{ $query['count'] }} {{ $query['avg_response_time'] }}ms

Performance Metrics

Cost Analysis

Total Cost
${{ number_format($stats['cost_estimate'] ?? 0, 2) }}
Cost per Request
${{ number_format($stats['requests']['total'] > 0 ? ($stats['cost_estimate'] ?? 0) / $stats['requests']['total'] : 0, 4) }}
Cost per 1K Tokens
${{ number_format($stats['cost_per_1k_tokens'] ?? 0, 4) }}

Performance Recommendations

@if(isset($stats['recommendations']) && count($stats['recommendations']) > 0) @foreach($stats['recommendations'] as $recommendation)

{{ $recommendation }}

@endforeach @else

No recommendations at this time. Your agent is performing optimally.

@endif

Conversation Quality Metrics

Avg. Conversation Length
{{ number_format($stats['conversation_quality']['average_conversation_length'] ?? 0, 1) }} turns
User Satisfaction
{{ number_format(($stats['conversation_quality']['average_user_satisfaction'] ?? 0) * 100, 1) }}%
Task Completion Rate
{{ number_format(($stats['conversation_quality']['task_completion_rate'] ?? 0) * 100, 1) }}%
Semantic Accuracy
{{ number_ ``` ``` @extends('dashboard') @section('page-title', $agent->name . ' - Analytics') @section('content')

Usage Over Time

Response Time

Token Usage

Top Queries

@foreach($stats['top_queries'] ?? [] as $query) @endforeach
Query Count Avg. Response Time
{{ $query['text'] }} {{ $query['count'] }} {{ $query['avg_response_time'] }}ms

Performance Metrics

Cost Analysis

Total Cost
${{ number_format($stats['cost_estimate'] ?? 0, 2) }}
Cost per Request
${{ number_format($stats['requests']['total'] > 0 ? ($stats['cost_estimate'] ?? 0) / $stats['requests']['total'] : 0, 4) }}
Cost per 1K Tokens
${{ number_format($stats['cost_per_1k_tokens'] ?? 0, 4) }}

Performance Recommendations

@if(isset($stats['recommendations']) && count($stats['recommendations']) > 0) @foreach($stats['recommendations'] as $recommendation)

{{ $recommendation }}

@endforeach @else

No recommendations at this time. Your agent is performing optimally.

@endif

Conversation Quality Metrics

Avg. Conversation Length
{{ number_format($stats['conversation_quality']['average_conversation_length'] ?? 0, 1) }} turns
User Satisfaction
{{ number_format(($stats['conversation_quality']['average_user_satisfaction'] ?? 0) * 100, 1) }}%
Task Completion Rate
{{ number_format(($stats['conversation_quality']['task_completion_rate'] ?? 0) * 100, 1) }}%
Semantic Accuracy
{{ number_