@php // Define a cleaner, more muted color scheme $card_colors = [ 'requests' => ['main' => 'sky', 'light' => 'sky-100', 'text' => 'sky-600'], 'words' => ['main' => 'emerald', 'light' => 'emerald-100', 'text' => 'emerald-600'], 'credits' => ['main' => 'amber', 'light' => 'amber-100', 'text' => 'amber-600'], 'cost' => ['main' => 'red', 'light' => 'red-100', 'text' => 'red-600'], ]; @endphp

Total AI Requests

{{ $this->totalRequests }}

All time usage

Words Generated

{{ $this->totalWords }}

Total content

Free Credits Used

{{ $this->freeCreditsUsed }}

Credit usage

Total Cost

{{ $this->totalCost }}

Estimated value

Daily Usage Trend

Activity over the last 30 days

@php $maxWords = $this->getDailyUsageTrend()->max('words'); @endphp @foreach($this->getDailyUsageTrend() as $trend)
{{ \Carbon\Carbon::parse($trend->date)->format('M d, Y') }} {{ $trend->requests }} requests
Words generated:
{{ number_format($trend->words) }}
@endforeach

Peak Usage Hours

When AI is most actively used

@php $maxRequests = $this->getUsageByHour()->max('requests'); @endphp @foreach($this->getUsageByHour() as $hourUsage)
{{ str_pad($hourUsage->hour, 2, '0', STR_PAD_LEFT) }}:00
{{ number_format($hourUsage->requests) }}
@endforeach

Quick Metrics

Key performance indicators

Avg. Words/Request

{{ $this->avgWordsPerRequest }}

Today's Requests

{{ $this->todaysRequests }}

Avg. Cost/Request

{{ $this->avgCostPerRequest }}

Total Agents

{{ $this->totalAgents }}

Top Agents

Highest word count generated

@foreach($this->getTopAgentsByUsage() as $index => $usage)
{{ $index + 1 }}

{{ $usage->travelAgent->name ?? 'Unknown Agent' }}

{{ $usage->travelAgent->email ?? 'No email' }}

{{ number_format($usage->total_words) }}

words

@endforeach