{!! Form::label('name', 'Gender') !!}
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! Form::label('type', 'Type') !!}
{!! Form::select('type', $type, old('type'), ['class' => 'select2 form-control']) !!}
@if ($errors->has('type'))
{{ $errors->first('type') }}
@endif
{!! Form::label('matches', 'Gender Matches') !!}
{!! Form::select('matches[]', $allGenders, isset($record) ? $genderMatches : [], ['class' => 'select2 form-control', 'multiple']) !!}
@if ($errors->has('matches'))
{{ $errors->first('matches') }}
@endif