{{ __('Admin · System') }}

{{ __('Translation usage') }}

{{ __("Volume + estimated cost of every auto-reply translation. Bundled dictionary hits and 24h cache hits aren't billable and don't appear here — these are the wire calls.") }}

{{-- Headline cards --}}
{{ __('Wire calls') }}
{{ number_format((int) ($totals->calls ?? 0)) }}
@if (!is_null($cacheRatio))
~{{ $cacheRatio }}% served from cache / dictionary
@endif
{{ __('Chars translated') }}
{{ number_format((int) ($totals->chars_in ?? 0)) }}
out: {{ number_format((int) ($totals->chars_out ?? 0)) }}
{{ __('Estimated cost') }}
{!! \App\Support\FormatSettings::display(((int) ($totals->cost_micros ?? 0)) / 1_000_000, 'USD') !!}
{{ __('based on published per-char rates') }}
{{ __('Fallback hits') }}
{{ number_format((int) ($totals->fallback_calls ?? 0)) }}
{{ __('primary driver failed, chain caught') }}
{{-- Per-provider --}}

{{ __('By provider') }}

@if ($perProvider->isEmpty())
{{ __('No translation calls in this range. Send a non-English inbound to a device with an auto-reply, then refresh.') }}
@else
@foreach ($perProvider as $row) @php $rate = (\App\Models\TranslationUsage::PROVIDER_COST_MICROS_PER_CHAR[$row->provider_slug] ?? 0); @endphp @endforeach
{{ __('Provider') }} {{ __('Calls') }} {{ __('Chars in') }} {{ __('Cost') }} {{ __('Rate / 1M chars') }}
{{ $row->provider_slug }} {{ number_format((int) $row->calls) }} {{ number_format((int) $row->chars_in) }} {!! \App\Support\FormatSettings::display(((int) $row->cost_micros) / 1_000_000, 'USD') !!} {!! $rate > 0 ? \App\Support\FormatSettings::display($rate, 'USD') : 'free' !!}
@endif
{{-- Daily timeline (last 30d) --}} @if ($timeline->isNotEmpty())

{{ __('Last 30 days') }}

@php $maxChars = max($timeline->max('chars_in'), 1); @endphp
@foreach ($timeline as $day) @php $h = max(2, (int) round(120 * ($day->chars_in / $maxChars))); @endphp
@endforeach
{{ __('hover each bar for date / chars / cost') }}
@endif {{-- Top workspaces --}}

{{ __('Top spending workspaces') }}

@if ($topWorkspaces->isEmpty())
{{ __('No paid-tier translations in this range.') }}
@else
@foreach ($topWorkspaces as $row) @endforeach
{{ __('Workspace') }} {{ __('Calls') }} {{ __('Chars') }} {{ __('Cost') }}
@if ($row->workspace_id) {{ $row->workspace_name ?: 'Workspace #' . $row->workspace_id }} @else {{ __('unassigned') }} @endif {{ number_format((int) $row->calls) }} {{ number_format((int) $row->chars_in) }} {!! \App\Support\FormatSettings::display(((int) $row->cost_micros) / 1_000_000, 'USD') !!}
@endif