@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', Input::old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX')) }} @else {{ Form::text('slack_endpoint', Input::old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX')) }} @endif {!! $errors->first('slack_endpoint', ':message') !!}
{{ Form::label('slack_channel', trans('admin/settings/general.slack_channel')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('slack_channel', Input::old('slack_channel', $setting->slack_channel), array('class' => 'form-control','disabled'=>'disabled','placeholder' => '#IT-Ops')) }} @else {{ Form::text('slack_channel', Input::old('slack_channel', $setting->slack_channel), array('class' => 'form-control','placeholder' => '#IT-Ops')) }} @endif {!! $errors->first('slack_channel', ':message') !!}
{{ Form::label('slack_botname', trans('admin/settings/general.slack_botname')) }}
@if (config('app.lock_passwords')===true) {{ Form::text('slack_botname', Input::old('slack_botname', $setting->slack_botname), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'Snipe-Bot')) }} @else {{ Form::text('slack_botname', Input::old('slack_botname', $setting->slack_botname), array('class' => 'form-control','placeholder' => 'Snipe-Bot')) }} @endif {!! $errors->first('slack_botname', ':message') !!}
@if (($setting->slack_channel!='') && ($setting->slack_endpoint))
{{ Form::label('est_slack', 'Test Slack') }}

{{ trans('admin/settings/general.slack_test_help') }}

@endif
{{Form::close()}} @stop @section('moar_scripts') @stop