@if ($e_commerce_default['big_commerce_enable'] == 1 || 
        ($e_commerce_default['shopify_enable'] == 0 
        && $e_commerce_default['woo_commerce_enable'] == 0 
        && $e_commerce_default['magento_enable'] == 0)
    )
    <div class="pos-tab-content active">
@else
        <div class="pos-tab-content">
@endif
    <div class="row">
        <div class="col-sm-3">
            <div class="form-group">
                {!! Form::label('big_commerce_enable', __('business.enable-disable') . ':') !!}
                <div class="checkbox">                    
                    <label>
                    {!! Form::radio('big_commerce_enable', '1',  $e_commerce_settings['big_commerce_enable'] == 1 ? true : false, 
                        [ 'class' => 'input-iradio', 'onchange' => 'get_input(this.value, "bigcommerce")']); !!} {{ __( 'business.enable' ) }}
                    {!! Form::radio('big_commerce_enable', '0',  $e_commerce_settings['big_commerce_enable'] == 0 ? true : false, 
                        [ 'class' => 'input-iradio', 'onchange' => 'get_input(this.value, "bigcommerce")']); !!} {{ __( 'business.disable' ) }}
                    
                    </label>
                </div>
            </div>
        </div>
        {{-- <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('big_commerce_api_url', __('business.api_url') . ':') !!} 
                {!! Form::text('big_commerce_api_url', $e_commerce_settings['big_commerce_api_url'] ?? null, ['class' => 'form-control', 'placeholder' => 'API URL for access Big Commerce Store API']); !!}
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('big_commerce_api_access_token', __('business.api_access_token') . ':') !!}
                {!! Form::text('big_commerce_api_access_token', $e_commerce_settings['big_commerce_api_access_token'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Access Token for credential Big Commerce Store API']); !!}
            </div>
        </div> --}}
        {{-- <div id="big_commerce_space">&nbsp;</div> --}}
        <div class="col-sm-3" id="location_big_commerce">
            <div class="form-group">
                {!! Form::label('product_locations_big_commerce', __('business.shipping_location') . ':') !!}
                {!! Form::select('product_locations_big_commerce[]', $business_locations, null, ['class' => 'form-control select2', 'id' => 'product_locations_big_commerce']) !!}
            </div>
        </div>
        {{-- <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('big_commerce_api_key', __('business.api_key') . ':') !!} @show_tooltip_question("<img src='/img/BigCommerceCredential.png'}}'/>")
                {!! Form::text('big_commerce_api_key', $e_commerce_settings['big_commerce_api_key'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Key for credential access Big Commerce Store API']); !!} 
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('big_commerce_api_secret', __('business.api_secret') . ':') !!}
                {!! Form::text('big_commerce_api_secret', $e_commerce_settings['big_commerce_api_secret'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Secret for credential access Big Commerce Store API']); !!}
            </div>
        </div> --}}
        <div class="col-sm-8">
            <div class="form-group">
                {!! Form::label('checkmarks_bigcommerce', __('business.sync_items') . ':') !!}
                <div class="checkbox row">
                    <div class="clearfix"></div>
                    <label for="">
                        @if($reference_checkmarks)
                            @foreach ($reference_checkmarks as $k => $item)                                
                                <div class="col-sm-6 mr-2">
                                    @if ($big_commerce_checkbox)   
                                        @php
                                            $checked = '';
                                        @endphp
                                        @foreach ($big_commerce_checkbox as $iw)                                            
                                            @if (in_array($item->reference_column, (array)$iw))                                        
                                                @php
                                                    $checked = 'checked';                                                
                                                @endphp                                            
                                            @endif                                                                                                            
                                        @endforeach                                                                    
                                        <input type="checkbox" name="checkmarks_bigcommerce[]" class="input-checkbox" value="{{ $item->reference_column }}" id="checkmarks_bigcommerce{{$k+1}}" {{$checked}}>{{$item->name}}                             
                                    @else
                                        <input type="checkbox" name="checkmarks_bigcommerce[]" class="input-checkbox" value="{{ $item->reference_column }}" id="checkmarks_bigcommerce{{$k+1}}">{{$item->name}}                                                                 
                                    @endif
                                </div>
                            @endforeach
                        @endif
                    </label>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="col-sm-12 mb-10">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapseFilterBigCommerce"><i class="fa fas fa-cog"></i><i class="fa fa-caret-down"></i>  BigCommerce Sync Settings</a>
        </div>  
        
    </div>
</div>