@extends('layouts.popup.small') @section('title') {{ trans('messages.webhooks.add_webhook') }} @endsection @section('content')
{{ csrf_field() }}
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'type', 'value' => $webhook->type, 'label' => trans('messages.webhook.select_type'), 'options' => [ ['text' => trans('messages.webhook.type.open'), 'value' => Acelle\Model\CampaignWebhook::TYPE_OPEN], ['text' => trans('messages.webhook.type.click'), 'value' => Acelle\Model\CampaignWebhook::TYPE_CLICK], // ['text' => trans('messages.webhook.type.unsubscribe'), 'value' => Acelle\Model\CampaignWebhook::TYPE_UNSUBSCRIBE], ], 'rules' => ['type' => 'required'], ]) @include('helpers.form_control', [ 'type' => 'text', 'name' => 'endpoint', 'value' => $webhook->endpoint, 'label' => trans('messages.webhook.endpoint.desc'), 'rules' => ['endpoint' => 'required'], ])
@endsection