@component('components.widget', ['title' => __('essentials::lang.hrm_details')])
{!! Form::label('essentials_department_id', __('essentials::lang.department') . ':') !!}
{!! Form::select('essentials_department_id', $departments, !empty($user->essentials_department_id) ? $user->essentials_department_id : null, ['class' => 'form-control select2', 'style' => 'width: 100%;', 'placeholder' => __('messages.please_select') ]); !!}
{!! Form::label('essentials_designation_id', __('essentials::lang.designation') . ':') !!}
{!! Form::select('essentials_designation_id', $designations, !empty($user->essentials_designation_id) ? $user->essentials_designation_id : null, ['class' => 'form-control select2', 'style' => 'width: 100%;', 'placeholder' => __('messages.please_select') ]); !!}
@endcomponent