@php $isOauthApp = $isGithub || $isDatastore; $keySource = $isGithub ? ($githubApp['source'] ?? 'missing') : ($isDatastore ? ($supabaseApp['source'] ?? 'missing') : ($isVisualCatalog ? ($visualKeySource ?? 'missing') : $settings->keySource($provider))); $maskedKey = $isOauthApp ? null : ($isVisualCatalog ? ($visualMaskedKey ?? null) : $settings->maskedKey($provider)); $pricing = is_array($project) ? ($project['pricing'] ?? null) : null; $activeScenario = is_array($project) ? ($project['scenario'] ?? null) : null; $unitCostJs = is_array($project) && $project['unit_cost_usd'] !== null ? (float) $project['unit_cost_usd'] : null; @endphp
@if ($isGithub) {{ __('dashboard.OAuth credentials for Lab imports.') }} @elseif ($isVisualCatalog) {{ __('dashboard.Server-side key so Lab can fetch matching photographs.') }} @elseif ($isDatastore) {{ __('dashboard.OAuth credentials so Lab users can connect Supabase from the + menu.') }} @else {{ __('dashboard.API key, models, and project-volume cost for this provider.') }} @endif
{{ __('dashboard.Only one model can be the Lab default. Turning a switch on replaces the current default.') }}
@if ($workspaceDefault && $workspaceDefault->provider !== $provider){{ __('dashboard.Current default: :model.', ['model' => $workspaceDefault->label]) }}
@endif{{ $model->label }}
@if ($isDefault){{ __('dashboard.Used by Lab until the chat picker chooses another.') }}
@endif{{ __('dashboard.Pick a project type, then set how many projects (1–:max).', ['max' => number_format($projectCountMax)]) }}
{{ __('dashboard.Estimated API cost') }}
{{ $activeScenario['blurb'] }}