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

{{ $title or null }}


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

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

@endif
{{ Form::text('name', isset($type->name) ? $type->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($type->description) ? $type->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() }}