@php($settings = $settings ?? [])
<div class="modal fade" id="integration-modal-google_ads" tabindex="-1" aria-hidden="true"
     data-integration-modal data-integration-id="google_ads">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"><i class="fab fa-google me-2"></i>Google Ads</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="mb-3">
                    <label class="form-label">{{ __('admin/settings.integrations_google_ads_conversion_id_label') }}</label>
                    <input type="text" class="form-control" name="google_ads_conversion_id" form="settingsForm"
                           value="{{ $settings['google_ads_conversion_id'] ?? '' }}" placeholder="AW-XXXXXXXXX">
                    <div class="form-text small">{{ __('admin/settings.integrations_google_ads_conversion_id_hint') }}</div>
                </div>
                <div class="mb-3">
                    <label class="form-label">{{ __('admin/settings.integrations_google_ads_purchase_label_label') }}</label>
                    <input type="text" class="form-control" name="google_ads_purchase_label" form="settingsForm"
                           value="{{ $settings['google_ads_purchase_label'] ?? '' }}" placeholder="abc123DEF">
                    <div class="form-text small">{{ __('admin/settings.integrations_google_ads_purchase_label_hint') }}</div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
                    {{ __('admin/settings.integrations_modal_close') }}
                </button>
            </div>
        </div>
    </div>
</div>
