{!! apply_filters('ecommerce_product_variation_form_start', null, $product) !!} @php $currencies = \Botble\Ecommerce\Models\Currency::query()->oldest('order')->get(); $defaultCurrency = get_application_currency(); $productCurrencyCode = old('currency_code', $product?->currency_code ?? $originalProduct?->currency_code ?? $defaultCurrency->title); $selectedCurrency = $currencies->firstWhere('title', $productCurrencyCode) ?? $defaultCurrency; @endphp