@extends('layouts.app-sidebar') @section('content')

AI Race Stats Debug

Raw database entries for debugging

Total in DB

{{ $totalCount }}

Last 24h

{{ $count24h }}

Last 1h

{{ $count1h }}

Last 10m

{{ $count10m }}

Last 20 Raw Entries

@if($stats->isEmpty())

No records found!

The ai_race_stats table is empty. This means:

  • - Either no AI races have occurred yet
  • - Or the insert is failing silently
  • - Check laravel.log for AI_RACE_STAT_INSERT logs
@else
@foreach($stats as $stat) @endforeach
ID Created At Tenant ID Winner OpenAI ms Anthropic ms OAI Err ANT Err Message
{{ $stat->id }} {{ $stat->created_at->format('Y-m-d H:i:s') }} {{ $stat->tenant_id ?? '-' }} @if($stat->provider_winner === 'openai') openai @elseif($stat->provider_winner === 'anthropic') anthropic @else none @endif {{ $stat->openai_latency_ms ?? '-' }} {{ $stat->anthropic_latency_ms ?? '-' }} @if($stat->openai_error) Yes @else No @endif @if($stat->anthropic_error) Yes @else No @endif {{ $stat->user_message_preview ?? '-' }}
@endif

Debug Info

Table: ai_race_stats

Model: App\Models\AiRaceStat

Server Time: {{ now()->format('Y-m-d H:i:s T') }}

Timezone: {{ config('app.timezone') }}

@endsection