@extends('layouts/default') {{-- Page title --}} @section('title') Update Slack Settings @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content') {{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }} {{csrf_field()}}

Slack

{!! trans('admin/settings/general.slack_integration_help',array('slack_link' => 'https://my.slack.com/services/new/incoming-webhook')) !!} @if (($setting->slack_channel=='') && ($setting->slack_endpoint=='')) {{ trans('admin/settings/general.slack_integration_help_button') }} @endif

{{ Form::label('slack_endpoint', trans('admin/settings/general.slack_endpoint')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('slack_endpoint', old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX', 'id' => 'slack_endpoint')) }}

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

@else {{ Form::text('slack_endpoint', old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX', 'id' => 'slack_endpoint')) }} @endif {!! $errors->first('slack_endpoint', '') !!}
{{ Form::label('slack_channel', trans('admin/settings/general.slack_channel')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('slack_channel', old('slack_channel', $setting->slack_channel), array('class' => 'form-control','disabled'=>'disabled','placeholder' => '#IT-Ops')) }}

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

@else {{ Form::text('slack_channel', old('slack_channel', $setting->slack_channel), array('class' => 'form-control','placeholder' => '#IT-Ops')) }} @endif {!! $errors->first('slack_channel', '') !!}
{{ Form::label('slack_botname', trans('admin/settings/general.slack_botname')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('slack_botname', old('slack_botname', $setting->slack_botname), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'Snipe-Bot')) }}

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

@else {{ Form::text('slack_botname', old('slack_botname', $setting->slack_botname), array('class' => 'form-control','placeholder' => 'Snipe-Bot')) }} @endif {!! $errors->first('slack_botname', '') !!}
{{Form::close()}} @stop @push('js') @endpush