@include('admin.products.pieces.default-variation')
@if (isset($product) && count($product->getVariationAttributes()) > 0)
{{ __('Add') }}
@else

{{ __('Variation attribute required to create product variations.') }}

@endif

{{ isset($product) ? count($product->variations) : 0 }} {{ __('variations') }} ({{ __('Expand') }} / {{ __('Close') }} )

{{ __("Variations found which don't have price. Empty price variations will not be visible to the customers.") }}

@if (isset($product) && isset($product->variations)) @foreach ($product->variations as $variation) @php $idx = $loop->index; @endphp

#{{ $variation->id }}

@foreach ($product->attributes ?? [] as $key => $attr) @continue($attr['variation'] != 1)
@endforeach
{{ method_field('DELETE') }} @csrf {{ __('Delete') }}
@php $image = $variation->getImagesWithoutDefault(); if (isset($image[0])) { $image = $image[0]; } @endphp
{{ __('SKU: Stock Keeping Unit. An unique identifier of a product.') }}
status == 'Published' ? 'checked' : '' }} name="variable_status[{{ $idx }}]" value="Published" id="{{ $enabledId = 'ena_' . uniqid() }}">
meta_downloadable == '1' ? 'checked' : '' }} name="meta_downloadable[{{ $idx }}]" id="{{ $dloadId }}" class="{{ $variation->meta_downloadable == '1' ? 'collapse show' : 'collapsed collapse' }}" value="1">
isVirtual() ? 'checked' : '' }} class="{{ $variation->isVirtual() ? 'collapse show' : 'collapsed collapse' }}" name="meta_virtual[{{ $idx }}]" id="{{ $virId }}" value="1">
@ifSettings('manage_stock')
manage_stocks == '1' ? 'checked' : '' }} href="#{{ $stockId = 'stock' . uniqid() }}" type="checkbox" name="variable_manage_stocks[{{ $idx }}]" id="{{ $stockId }}" clas="{{ $variation->manage_stocks == '1' ? 'collapse show' : 'collapsed collapse' }}" value="1">
@endifSettings
{{ $variation->isScheduledSale() ? __('Cancel') : __('Schedule') }}
{{ __('Sale price time duration.') }}
@ifSettings('manage_stock')
{{ __('Allows users to order product even if the stock reaches to 0.') }}
@ifSettings('stock_threshold')
{{ __('Send email to the vendor of the product if stock reaches to this limit.') }}
@endifSettings
@endifSettings
{{ __('Weight unit is set by admin.') }}
{{ __('Length') }} x {{ __('Witdth') }} x {{ __('Height') }}. {{ __('Dimension unit is set by admin.') }}
@ifSettings('taxes')
@endifSettings
@php $downloadables = $variation->getDownloadables(); @endphp
{{ __('Downloadable files') }}
@forelse ($downloadables as $downloadable) @continue(!checkDownloadableData($downloadable)) @empty @endforelse
{{ __('Name') }} {{ __('File URL') }}
{{ __('Do no change the url if you are uploading the product.') }}
{{ __('Add File') }}
@endforeach @endif
{{ __('Save Changes') }}