<div class="pos-tab-content active">
    <div class="col-sm-4">
        <div class="form-group">
            {!! Form::label('password_length', __('business.password_length') . ':') !!}
            <div class="input-group">
                <span class="input-group-addon">
                    <i class="fas fa-money-bill-alt"></i>
                </span>
                {!! Form::select('password_length', $password_length, $business->password_length, ['class' => 'form-control select2','placeholder' => __('business.password_length'), 'required']); !!}
            </div>
        </div>
    </div>
    <div class="col-sm-4">
        <div class="form-group">
            {!! Form::label('select_authorization_app', __('business.select_authorization_app') . ':') !!}
            <div class="input-group">
                <span class="input-group-addon">
                    <i class="fas fa-money-bill-alt"></i>
                </span>
                {!! Form::select('select_authorization_app', $select_authorization_app, $business->authenticator_id, ['class' => 'form-control select2','placeholder' => 'None']); !!}
            </div>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="col-sm-8">
        {!! Form::label('password_complexity', __('business.password_complexity') . ':') !!}
        {{-- <div class="row"> --}}
            @if ($password_complexity)            
            @foreach ($password_complexity as $item)                
                {{-- <div class="col-sm-4"> --}}
                    <div class="form-group">
                        <div class="checkbox" style="margin: 0">
                            <br>
                            @php
                                $default = 0;
                            @endphp
                            @if ($business->password_complexity)                                
                                @foreach (json_decode($business->password_complexity) as $pc)
                                    @if ($pc == $item->id)                                    
                                        @php
                                            $default = 1;
                                        @endphp                                                       
                                    @endif
                                @endforeach
                            @endif
                            <label>
                            {!! Form::checkbox('password_complexity[]', $item->id, $default, 
                                [ 'class' => 'input-icheck']); !!} {{ $item->name_checkbox }}
                            </label>
                        </div>
                    </div>
                {{-- </div> --}}
                @endforeach
            @endif
        {{-- </div> --}}
    </div>
</div>