@if(isset($interactionType)) {!! Form::model($interactionType, ['action' => ['Gestao\InteractionTypeController@postUpdateInteractionType', $interactionType->id], 'method' => 'post', 'class' => 'form-horizontal']) !!} @else {!! Form::open(['action' => 'Gestao\InteractionTypeController@postSaveInteractionType', 'method' => 'post', 'class' => 'form-horizontal']) !!} @endif @if(isset($father_id)) {!! Form::input("hidden", "father_id",$father_id,["class" => "hidden"]) !!} @endif @if(isset($interactionType))
{!! Form::label('ativo', 'Status', ['class' => 'control-label col-md-4 col-sm-4 col-xs-12']) !!}
{!! Form::select('ativo', ['0' => 'Inativo', '1' => 'Ativo'], null, ['class' => 'form-control']) !!} @if ($errors->has('ativo')) {{ $errors->first('ativo') }} @endif
@endif
{!! Form::label('nome', 'Nome do Tipo de interação', ['class' => 'control-label col-md-4 col-sm-4 col-xs-12']) !!}
{!! Form::text('nome', null, ['class' => 'form-control']) !!} @if ($errors->has('nome')) {{ $errors->first('nome') }} @endif
@if (isset($interactionType) && !$interactionType->father()->first()) Cadastrar sub interação @endif
{!! Form::close() !!}