{!! apply_filters('ecommerce_product_variation_form_start', null, $product) !!}
{!! Form::text('sku', old('sku', $product ? $product->sku : null), ['class' => 'next-input', 'id' => 'sku']) !!}
@if (($isVariation && !$product) || ($product && $product->is_variation && !$product->sku))
@endif
{{ get_application_currency()->symbol }}
{{ get_application_currency()->symbol }}
{{ get_application_currency()->symbol }}
{!! Form::helper(trans('plugins/ecommerce::products.form.cost_per_item_helper')) !!}

{!! apply_filters('ecommerce_product_variation_form_middle', null, $product) !!}

@if (! EcommerceHelper::isEnabledSupportDigitalProducts() || (! $product && ! $originalProduct && request()->input('product_type') != Botble\Ecommerce\Enums\ProductTypeEnum::DIGITAL) || ($originalProduct && $originalProduct->isTypePhysical()) || ($product && $product->isTypePhysical()))
{{ ecommerce_weight_unit() }}
{{ ecommerce_width_height_unit() }}
{{ ecommerce_width_height_unit() }}
{{ ecommerce_width_height_unit() }}
@endif @if (EcommerceHelper::isEnabledSupportDigitalProducts() && ((! $product && ! $originalProduct && request()->input('product_type') == Botble\Ecommerce\Enums\ProductTypeEnum::DIGITAL) || ($originalProduct && $originalProduct->isTypeDigital()) || ($product && $product->isTypeDigital())))
generate_license_code : ($originalProduct->generate_license_code ?? 0)))>
@if ($product) @foreach ($product->productFiles as $file) @endforeach @endif
{{ trans('plugins/ecommerce::products.digital_attachments.file_name') }} {{ trans('plugins/ecommerce::products.digital_attachments.file_size') }} {{ trans('core/base::tables.created_at') }}
{!! Form::checkbox('product_files[' . $file->id . ']', 0, true, ['class' => 'd-none']) !!} {!! Form::checkbox('product_files[' . $file->id . ']', $file->id, true, ['class' => 'digital-attachment-checkbox']) !!}
@if ($file->is_external_link) {{ $file->basename ? Str::limit($file->basename, 50) : $file->url }} @else {{ Str::limit($file->basename, 50) }} @endif
{{ $file->file_size ? BaseHelper::humanFileSize($file->file_size) : '-' }} {{ BaseHelper::formatDate($file->created_at) }}
{{ trans('plugins/ecommerce::products.digital_attachments.add') }} | {{ trans('plugins/ecommerce::products.digital_attachments.add_external_link') }}
@if (request()->ajax()) @include('plugins/ecommerce::products.partials.digital-product-file-template') @else @pushOnce('footer') @include('plugins/ecommerce::products.partials.digital-product-file-template') @endpushOnce @endif @endif {!! apply_filters('ecommerce_product_variation_form_end', null, $product) !!}