@extends('admin.layouts.main',array( 'scripts' => array( path_asset('path.backoffice.js_path') . '/view/configurations/backend-configuration-form.js' ) )) @section('content')

Manage Configuration

@if($canView)
@endif
{!! Form::model($configuration) !!}
{!! Form::text('key', null, array( 'id' => 'key_input', 'class' => 'form-control', 'maxlength' => '20', 'data-toggle' => ($errors->has('key') ? 'tooltip': null), 'title' => ($errors->has('key') ? $errors->first('key'): null), 'disabled' => true ))!!}
{!! Form::text('name', null, array( 'id' => 'name_input', 'class' => 'form-control', 'maxlength' => '20', 'data-toggle' => ($errors->has('name') ? 'tooltip': null), 'title' => ($errors->has('name') ? $errors->first('name'): null), 'disabled' => true ))!!}
@if ($configuration->type === 'boolean')
{!! Form::select('value', [ 0 => 'Disabled', '1'=> 'Enabled'],$configuration->value, array( 'id' => 'value', 'class' => 'form-control', 'data-toggle' => ($errors->has('value') ? 'tooltip': null), 'title' => ($errors->has('value') ? $errors->first('value'): null), 'disabled' => null)) !!}
@else
{!! Form::textArea('value', null, array( 'id' => 'value', 'class' => 'form-control', 'maxlength' => '2048', 'data-toggle' => ($errors->has('value') ? 'tooltip': null), 'title' => ($errors->has('value') ? $errors->first('value'): null), 'disabled' => null)) !!}
@endif
{{ $configuration->description }}
@if($canEdit)
{!! Form::submit(Lang::get('backend.save'), array('class' => 'btn btn-primary', 'id' => 'configuration_save_btn')) !!}
@endif {!! Form::close() !!}
@stop