AI Try-On {{ $availability['available'] ? 'Live' : 'Not live' }}

{{ $availability['available'] ? 'Customers can generate previews.' : $availability['reason'] }} Spend this month: {{ money($monthSpend) }}{{ $form['monthly_budget'] ? ' of ₦'.number_format((float) $form['monthly_budget']) : '' }}.
@foreach (['today' => 'Today', '7' => '7 days', '30' => '30 days', '90' => '90 days'] as $k => $l)@endforeach
Generations
Impact
Performance by colour
ColourLooksSuccessfulPurchasesRevenue @forelse ($colours as $c) {{ $c['name'] }}{{ $c['total'] }}{{ $c['ok'] }}{{ $c['purchases'] }}{{ money($c['revenue']) }} @empty No try-ons in this period. @endforelse
Recent generations

Customer photos are personal data. Originals are never shown here; results only on request, and every view is limited to admins with AI access.

@forelse ($recent as $g)
@if ($showImages && $g->output_path)@else@endif
{{ $g->user?->name ?? 'Guest' }}{{ $g->created_at->diffForHumans(short: true) }} {{ $g->status }}{{ $g->latency_ms ? round($g->latency_ms / 1000, 1).'s' : '' }} @if ($g->error_code){{ $g->error_code }}@endif
@empty

No generations yet.

@endforelse
@php $source = fn ($d) => match ($d['source']) { 'admin' => 'Saved here', 'env' => 'From .env', default => 'Not set' }; @endphp
Provider & API keysKeys are stored encrypted and never shown again. A key saved here overrides the server's .env.
{{-- OpenAI --}}
OpenAI@if ($form['provider'] === 'openai')In use@endif @if (($keys['openai']['model'] ?? '') === 'custom') @endif @if ($t = $tests['openai'] ?? null)

$t['ok'], 'text-bad' => ! $t['ok']]) role="status">{{ $t['ok'] ? '✓' : '✗' }} {{ $t['message'] }}

@endif
@if ($credentials['openai']['api_key']['source'] === 'admin')@endif
The test checks your key and model with OpenAI. No image is generated and nothing is charged. {{-- Replicate --}}
Replicate (alternative)
@if ($t = $tests['replicate'] ?? null)

$t['ok'], 'text-bad' => ! $t['ok']]) role="status">{{ $t['ok'] ? '✓' : '✗' }} {{ $t['message'] }}

@endif
@if ($credentials['replicate']['api_key']['source'] === 'admin')@endif
Settings

Add the provider's API key and model under Provider & API keys first, then choose it here.