@php
$currencies = \Botble\Ecommerce\Models\Currency::query()->oldest('order')->get();
$defaultCurrency = get_application_currency();
$productCurrencyCode = old('currency_code', $product?->currency_code ?? $defaultCurrency->title);
$selectedCurrency = $currencies->firstWhere('title', $productCurrencyCode) ?? $defaultCurrency;
if (is_in_admin()) {
$showCurrencySelector = EcommerceHelper::isEnabledProductCurrencySelection();
} else {
$showCurrencySelector = EcommerceHelper::isEnabledProductCurrencySelection()
&& \Botble\Marketplace\Facades\MarketplaceHelper::allowVendorManageProductCurrency();
}
@endphp
@if ($showCurrencySelector)
{{ trans('plugins/ecommerce::products.form.currency_for_variations_hint') }}
@endif
{!! $productVariationTable->renderTable() !!}
@include('plugins/ecommerce::products.partials.attribute-sets', compact('productAttributeSets'))
{{ trans('core/base::base.close') }}
{{ trans('plugins/ecommerce::products.save_changes') }}
@push('footer')
{{ trans('core/base::base.close') }}
{{ trans('plugins/ecommerce::products.save_changes') }}
{{ trans('core/base::base.close') }}
{{ trans('plugins/ecommerce::products.save_changes') }}
{{ trans('plugins/ecommerce::products.select_attributes') }}
@foreach($productAttributeSets as $productAttributeSet)
@continue(! $productAttributeSet->is_selected)
{{ $productAttributeSet->title }}
@endforeach
{{ trans('core/base::base.close') }}
{{ trans('plugins/ecommerce::products.continue') }}
@endpush