@php use App\Enums\Order\OrderItemStatusEnum; use App\Enums\Product\ProductAttachmentModeEnum; use App\Enums\Product\ProductImageFitEnum; use App\Enums\Product\ProductTypeEnum; use App\Enums\Product\ProductVideoTypeEnum; $isAdminMode = $isAdminMode ?? false; $formAction = $formAction ?? (empty($product) ? route('seller.products.store') : route('seller.products.update', ['id' => $product->id])); $indexUrl = $indexUrl ?? route('seller.products.index'); $selectedSellerId = $selectedSellerId ?? ($product->seller_id ?? null); $selectedSellerName = $selectedSellerName ?? ($product->seller?->user?->name ?? ''); $systemSettings = \App\Models\Setting::systemSettings(); $catalogLanguages = $catalogLanguages ?? collect(); $enableAi = $aiTranslationEnabled ?? false; $titleTranslations = !empty($product) ? ($product->getTranslations('title') ?: []) : []; $shortDescriptionTranslations = !empty($product) ? ($product->getTranslations('short_description') ?: []) : []; $descriptionTranslations = !empty($product) ? ($product->getTranslations('description') ?: []) : []; $hasTranslationTargets = $catalogLanguages->contains(fn ($language) => $language->code !== 'en'); $catalogLanguagePayload = $catalogLanguagePayload ?? $catalogLanguages ->map(fn ($language) => [ 'code' => $language->code, 'name' => $language->name, 'direction' => $language->direction ?? 'ltr', 'flag_url' => $language->flag_url ?? null, ]) ->values(); @endphp @isset($product) @php $visibilityEndpoint = $isAdminMode ? route('admin.products.visibility', $product->id) : route('seller.products.visibility', $product->id); @endphp @include('partials._visibility-inspector', ['endpoint' => $visibilityEndpoint]) @endisset
@csrf
@if ($isAdminMode)
{{ __('labels.seller_picker_hint') }}
@endif

Search Category

Browse

{{-- Keep div for jsTree --}}
@if ($enableAi) @endif @if ($enableAi && $hasTranslationTargets) @endif
@if ($catalogLanguages->count() > 1) @endif
@foreach ($catalogLanguages as $language)
code === 'en' ? 'required' : '' }}> @error('title.'.$language->code)
{{ $message }}
@enderror
@error('short_description.'.$language->code)
{{ $message }}
@enderror
@error('description.'.$language->code)
{{ $message }}
@enderror
@endforeach
@php $sectionIndex = 0; @endphp @if (!empty($product) && $product->customProductSections) @foreach ($product->customProductSections as $sec)

{{ __('labels.section') }} #{{ $sectionIndex + 1 }}


{{ __('labels.fields') }}
@php $fieldIndex = 0; @endphp @foreach ($sec->fields ?? [] as $fld)
{{ __('labels.field') }} #{{ $fieldIndex + 1 }}
@php $fieldIndex++; @endphp @endforeach
@php $sectionIndex++; @endphp @endforeach @endif
{{ __('labels.custom_sections_hint') }}
{{ __('labels.select_multiple_tags') }}

@if($isAdminMode ?? false) @endif
{{ __('labels.minutes') }}
Add any additional product information as key/value pairs.
kg
CM
CM
CM
{{-- Scope variant-specific dark-mode styles without affecting other product form cards. --}}

Product Variations

Add attributes and their values to create product variants

Attributes
Product Variants
You can select multiple images at once
By Default Minimum Quantity is 1
Required if Product is returnable
{{ __('labels.select_multiple_tax_groups') }}
{{ __('labels.tax_inclusive_prices_hint') }}

{{ __('labels.store_wise_pricing') }}

{{ __('labels.store_wise_pricing_hint') }}

@if ($enableAi && $hasTranslationTargets) @endif @if ($enableAi) @include('seller.products._ai_modal') @endif