<div class="pos-tab-content {{$e_commerce_default['woo_commerce_enable'] == 1 ? 'active' : ''}}">
    <div class="row">
        <div class="col-sm-3">
            <div class="form-group">
                {!! Form::label('woo_commerce_enable', __('business.enable-disable') . ':') !!}
                <div class="checkbox">                    
                    <label>
                    {!! Form::radio('woo_commerce_enable', '1',  $e_commerce_settings['woo_commerce_enable'] == 1 ? true : false, 
                        [ 'class' => 'input-iradio', 'onchange' => 'get_input(this.value, "woo_commerce")']); !!} {{ __( 'business.enable' ) }}
                    {!! Form::radio('woo_commerce_enable', '0',  $e_commerce_settings['woo_commerce_enable'] == 0 ? true : false, 
                        [ 'class' => 'input-iradio', 'onchange' => 'get_input(this.value, "woo_commerce")']); !!} {{ __( 'business.disable' ) }}
                    
                    </label>
                </div>
            </div>
        </div>
        {{-- <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('woo_commerce_api_url', __('business.api_url') . ':') !!}
                {!! Form::text('woo_commerce_api_url', $e_commerce_settings['woo_commerce_api_url'] ?? null, ['class' => 'form-control', 'placeholder' => 'API URL for access Woo Commerce Store API']); !!}
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('woo_commerce_api_access_token', __('business.api_access_token') . ':') !!}
                {!! Form::text('woo_commerce_api_access_token', $e_commerce_settings['woo_commerce_api_access_token'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Access Token for credential Woo Commerce Store API']); !!}
            </div>
        </div> --}}
        {{-- <div id="woo_commerce_space">&nbsp;</div> --}}
        <div class="col-sm-3" id="location_woo_commerce">
            <div class="form-group">
                {!! Form::label('product_locations_woo_commerce', __('business.shipping_location') . ':') !!}
                {!! Form::select('product_locations_woo_commerce[]', $business_locations, null, ['class' => 'form-control select2 col-sm-12', 'id' => 'product_locations_woo_commerce']) !!}
            </div>
        </div>
        {{-- <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('woo_commerce_api_key', __('business.api_key') . ':') !!} @show_tooltip_question("<img src='/img/WooCommerceKey.png'}}'/>")
                {!! Form::text('woo_commerce_api_key', $e_commerce_settings['woo_commerce_api_key'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Key for credential access Woo Commerce Store API']); !!}
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('woo_commerce_api_secret', __('business.api_secret') . ':') !!} 
                {!! Form::text('woo_commerce_api_secret', $e_commerce_settings['woo_commerce_api_secret'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Secret for credential access Woo Commerce Store API']); !!}
            </div>
        </div> --}}
        <div class="col-sm-12">
            <div class="form-group">
                {!! Form::label('checkmarks_woocommerce', __('business.sync_items') . ':') !!}
                <div class="checkbox row">
                    <label for="">
                        @if($reference_checkmarks)
                            @foreach ($reference_checkmarks as $k => $item)
                                <div class="col-sm-6 mr-2">
                                    @if ($woo_commerce_checkbox)   
                                        @php
                                            $checked = '';
                                        @endphp
                                        @foreach ($woo_commerce_checkbox as $iw)                                            
                                            @if (in_array($item->reference_column, (array)$iw))                                        
                                                @php
                                                    $checked = 'checked';                                                
                                                @endphp                                            
                                            @endif                                                                                                            
                                        @endforeach
                                        <input type="checkbox" name="checkmarks_woocommerce[]" class="input-checkbox" value="{{ $item->reference_column }}" id="checkmarks_woocommerce{{$k+1}}" {{$checked}}>{{$item->name}}                             
                                    @else
                                        <input type="checkbox" name="checkmarks_woocommerce[]" class="input-checkbox" value="{{ $item->reference_column }}" id="checkmarks_woocommerce{{$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="#collapseFilterWooCommerce"><i class="fa fas fa-cog"></i><i class="fa fa-caret-down"></i>  WooCommerce Sync Settings</a>
        </div>  
        
    </div>
</div>