@extends('layouts.app') @section('title', __('Connect :name', ['name' => $name])) @section('page-title', __('Connect :name', ['name' => $name])) @section('content') @php $providerStyles = [ 'odoo' => [ 'logo' => '#714b67', 'mark' => 'Od', 'tagline' => __('Connect via API key — works with Odoo Online and self-hosted instances.'), 'docs_url' => 'https://www.odoo.com/documentation/master/developer/reference/external_api.html', 'help_steps' => [ __('Open Odoo → Settings → Users & Companies → Users.'), __('Pick the integration user → Account Security → New API Key.'), __('Copy the URL (no trailing slash), database name, and the API key here.'), ], ], 'billit' => [ 'logo' => '#ff8a3c', 'mark' => 'Bi', 'tagline' => __('Cash-basis P&L from your sales and purchase orders. No GL required.'), 'docs_url' => 'https://www.billit.eu/api', 'help_steps' => [ __('In Billit → Settings → API → generate an API key.'), __('Open your party — the numeric ID is in the URL.'), __('Paste both here.'), ], ], ]; $style = $providerStyles[$provider] ?? ['logo' => '#64748b', 'mark' => strtoupper(substr($name, 0, 2)), 'tagline' => '', 'docs_url' => null, 'help_steps' => []]; @endphp