@php($layout = ($embed ?? false) ? 'admin.layouts.embed' : 'admin.layouts.app')
@extends($layout)

@section('title', __('admin/product-config-options.titles_edit'))

@section('content')
    @include('admin.product-config-options.partials.form-edit')
@endsection

@push('scripts')
<script>
    window.routes = window.routes || {};
    window.routes.productConfigOptions = {
        update: '{{ route("admin.product-config-options.update", $productConfigOption->id) }}',
        index: '{{ route("admin.product-config-options.index") }}'
    };
    window.translations = window.translations || {};
    window.currencies = @json(($currencies ?? collect())->map(function($c){ return ['id'=>$c->id,'code'=>$c->code,'is_default'=>$c->is_default ?? false]; })->values());
    window.periods = [1,3,6,12,24,36];
</script>
@vite('resources/js/admin/product-config-options/edit.js')
@endpush
