<div class="modal-dialog" role="document"><div class="modal-content">
    {!! Form::open(['route' => 'medorg.staff-assignments.store', 'class' => 'medorg-form']) !!}
    <div class="modal-header"><button type="button" class="close" data-dismiss="modal">&times;</button><h4 class="modal-title">@lang('medorganization::lang.assign') — @lang('medorganization::lang.staff_assignments')</h4></div>
    <div class="modal-body">
        <div class="form-group">
            {!! Form::label('user_id', __('medorganization::lang.user') . ':*') !!}
            {!! Form::select('user_id', $users, null, ['class' => 'form-control medorg-select2', 'placeholder' => __('messages.please_select'), 'required']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('department_id', __('medorganization::lang.department') . ':*') !!}
            {!! Form::select('department_id', $departments, null, ['class' => 'form-control medorg-select2', 'placeholder' => __('messages.please_select'), 'required']) !!}
        </div>
        <div class="checkbox"><label>{!! Form::checkbox('is_primary', 1, false) !!} @lang('medorganization::lang.is_primary_department')</label></div>
    </div>
    <div class="modal-footer"><button type="submit" class="btn btn-primary">@lang('messages.save')</button><button type="button" class="btn btn-default" data-dismiss="modal">@lang('messages.close')</button></div>
    {!! Form::close() !!}
</div></div>
