{{-- New-Unity ERP | Modules/Products/Resources/Views/products/create.blade.php | v1.9 | 23/07/2026 --}} {{-- v1.9 — text-uppercase reemplazado por uppercase-input (valor real uppercased via JS global). Modelo también marcado. --}} {{-- v1.8 — material_type dinámico heredado del Group (fuente de verdad). Campo readonly con etiqueta descriptiva. Marcas ya filtradas desde el Controller. --}} {{-- v1.7 — Material Type visible pero readonly — asignado automáticamente como TR/MC. --}} {{-- v1.6 — Material Type hardcodeado TR (campo oculto) — cada módulo asigna su tipo. --}} {{-- v1.5 — Agrega Material Type en fila 1; SAT Code reducido a col-2; barcode EAN-13. --}} {{-- v1.1 — Agrega campo SAT Unity (clave de unidad) obligatorio en Product Details. --}} @extends('layouts.vertical') @section('content')
{{-- Page Header --}}

{{ __('products.new-product') }}

{{ __('products.create-product-lead') }} — {{ $group->es_name }} / {{ $category->name }}

{{-- Breadcrumbs --}} {{-- Main Form --}}
{{ __('products.product-information') }}
@csrf {{-- Hidden Fields --}} {{-- material_type viene del servidor (Group→resolveMaterialType) — NO editable por el usuario --}} {{-- ════════════════════════════════════════════════════════════ --}} {{-- Section: Basic Information --}} {{-- ════════════════════════════════════════════════════════════ --}}
{{ __('products.section-description') }}

{{-- Row 1: Product Name | SAT Code | SAT Unity | Material Type --}}
{{ __('products.auto-generated') }}
{{-- Material Type: readonly — heredado automáticamente del Grupo --}}
{{ $materialTypeLabel }}
{{-- Row 2: Group Code | Part Number | Key Name | Product Code | SKU --}}
{{ __('products.group-category-part') }}
{{ __('products.product-code-exists') }}
{{ __('products.sku-exists') }}
{{-- Row 3: Barcode --}}
{{ __('products.using-group-code') }} {{ __('products.barcode-exists') }}
{{-- ════════════════════════════════════════════════════════════ --}} {{-- Section: Product Details --}} {{-- ════════════════════════════════════════════════════════════ --}}
{{ __('products.section-details') }}

{{-- Brand — filtradas según material_type del Grupo --}}
@if($compatibleBrands->isEmpty()) {{ __('products.no-brands-available') }} {{ $materialType }}. {{ __('products.add-compatible-brands') }} @elseif($materialType === 'FG') {{ __('products.own-brands-only') }} @else {{ __('products.filtered-by') }} {{ $materialTypeLabel }} @endif
{{-- Additional Fields 1-2 --}}
{{-- Additional Fields 3-8 --}} @for($i = 3; $i <= 8; $i++)
@endfor
{{-- ════════════════════════════════════════════════════════════ --}} {{-- Section: Descriptions --}} {{-- ════════════════════════════════════════════════════════════ --}}
{{ __('products.section-descriptions') }}

{{ __('products.description-quotations-hint') }}
{{ __('products.store-description-hint') }}
{{-- Form Actions --}}
{{ __('products.cancel') }}
@endsection @section('scripts') @endsection