@foreach($customCollection as $custom)
<div class="form-group col-md-6">
  {!! Form::label('label_'.$custom->id, $custom->name) !!}
  @switch($custom->field_format)

  @case('string')
  {!! Form::text('cf['.$custom->id.']', null, ['class' => 'form-control']) !!}
  @break
  @endcase

  @case('sql')
  <select class="form-control" name="cf[{{$custom->id}}]">
    @foreach($custom->possible_values as $values)
    <option id="{{ $values->value}}">{{ $values->label}}</option>
    @endforeach
  </select>
  @break
  @endcase

  @case('list')
  <select class="form-control" name="cf[{{$custom->id}}]">
    @foreach($custom->possible_values as $values)
    <option id="{{ $values->value}}">{{ $values->label}}</option>
    @endforeach
  </select>
  @break
  @endcase

  @case('bool')
  {!! Form::radio('cf['.$custom->id.']', 1, null, ['class' => '']) !!} SI
  {!! Form::radio('cf['.$custom->id.']', 0, null, ['class' => '']) !!} NO
  @break
  @endcase

  @endswitch


</div>
@endforeach
