Required field (*)
{!!Form::model($user, ['route' => ['admin.badging.users.update', ['user' => $user->id]], 'method' => 'put'])!!}
{{Form::label('firstname', 'First name*', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}}
{{Form::text('firstname', null, ['class' => 'border-none dark:bg-gray-800 dark:text-gray-300', $errors->has('firstname') ? 'is-invalid' : null, 'required' => true])}}
@if($errors->has('firstname'))
{{$errors->first('firstname')}}
@endif
{{Form::label('lastname', 'Last name*', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}}
{{Form::text('lastname', null, ['class' => 'border-none dark:bg-gray-800 dark:text-gray-300', $errors->has('lastname') ? 'is-invalid' : null, 'required' => true])}}
@if($errors->has('lastname'))
{{$errors->first('lastname')}}
@endif
{{Form::label('badgename', 'Name on Badge*', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}}
{{Form::text('badgename', $user->orders()->has('attendees')->first()->attendees[0]->tag_line_1, ['class' => 'border-none dark:bg-gray-800 dark:text-gray-300', $errors->has('badgename') ? 'is-invalid' : null, 'required' => true])}}
@if($errors->has('badgename'))
{{$errors->first('badgename')}}
@endif
{{Form::label('groupname', 'Group Name*', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}}
{{Form::text('groupname', $user->orders()->has('attendees')->first()->attendees[0]->tag_line_2, ['class' => 'border-none dark:bg-gray-800 dark:text-gray-300', $errors->has('groupname') ? 'is-invalid' : null, 'required' => true])}}
@if($errors->has('groupname'))
{{$errors->first('groupname')}}
@endif
{{Form::label('phone', 'Phone number (optional)', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}}
{{Form::text('phone', null, ['class' => 'border-none dark:bg-gray-800 dark:text-gray-300', $errors->has('phone') ? 'is-invalid' : null])}}
@if($errors->has('phone'))
{{$errors->first('phone')}}
@endif
{{Form::label('affiliation_type_id', 'Affiliation*', ['class' => 'border-none dark:bg-gray-800 dark:text-gray-300', $errors->has('phone') ? 'is-invalid' : null])}}
{{Form::select('affiliation_type_id', $affiliation_types, null, ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300 border-none'])}}
{!!Form::close()!!}