{{-- Page title --}} @section('title') {{ trans('admin/settings/general.webhook_title') }} @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
{{csrf_field()}}

{{ trans('admin/settings/general.webhook', ['app' => $webhook_name] ) }}

@if($webhook_selected != 'general')

{!! trans('admin/settings/general.webhook_integration_help',array('webhook_link' => $webhook_link, 'app' => $webhook_name)) !!}

@endif
@if (session()->has('save'))
{{session('save')}}
@endif @if(session()->has('success'))
{{session('success')}}
@endif @if(session()->has('error'))
{{session('error')}}
@endif @if(session()->has('message'))
{{session('message')}}
@endif
{{ Form::label('webhook_endpoint', trans('admin/settings/general.webhook_endpoint',['app' => ucwords($webhook_selected) ])) }}
@if (config('app.lock_passwords')===true)

{{ trans('general.feature_disabled') }}

@else @endif {!! $errors->first('webhook_endpoint', ':message') !!}
{{ Form::label('webhook_channel', trans('admin/settings/general.webhook_channel',['app' => ucwords($webhook_selected) ])) }}
@if (config('app.lock_passwords')===true)

{{ trans('general.feature_disabled') }}

@else @endif {!! $errors->first('webhook_channel', ':message') !!}
{{ Form::label('webhook_botname', trans('admin/settings/general.webhook_botname',['app' => ucwords($webhook_selected) ])) }}
@if (config('app.lock_passwords')===true)

{{ trans('general.feature_disabled') }}

@else @endif {!! $errors->first('webhook_botname', '') !!}
@if($webhook_selected == 'Slack' || $webhook_selected == 'Discord') @if($webhook_endpoint != null && $webhook_channel != null) @endif @endif