{!! Form::select("foreigner_workplace[mtb_workplace_id]", $workplace_list, (isset($foreigner_workplace)) ? $foreigner_workplace['mtb_workplace_id'] : '', [
'class' => 'form-select',
]) !!}
{!! Form::select("foreigner_workplace[mtb_employee_id]", $employee_list, (isset($foreigner_workplace)) ? $foreigner_workplace['mtb_employee_id'] : $staff['mtb_employee_id'], [
'class' => 'form-select',
]) !!}
{!! Form::date("foreigner_workplace[date_start]", (isset($foreigner_workplace)) ? $foreigner_workplace['date_start'] : '', [
'class' => 'form-control',
]) !!}
{!! Form::date("foreigner_workplace[date_end]", (isset($foreigner_workplace)) ? $foreigner_workplace['date_end'] : '', [
'class' => 'form-control',
]) !!}
@for($i = 0; $i <= 1; $i++)
{!! Form::radio('foreigner_workplace[is_current]', $i, (isset($foreigner_workplace)) ? (($i == $foreigner_workplace['is_current']) ? true : false) : (($i == 0) ? true : false), [
'class' => 'btn-check',
'id' => "is_current{$i}",
]) !!}
@endfor
{!! Form::textarea("foreigner_workplace[remark]", (isset($foreigner_workplace)) ? $foreigner_workplace['remark'] : '', [
'class' => 'form-control',
'rows' => 4,
]) !!}