@isset($shortname)
{{$shortname}}
@endisset
@if(count($templates))
{!! Form::open(['route' => 'configuration.env', 'role' => 'form', 'class' => 'config-user-form','id' => 'config-user-form','data-no-form-clear' => 1]) !!}
{!! Form::hidden('tenant_id',(Request::filled('tenant_id') ? Request::input('tenant_id') : Laratrust::user()->tenant_id)) !!}
@foreach($templates as $template)
{!! Form::label('',$template->description,['class'=>'control-label']) !!}
@if($template->type == 'textbox')
{!! Form::input('text',$template->key,$template->value ,['class'=>'form-control']) !!}
@elseif($template->type == 'number')
{!! Form::input('number',$template->key,$template->value ,['class'=>'form-control','min'=>'0']) !!}
@elseif($template->type == 'select')
{!! Form::select($template->key, arrayWithValueKey($template->select_options), $template->value ,['id' => $template->key, 'class' => 'form-control input-xlarge', 'title' => trans('messages.select_one')]) !!}
@endif
@endforeach
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.update'),['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endif