PATH:
home
/
lab2454c
/
costbloc.com
/
resources
/
views
/
admin
/
products
/
pieces
@foreach ($variations as $variation) <div class="option-value-rowid ui-sortable-handle attribute-dlt"> <div class="position-relative collapse-header"> <div class="mx-7p form-group border-t mx-25n px-32p bg-F5 collapse-snick"> <div class="row mt-19p"> <div class="col-md-1 p-0-res {{ languageDirection() == 'ltr' ? 'pe-0' : 'ps-0' }}"> <p class="sp-title control-label font-weight-600">#{{ $variation->id }}</p> <input type="hidden" class="variable_post" value="{{ $variation->id }}" name="variable_post_id[{{ $idx }}]"> </div> <div class="col-md-9"> <div class="row"> @foreach ($product->attributes as $key => $attr) @continue($attr['variation'] != 1) <div class="col-md-2 {{ languageDirection() == 'ltr' ? 'ps-0' : 'pe-0' }} pr-10p pb-20p"> <select class="form-control select2" name="attribute_{{ $key }}[{{ $idx }}]"> <option value="0">{{ __('Any') }} {{ $attr['name'] }}</option> @if (!$attr['attribute_id']) @foreach ($attr['value'] as $val) <option {{ isset($variation->attributes['attribute_' . $key]) && $variation->attributes['attribute_' . $key] == $val ? 'selected' : '' }} value="{{ $val }}">{{ $val }}</option> @endforeach @else @if (isset($product->attributeValues[$key])) @foreach ($product->attributeValues[$key] as $val) <option {{ isset($variation->attributes['attribute_' . $key]) && $val->id == $variation->attributes['attribute_' . $key] ? 'selected' : '' }} value="{{ $val->id }}">{{ $val->value }}</option> @endforeach @endif @endif </select> </div> @endforeach </div> </div> </div> </div> <div class="d-flex align-items-center position-absolute {{ languageDirection() == 'ltr' ? 'right-7p' : 'left-2' }} top-30p"> <svg class="cursor-move" width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="16" height="1" fill="#898989"></rect> <rect y="5" width="16" height="1" fill="#898989"></rect> <rect y="10" width="16" height="1" fill="#898989"></rect> </svg> <div data-bs-toggle="collapse" href="#{{ $unid = 'var_' . uniqid() }}"> <span class="toggle-btn cursor-pointer ml-10p d-flex h-20 w-20 align-items-center justify-content-center inactive-sec collapsed"> <svg xmlns="http://www.w3.org/2000/svg" width="7" height="5" viewBox="0 0 7 5" fill="none"> <path d="M3.33579 4.92324L0.159846 1.11968C-0.211416 0.675046 0.105388 -4.81444e-07 0.685319 -5.06793e-07L6.31468 -7.52861e-07C6.89461 -7.7821e-07 7.21142 0.675045 6.84015 1.11968L3.66421 4.92324C3.57875 5.02559 3.42125 5.02559 3.33579 4.92324Z" fill="#2C2C2C"></path> </svg> </span> </div> <form method="post" action="#" accept-charset="UTF-8" id="delete-variation-{{ $uniq = 'vid' . uniqid() }}" class="delete_variation"> @method('DELETE') @csrf <span class="f-11 red-9E ml-10p cursor-pointer" title="{{ __('Delete') }}" class="btn btn-xs btn-danger" type="button" data-id="{{ $uniq }}" data-delete="variation" data-label="Delete" data-bs-toggle="modal" data-bs-target="#confirmDelete" data-title="{{ __('Delete :x', ['x' => __('Variation')]) }}" data-message="{{ __('Are you sure to delete this variation?') }}"> {{ __('Delete') }} </span> </form> </div> </div> <div class="collapse" id="{{ $unid }}"> <div class="form-group row px-7 mt-29p"> <div class="col-md-6 variation-image-container"> <div class="d-flex align-items-center"> <div class="position-relative border u-img-box"> <img class="h-100 w-100 object-fit-contain variation-image-placeholder" src="{{ asset('public/dist/img/not.svg') }}" /> </div> <a href="javascript:void(0)" data-name="meta_image[{{ $idx }}]" data-val="single" class="btn-cancels ml-20p variation-image has-media-manager"> {{ __('Upload Photo') }} </a> </div> </div> <div class="col-md-6"> <div class="d-flex align-items-center"> <label class="sp-title control-label">{{ __('SKU') }}</label> <div class="tooltips {{ languageDirection() == 'ltr' ? 'ms-2' : 'me-2' }} mt-px cursor-pointer"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> <span class="tooltiptexts">{{ __('SKU: Stock Keeping Unit. An unique identifier of a product.') }}</span> </div> </div> <input type="text" placeholder="SKU" class="form-control inputFieldDesign" maxlength="8" name="variable_sku[{{ $idx }}]" value="{{ $variation->sku }}"> </div> </div> <div class="d-flx d-flx-n align-items-center mx-7p border-bottom mt-25p"> <div class="mr-35p"> <div data-bs-toggle="collapse" href="#collapseExampl" class="checkbox checkbox-primary d-inline w-space align-items-center"> <input type="hidden" value="Draft" name="variable_status[{{ $idx }}]"> <input type="checkbox" {{ $variation->status == 'Published' ? 'checked' : '' }} name="variable_status[{{ $idx }}]" value="Published" id="{{ $enabledId = 'ena_' . uniqid() }}"> <label for="{{ $enabledId }}" class="crv sp-title d-flx-n">{{ __('Enabled') }}</label> </div> </div> <div class="mr-35p mt-10-res"> <div class="checkbox checkbox-primary d-inline w-space align-items-center"> <input type="hidden" value="0" name="meta_downloadable[{{ $idx }}]"> <input data-bs-toggle="collapse" href="#{{ $dloadId = 'Down' . uniqid() }}" type="checkbox" {{ $variation->meta_downloadable == '1' ? 'checked' : '' }} name="meta_downloadable[{{ $idx }}]" id="{{ $dloadId }}" value="1"> <label for="{{ $dloadId }}" class="crv sp-title d-flx-n">{{ __('Downloadable') }}</label> </div> </div> <div class="mr-35p mt-10-res"> <div class="checkbox checkbox-primary d-inline w-space align-items-center float-n {{ languageDirection() == 'ltr' ? 'float-right' : 'float-left' }}"> <input type="hidden" value="0" name="meta_virtual[{{ $idx }}]"> <input data-bs-toggle="collapse" href="#{{ $virId = 'Vir' . uniqid() }}" type="checkbox" {{ $variation->meta_virtual == '1' ? 'checked' : '' }} name="meta_virtual[{{ $idx }}]" id="{{ $virId }}" value="1"> <label for="{{ $virId }}" class="crv sp-title d-flx-n">{{ __('Virtual') }}</label> </div> </div> @ifSettings ('manage_stock') <div class="mr-35p mt-10-res"> <div class="checkbox checkbox-primary d-inline w-space align-items-center float-n {{ languageDirection() == 'ltr' ? 'float-right' : 'float-left' }}"> <input type="hidden" name="variable_manage_stocks[{{ $idx }}]" value="0"> <input data-bs-toggle="collapse" {{ $variation->manage_stocks == '1' ? 'checked' : '' }} href="#{{ $stockId = 'stock' . uniqid() }}" type="checkbox" name="variable_manage_stocks[{{ $idx }}]" id="{{ $stockId }}" class="collapsed collapse" value="1"> <label for="{{ $stockId }}" class="crv sp-title d-flx-n">{{ __('Manage stock?') }}</label> </div> </div> @endifSettings @php $b2bId = 'b2b' . uniqid() @endphp @includeIf('b2b::admin.check-b2b-variations') </div> <div class="form-group price_div row px-7 mt-36p"> <div class="col-md-6"> <label for="price" class="sp-title control-label">{{ __('Regular Price') }} ({{ \App\Models\Currency::getDefault()->symbol }})</label> <input type="number" step="any" placeholder="{{ __('Regular Price') }}" class="form-control regular_price h-40" maxlength="8" id="price" name="variable_regular_price[{{ $idx }}]" value="{{ $variation->regular_price }}"> </div> <div class="col-md-6 mt-15-res"> <div class="d-flex justify-content-between"> <label for="price" class="sp-title control-label">{{ __('Sale Price') }} ({{ \App\Models\Currency::getDefault()->symbol }})</label> <div> <span class="m-change fold_p" data-bs-toggle="collapse" href="#{{ $vsid = 'vs_' . uniqid() }}" aria-expanded="false" aria-controls="{{ $vsid }}">{{ __('Schedule') }}</span> <div class="tooltips {{ languageDirection() == 'ltr' ? 'ms-2' : 'me-2' }} mt-4px"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> <span class="tooltiptexts">{{ __('Sale price time duration.') }}</span> </div> </div> </div> <input type="number" step="any" placeholder="{{ __('Sale Price') }}" class="form-control sale_price inputFieldDesign" maxlength="8" id="price" name="variable_sale_price[{{ $idx }}]" value="{{ $variation->sale_price }}"> <div class="collapse date-container" id="{{ $vsid }}"> <div class="row mt-16p"> <div class="col-md-3"> <label for="sale_from" class="sp-title label-title">{{ __('Sale From') }}</label> </div> <div class="col-md-6"> <input type="text" id="sale_from" name="variable_sale_from[{{ $idx }}]" readonly="readonly" class="form-control start_date mt-2p date-ranges-picker" placeholder="{{ __('Sale From') }}" value="{{ $variation->sale_from }}"> </div> </div> <div class="row mt-18p"> <div class="col-md-3"> <label for="sale_to" class="sp-title label-title">{{ __('Sale To') }}</label> </div> <div class="col-md-6"> <input type="text" id="sale_to" name="variable_sale_to[{{ $idx }}]" readonly="readonly" class="form-control end_date mt-2p date-ranges-picker" placeholder="{{ __('Sale To') }}" value="{{ $variation->sale_to }}"> </div> </div> </div> </div> </div> @ifSettings('manage_stock') <div id="{{ $stockId }}" class="form-group row px-7 mt-20p collapse"> <div class="col-md-6"> <div class="d-flex align-items-center"> <label class="sp-title control-label">{{ __('Stock quantity') }}</label> <svg class="{{ languageDirection() == 'ltr' ? 'ms-2' : 'me-2' }} cursor-pointer" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> </div> <input type="text" placeholder="0" class="form-control inputFieldDesign" maxlength="8" name="variable_total_stocks[{{ $idx }}]" value="{{ $variation->total_stocks }}" > </div> <div class="col-md-6"> <div class="d-flex align-items-center"> <label class="sp-title control-label {{ languageDirection() == 'ltr' ? 'pe-2' : 'ps-2' }}">{{ __('Allow backorders?') }}</label> <div class="tooltips {{ languageDirection() == 'ltr' ? 'ms-2' : 'me-2' }} mt-px cursor-pointer"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> <span class="tooltiptexts">{{ __('Allows users to order product even if the stock reaches to 0.') }}</span> </div> </div> <select class="form-control select2" name="meta_backorder[{{ $idx }}]" data-minimum-results-for-search="Infinity"> <option {{ $variation->meta_backorder == '0' ? 'selected' : '' }} value="0"> {{ __('Do not allow') }}</option> <option {{ $variation->meta_backorder == '1' ? 'selected' : '' }} value="1"> {{ __('Allow') }} </option> </select> </div> @ifSettings('stock_threshold') <div class="col-md-12"> <div class="d-flex align-items-center"> <label class="sp-title control-label">{{ __('Low stock threshold') }}</label> <div class="tooltips {{ languageDirection() == 'ltr' ? 'ms-2' : 'me-2' }} mt-px cursor-pointer"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> <span class="tooltiptexts">{{ __('Send email to the vendor of the product if stock reaches to this limit.') }}</span> </div> </div> <input type="text" placeholder="{{ __('Store-wide threshold') }}" class="form-control inputFieldDesign" maxlength="8" name="meta_stock_threshold[{{ $idx }}]" value="{{ $variation->meta_stock_threshold }}"> </div> @endifSettings </div> @endifSettings @includeIf('b2b::admin.b2b-variations-data') <div id="{{ $virId }}" class="form-group row px-7 mt-20p collapse show"> <div class="col-md-6"> <div class="d-flex align-items-center"> <label for="Weight" class="sp-title control-label">{{ __('Weight') }} (@preference('measurement_weight'))</label> <div class="tooltips {{ languageDirection() == 'ltr' ? 'ms-2' : 'me-2' }} mt-px cursor-pointer"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> <span class="tooltiptexts">{{ __('Weight unit is set by admin.') }}</span> </div> </div> <input type="text" placeholder="0" class="form-control positive-float-number inputFieldDesign" maxlength="8" id="Weight" name="meta_weight[{{ $idx }}]" value="{{ $variation->meta_weight }}" oninvalid="this.setCustomValidity('This field is .')"> </div> <div class="col-md-6 mt-10-res"> <div class="d-flex align-items-center"> <label for="Dimensions" class="sp-title control-label">{{ __('Dimensions') }} (LxWxH) (@preference('measurement_dimension'))</label> <div class="tooltips {{ languageDirection() == 'ltr' ? 'ms-2' : 'me-2' }} mt-px cursor-pointer"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> <span class="tooltiptexts">{{ __('Length') }} x {{ __('Witdth') }} x {{ __('Height') }}. {{ __('Dimension unit is set by admin.') }}</span> </div> </div> <div class="row mx-0"> <div class="col-md-3 p-0"> <input type="text" placeholder="{{ __('Length') }}" class="form-control positive-float-number inputFieldDesign" maxlength="8" id="Dimensions" name="meta_dimension[{{ $idx }}][length]" value="{{ array_val($variation->dimension, 'length', '') }}"> </div> <div class="col-md-3 p-0 mt-15-res"> <input type="text" placeholder="{{ __('Width') }}" class="form-control positive-float-number inputFieldDesign" maxlength="8" id="Dimensions" name="meta_dimension[{{ $idx }}][width]" value="{{ array_val($variation->dimension, 'width', '') }}"> </div> <div class="col-md-3 p-0 mt-15-res"> <div class="d-flex align-items-center"> <input type="text" placeholder="{{ __('Height') }}" class="form-control positive-float-number inputFieldDesign" maxlength="8" id="Dimensions" name="meta_dimension[{{ $idx }}][height]" value="{{ array_val($variation->dimension, 'height', '') }}"> </div> </div> </div> </div> <div class="col-md-6"> <div class="d-flex align-items-center"> <label for="Weight" class="sp-title control-label">{{ __('Shipping class') }}</label> </div> <select class="form-control select2clearable sl_common_bx" name="meta_shipping_id[{{ $idx }}]"> @foreach ($shippings as $shiping) <option value="{{ $shiping->slug }}">{{ $shiping->name }}</option> @endforeach </select> </div> </div> @ifSettings('taxes') <div class="form-group row px-7"> <div class="col-md-12"> <div class="d-flex align-items-center"> <label for="tax" class="sp-title control-label">{{ __('Tax class') }}</label> </div> <select class="form-control select2clearable sl_common_bx" name="meta_tax_classes[{{ $idx }}]"> @foreach ($taxes as $taxProduct) <option value="{{ $taxProduct->slug }}">{{ $taxProduct->name }}</option> @endforeach </select> </div> </div> @endifSettings <div class="form-group row px-7 mt-20p"> <div class="col-md-12"> <label class="sp-title control-label">{{ __('Description') }}</label> <textarea class="form-control" placeholder="{{ __('Variable Description') }}" name="variable_description[{{ $idx }}]" rows="2"></textarea> </div> </div> <div id="{{ $dloadId }}" class="mt-28p mx-7p collapse"> <div class="form-group row mt-28p"> <div class="w-14pt"> <span class="sp-title control-label dn-files w-break-n">{{ __('Downloadable files') }}</span> </div> <div class="col-md-9"> <div id="custom-option-value-1"> <div class="table-responsive option_div section-downloadable"> <input type="hidden" name="has_downloadables[{{ $idx }}]" class="empty-download" value="1"> <table class="options table table-bordered t-table"> <thead class="t-heads"> <tr> <th colspan="2" class="label">{{ __('Name') }}</th> <th colspan="5"> {{ __('File URL') }} <div class="tooltips ml-8p mt-px cursor-pointer"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6.66667 10C6.66667 10.3682 6.36819 10.6667 6 10.6667C5.63181 10.6667 5.33333 10.3682 5.33333 10C5.33333 9.63181 5.63181 9.33333 6 9.33333C6.36819 9.33333 6.66667 9.63181 6.66667 10ZM6 1.33333C4.52724 1.33333 3.33333 2.52724 3.33333 4H4.66667C4.66667 3.26362 5.26362 2.66667 6 2.66667H6.06287C6.76453 2.66667 7.33333 3.23547 7.33333 3.93713V4.27924C7.33333 4.62178 7.11414 4.92589 6.78918 5.03421C5.91976 5.32402 5.33333 6.13765 5.33333 7.05409V8.66667H6.66667V7.05409C6.66667 6.71155 6.88586 6.40744 7.21082 6.29912C8.08024 6.00932 8.66667 5.19569 8.66667 4.27924V3.93713C8.66667 2.49909 7.50091 1.33333 6.06287 1.33333H6Z" fill="#898989" /> </svg> <span class="tooltiptexts">{{ __('Do no change the url if you are uploading the product.') }}</span> </div> </th> </tr> </thead> <tbody class="drag_and_drop ui-sortable"> <tr draggable="false" class="ui-sortable-handle downloadable-row attribute-dlt"> <td colspan="2" class="label"> <div class="d-flex align-items-center"> <svg class="mr-10p" width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="16" height="1" fill="#898989"> </rect> <rect y="5" width="16" height="1" fill="#898989"> </rect> <rect y="10" width="16" height="1" fill="#898989"> </rect> </svg> <input type="text" name="meta_downloadable_files[0][0][name]" class="form-control downloadable-name"> </div> </td> <td colspan="2"> <input type="text" name="meta_downloadable_files[0][0][url]" class="form-control downloadable-url"> </td> <td> <div class="position-relative px-11p downloadable-file"> <a class="add-files-button has-media-manager" data-val="single">{{ __('Choose file') }}</a> <svg class="sec-dlt position-absolute top-11p right-n6" width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7.70711 6.29289C8.09763 6.68342 8.09763 7.31658 7.70711 7.70711C7.31658 8.09763 6.68342 8.09763 6.29289 7.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z" fill="#898989"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.70711 0.292893C7.31658 -0.0976311 6.68342 -0.0976311 6.29289 0.292893L0.292893 6.29289C-0.0976315 6.68342 -0.0976315 7.31658 0.292893 7.70711C0.683417 8.09763 1.31658 8.09763 1.70711 7.70711L7.70711 1.70711C8.09763 1.31658 8.09763 0.683417 7.70711 0.292893Z" fill="#898989"></path> </svg> </div> </td> </tr> </tbody> </table> <a class="options-add-two mt-10p w-74p add-downloadables" data-idx="{{ '[' . $idx . ']' }}"> {{ __('Add File') }} </a> </div> </div> </div> </div> <div class="form-group row mt-26p pb-14p"> <div class="col-md-6"> <label class="sp-title">{{ __('Download limit') }}</label> <input type="number" placeholder="0" class="form-control inputFieldDesign" name="meta_download_limit[{{ $idx }}]"> </div> <div class="col-md-6"> <label class="sp-title">{{ __('Download expiry') }}</label> <input type="text" placeholder="0" class="form-control positive-float-number inputFieldDesign" name="meta_download_expiry[{{ $idx }}]"> </div> </div> </div> </div> </div> @php $idx++; @endphp @endforeach
[-] attributes.blade.php
[edit]
[+]
..
[-] all-variation-attribute.blade.php
[edit]
[-] custom-single-attribute.blade.php
[edit]
[-] custom-single-variation.blade.php
[edit]
[-] single-attribute.blade.php
[edit]
[-] default-variation.blade.php
[edit]
[-] variations.blade.php
[edit]