@extends('layouts.app') @section('title', __('app.teacher.usage.title') . ' - ' . config('app.name', 'CurioGPT')) @section('content')

{{ __('app.teacher.usage.title') }}

@if (isset($costsOverall))

{{ __('app.teacher.usage.estimated_cost_overall') }}

{{ __('app.teacher.usage.based_on_configured_pricing') }}

@if (empty($costsOverall) || count($costsOverall) === 0)

{{ __('app.teacher.usage.no_usage_yet') }}

@else @foreach ($costsOverall as $row) @endforeach
{{ __('app.common.model') }} {{ __('app.teacher.usage.input_tokens') }} {{ __('app.teacher.usage.output_tokens') }} {{ __('app.teacher.usage.total_tokens') }} {{ __('app.teacher.usage.est_cost_usd') }}
{{ $row['model'] }} {{ number_format($row['input_tokens']) }} {{ number_format($row['output_tokens']) }} {{ number_format($row['total_tokens']) }} @if (is_null($row['estimated_cost_usd'])) {{ __('app.common.price_missing') }} @else ${{ number_format($row['estimated_cost_usd'], 4) }} @endif
@endif
@endif @if (isset($costsToday))

{{ __('app.teacher.usage.estimated_cost_today') }}

{{ __('app.teacher.usage.todays_usage_only') }}

@if (empty($costsToday) || count($costsToday) === 0)

{{ __('app.teacher.usage.no_usage_today') }}

@else @foreach ($costsToday as $row) @endforeach
{{ __('app.common.model') }} {{ __('app.teacher.usage.input_tokens') }} {{ __('app.teacher.usage.output_tokens') }} {{ __('app.teacher.usage.total_tokens') }} {{ __('app.teacher.usage.est_cost_usd') }}
{{ $row['model'] }} {{ number_format($row['input_tokens']) }} {{ number_format($row['output_tokens']) }} {{ number_format($row['total_tokens']) }} @if (is_null($row['estimated_cost_usd'])) {{ __('app.common.price_missing') }} @else ${{ number_format($row['estimated_cost_usd'], 4) }} @endif
@endif
@endif

{{ __('app.teacher.usage.overall_leaderboard') }}

{{ __('app.teacher.usage.top_users_total') }}

@forelse ($overall as $row)

{{ $row['name'] }}

{{ __('app.teacher.usage.export_invoice_pdf') }}

{{ number_format($row['total_tokens']) }}

{{ __('app.common.tokens') }}

@empty
{{ __('app.teacher.usage.no_usage_yet') }}
@endforelse

{{ __('app.teacher.usage.today') }}

{{ __('app.teacher.usage.top_users_today') }}

@forelse ($today as $row)

{{ $row['name'] }}

{{ number_format($row['total_tokens']) }}

{{ __('app.common.tokens') }}

@empty
{{ __('app.teacher.usage.no_usage_yet') }}
@endforelse

{{ __('app.teacher.usage.last_14_days_total') }}

{{ __('app.teacher.usage.total_tokens_per_day') }}

@if ($last14->isEmpty())

{{ __('app.teacher.usage.no_recent_usage') }}

@else
@foreach ($last14 as $row) @endforeach
{{ __('app.common.date') }} {{ __('app.teacher.usage.total_tokens') }}
{{ $row['date'] }} {{ number_format($row['total_tokens']) }}
@endif
@endsection