{{ t('configure_stripe_webhooks') }}

{{ t('setup_webhook_receive_real_time_notification') }}

{{ t('this_url_must_be_publicly_accessible_for_stripe_to_send_webhook_events') }}

{{ t('local_webhook_records') }}

{{ t('webhook_configurations_stored_in_your_application_database') }}

@forelse ($localWebhooks as $webhook) @empty @endforelse
{{ t('id') }} {{ t('provider') }} {{ t('webhook_id') }} {{ t('endpoint_url') }} {{ t('status') }} {{ t('last_activity') }}
{{ $webhook->id }} {{ ucfirst($webhook->provider) }} {{ $webhook->webhook_id }} {{ $webhook->endpoint_url }} {{ $webhook->is_active ? 'Active' : 'Inactive' }} {{ $webhook->last_pinged_at ? $webhook->last_pinged_at->diffForHumans() : 'Never' }}
{{ t('no_local_webhook_records_found') }}
@forelse ($localWebhooks as $webhook)
ID: {{ $webhook->id }} {{ $webhook->is_active ? 'Active' : 'Inactive' }}
Provider: {{ ucfirst($webhook->provider) }}
Webhook ID: {{ $webhook->webhook_id }}
URL: {{ $webhook->endpoint_url }}
Last Activity: {{ $webhook->last_pinged_at ? $webhook->last_pinged_at->diffForHumans() : 'Never' }}
@empty
{{ t('no_local_webhook_records_found') }}
@endforelse

{{ t('stripe_webhook_details') }}

{{ t('information_about_your_configured_stripe_webhooks') }}

{{ t('loading_webhook_details') }}
@if (!empty($stripeWebhooks))
{{ t('webhook_id_stripe') }} {{ $stripeWebhooks['id'] }}
{{ ucfirst($stripeWebhooks['status'] ?? 'Unknown') }}

{{ t('endpoint_url')}}

{{ $stripeWebhooks['url'] }}

API {{ t('version') }}

{{ $stripeWebhooks['api_version'] ?? '2023-10-16' }}

{{ t('enabled_events')}}

@foreach ($stripeWebhooks['enabled_events'] ?? [] as $event)
{{ $event }}
@endforeach
@else

{{ t('no_webhooks_found') }}

{{ t('no_stripe_webhooks_are_currently_configured') }}

@endif
{{-- @if (!empty($localWebhooks) && count($localWebhooks) > 0)

{{ t('recent_webhook_activity') }}

{{ t('event') }} {{ t('status') }} Time
{{ t('tenant_subscription_created') }} {{ t('processed') }} {{ t('just_now') }}
@endif --}}

{{ t('delete_webhook_confirmation') }}