@include('user.openai-ads._rail', ['current' => 'connect', 'account' => $account])
{{ __('OpenAI Ads') }}

{{ __('Connect your') }} {{ __('ad account') }}

{{ __('Paste your OpenAI Ads API key. Your key stays private to this workspace and is stored encrypted — it charges into and reports from your own ad account. One key connects one ad account.') }}

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
@csrf
@if ($hasKey) {{ __('Back to campaigns') }} @endif
@if ($hasKey)
{{ $account['name'] ?? __('Connected account') }}
{{ $account['id'] ?? '' }} @if (!empty($account['currency_code'])) · {{ $account['currency_code'] }} @endif @if (!empty($account['timezone'])) · {{ $account['timezone'] }} @endif
@csrf @method('DELETE')
@endif