<div class="card">
    <div class="card-header"><h4 class="card-title mb-0">Meta Marketing API Bilgileri</h4></div>
    <div class="card-body">
        <div class="alert alert-info border-0">Meta testinde ad account Insights endpoint’i çağrılır. Reklam hesabı ID alanı <code>act_</code> ile veya düz sayı olarak girilebilir.</div>
        <div class="row">
            <div class="col-md-6 mb-3"><label class="form-label">Meta App ID</label><input type="text" name="app_id" class="form-control" value="{{ old('app_id') }}"></div>
            <div class="col-md-6 mb-3"><label class="form-label">Meta App Secret</label><input type="password" name="app_secret" class="form-control" autocomplete="new-password" placeholder="Boş bırakılırsa mevcut değer korunur"></div>
            <div class="col-md-6 mb-3"><label class="form-label">Business Manager ID</label><input type="text" name="business_id" class="form-control" value="{{ old('business_id', $connection->meta['business_id'] ?? '') }}"></div>
            <div class="col-md-6 mb-3"><label class="form-label">Ad Account ID</label><input type="text" name="ad_account_id" class="form-control" value="{{ old('ad_account_id', $connection->meta['ad_account_id'] ?? $connection->account_id) }}" placeholder="act_123 veya 123"></div>
            <div class="col-12 mb-3"><label class="form-label">Access Token</label><input type="password" name="access_token" class="form-control" autocomplete="new-password" placeholder="System User / long-lived token"></div>
        </div>
    </div>
</div>
