@php $editing = isset($hook); $hEvents = $editing ? (array) ($hook->events ?? []) : []; @endphp
{{ $editing ? __('Webhooks / Edit') : __('Webhooks / New') }}
{{ $editing ? __('Edit') : __('Add a') }} {{ __('webhook') }} endpoint
{{ $editing ? __('Editing') : __('Draft / unsaved') }}
01 {{ __('Endpoint') }} {{ __('required') }}
{{ __("Must be HTTPS. We'll POST a signed JSON payload to this URL.") }}
02 {{ __('Events to subscribe') }} {{ __('at least one') }}
0 selected
03 {{ __('Security') }} {{ __('recommended') }}
{{ __('Verify each request via') }} {{ __('X-:brand-Signature: t=...,v1=...', ['brand' => brand_name()]) }} using HMAC-SHA256.
04 {{ __('Retry policy') }} {{ __('defaults are sane') }}
{{ __('sec') }}
{{ __('We mark a delivery successful on any 2xx response. 4xx and 5xx will be retried per the policy above.') }}
05 {{ __('Status') }}
{{ __('Activate immediately') }}
{{ __('Endpoint will start receiving the events you selected as soon as you save.') }}
{{-- Test fire — fires a one-shot request to the URL/secret/method the operator typed, WITHOUT saving the webhook. Lets them verify the endpoint works before they commit it to the list. Server route is /webhooks/test-fire-draft; the saved-row /test-fire is wired in the index page's JS (resources/js/charts/user-webhooks-index.js). --}} {{-- Save handler — the form has no action/method, so without this the "Save webhook" submit button just reloaded the page and NOTHING was saved (blank table). Collect fields + the .ev event checkboxes, POST JSON to the store route, then go to the list so the new row shows. --}}