{{-- 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('success'))
{{session('success')}}
@endif @if(session()->has('error'))
{{session('error')}}
@endif
@if (Helper::isDemoMode()) {{ Form::select('webhook_selected', array('slack' => trans('admin/settings/general.slack'), 'general' => trans('admin/settings/general.general_webhook')), old('webhook_selected', $webhook_selected), array('class'=>'select2 form-control', 'aria-label' => 'webhook_selected', 'id' => 'select2', 'style'=>'width:100%', 'disabled')) }} @else {{ Form::select('webhook_selected', array('slack' => trans('admin/settings/general.slack'), 'general' => trans('admin/settings/general.general_webhook')), old('webhook_selected', $webhook_selected), array('class'=>'select2 form-control', 'aria-label' => 'webhook_selected', 'id' => 'select2', 'data-minimum-results-for-search' => '-1', 'style'=>'width:90%')) }} @endif
@if (Helper::isDemoMode()) @include('partials.forms.demo-mode') @endif
{{ Form::label('webhook_endpoint', trans('admin/settings/general.webhook_endpoint',['app' => $webhook_name ])) }}
{!! $errors->first('webhook_endpoint', '') !!}
@if (Helper::isDemoMode()) @include('partials.forms.demo-mode') @endif
{{ Form::label('webhook_channel', trans('admin/settings/general.webhook_channel',['app' => $webhook_name ])) }}
{!! $errors->first('webhook_channel', '') !!}
@if (Helper::isDemoMode()) @include('partials.forms.demo-mode') @endif
{{ Form::label('webhook_botname', trans('admin/settings/general.webhook_botname',['app' => $webhook_name ])) }}
{!! $errors->first('webhook_botname', '') !!}
@if (!Helper::isDemoMode()) @include('partials.forms.demo-mode') @endif @if($webhook_selected == 'slack') @if($webhook_endpoint != null && $webhook_channel != null) @endif @endif
@section('moar_scripts') @endsection