<div class="pos-tab-content {{$e_commerce_default['shopify_enable'] == 1 ? 'active' : ''}}">
    <div class="row">
        <div class="col-sm-3">
            <div class="form-group">
                {!! Form::label('shopify_enable', __('business.enable-disable') . ':') !!}
                <div class="checkbox">                    
                    <label>
                    {!! Form::radio('shopify_enable', '1',  $e_commerce_settings['shopify_enable'] == 1 ? true : false, 
                        [ 'class' => 'input-iradio', 'onchange' => 'get_input(this.value, "shopify")']); !!} {{ __( 'business.enable' ) }}
                    {!! Form::radio('shopify_enable', '0',  $e_commerce_settings['shopify_enable'] == 0 ? true : false, 
                        [ 'class' => 'input-iradio', 'onchange' => 'get_input(this.value, "shopify")']); !!} {{ __( 'business.disable' ) }}
                    
                    </label>
                </div>
            </div>
        </div>
        {{-- <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('shopify_api_url', __('business.api_url') . ':') !!}
                {!! Form::text('shopify_api_url', $e_commerce_settings['shopify_api_url'] ?? null, ['class' => 'form-control', 'placeholder' => 'API URL for access Shopify Store API']); !!}
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('shopify_api_access_token', __('business.api_access_token') . ':') !!}
                {!! Form::text('shopify_api_access_token', $e_commerce_settings['shopify_api_access_token'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Access Token for credential Shopify Store API']); !!}
            </div>
        </div> --}}
        {{-- <div id="shopify_space"></div>          --}}        
        <div class="col-sm-3" id="location_shopify">
            <div class="form-group">
                {!! Form::label('product_locations_shopify', __('business.shipping_location') . ':') !!}
                {!! Form::select('product_locations_shopify[]', $business_locations, null, ['class' => 'form-control select2', 'id' => 'product_locations_shopify']) !!}
            </div>
        </div>
        {{-- <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('shopify_api_key', __('business.api_key') . ':') !!}
                {!! Form::text('shopify_api_key', $e_commerce_settings['shopify_api_key'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Key for credential access Shopify Store API']); !!}
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                {!! Form::label('shopify_api_secret', __('business.api_secret') . ':') !!}
                {!! Form::text('shopify_api_secret', $e_commerce_settings['shopify_api_secret'] ?? null, ['class' => 'form-control', 'placeholder' => 'API Secret for credential access Shopify Store API']); !!}
            </div>
        </div> --}}
        <div class="col-sm-12">
            <div class="form-group">
                {!! Form::label('checkmarks_shopify', __('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 ($shopify_checkbox)   
                                        @php
                                            $checked = '';
                                        @endphp
                                        @foreach ($shopify_checkbox as $iw)                                            
                                            @if (in_array($item->reference_column, (array)$iw))                                        
                                                @php
                                                    $checked = 'checked';                                                
                                                @endphp                                            
                                            @endif                                                                                                            
                                        @endforeach                                                                          
                                        <input type="checkbox" name="checkmarks_shopify[]" class="input-checkbox" value="{{ $item->reference_column }}" id="checkmarks_shopify{{$k+1}}" {{$checked}}>{{$item->name}}                             
                                    @else
                                        <input type="checkbox" name="checkmarks_shopify[]" class="input-checkbox" value="{{ $item->reference_column }}" id="checkmarks_shopify{{$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="#collapseFilterShopify"><i class="fa fas fa-cog"></i><i class="fa fa-caret-down"></i>  Shopify Sync Settings</a>
        </div>          
    </div>
</div>