{{-- CityHub - Communal Service - Add / edit report subtype --}}

{{ $title or null }}


{{ Form::open(array('route' => $postRoute, 'role' => 'form', 'class' => 'form-horizontal', 'autocomplete' => 'off')) }} @if ($mode == 'edit') {{ Form::hidden('id', $subtype->id, array('id' => 'id')) }} @endif
{{ Form::select('type', $types, isset($subtype->type_id) ? $subtype->type_id : null, array('class' => 'form-control', 'id' => 'type')) }} @if (isset($errors) && ($errors->first('type') != '' || $errors->first('type') != null))

{{ $errors->first('type') }}

@endif
{{ Form::text('name', isset($subtype->name) ? $subtype->name : null, array('class' => 'form-control', 'id' => 'name')) }} @if (isset($errors) && ($errors->first('name') != '' || $errors->first('name') != null))

{{ $errors->first('name') }}

@endif
{{ Form::textarea('description', isset($subtype->description) ? $subtype->description : null, array('class' => 'form-control', 'id' => 'description')) }} @if (isset($errors) && ($errors->first('description') != '' || $errors->first('description') != null))

{{ $errors->first('description') }}

@endif
{{ Form::button(' ' . Lang::get('core.save'), array('type' => 'submit', 'class' => 'btn btn-success')) }} {{ Lang::get('core.cancel') }}
{{ Form::close() }}