{{-- New-Unity ERP | Modules/Products/Resources/Views/classification/index.blade.php | v2.1 | 05/08/2026 --}} {{-- v2.1 — BUG B FIX: == en vez de === para comparar IDs (PHP puede retornar strings o ints según driver MySQL). --}} {{-- v2.0 — BUG 1: industria en modal Marca → checkboxes (many-to-many). Modal secundario #newIndustryModal (z-1065). --}} {{-- BUG 2: botón + Código SAT → modal secundario #satCodeModal (z-1065) en lugar de nueva pestaña. --}} {{-- BUG 4: filterBrandsByIndustry() usa industry_ids[] en lugar de industry_name string. --}} {{-- v1.9 — Versión bump confirmación: fix reset() en openGroupModal ya aplicado en v1.8. --}} {{-- v1.8 — BUG FIX: openGroupModal() llamaba reset() DESPUÉS de set #group_type → type quedaba '' → validación 422 silenciosa. --}} {{-- v1.7 — Alta de Línea de Producto inline desde modal de Nueva Marca (secondary modal, AJAX POST). --}} {{-- v1.6 — uppercase-input aplicado en campos de nombre: grupos, marcas, categorías, bundles. Elimina oninput inline de marca. --}} {{-- v1.5 — FIX: editCategory AJAX URL faltaba prefijo /products → retornaba 404 en silencio. + error callback. --}} {{-- v1.4 — Grid de marcas vacío al abrir modal nuevo; editar muestra solo marcas asignadas hasta seleccionar industria --}} {{-- v1.3 — Filtro de industria en modal de grupos: dropdown + renderBrandsGrid() + filterBrandsByIndustry() --}} {{-- v1.2 — Botones con tooltips y labels. Botón Categories en nuevas pestañas. Fix DELETE POST spoofing. --}} @extends('layouts.vertical') @section('content')
{{-- Page Header --}}

{{ __('classification.title') }}

{{ __('classification.subtitle') }}

{{-- Products List button removed - route not yet created --}}
{{-- Breadcrumbs --}} {{-- Tabs --}}
{{-- Products Tab --}}
{{ __('classification.commercial_groups') }}
{{ __('classification.export_groups') }}
{{-- Services Tab --}}
{{ __('classification.service_groups') }}
{{ __('classification.export_groups') }}
{{-- Bundles Tab --}}
{{ __('classification.bundle_groups') }}
{{ __('classification.bundle_prefix_hint') }}
{{-- Raw Material Tab --}}
{{ __('classification.raw_material_groups') }}
{{ __('classification.raw_material_hint') }}
{{-- Finished Goods Tab --}}
{{ __('classification.finished_goods_groups') }}
{{ __('classification.finished_goods_hint') }}
{{-- Bundles Commercial Tab --}}
{{ __('classification.commercial_bundle_groups') }}
{{ __('classification.commercial_bundle_hint') }}
{{-- Bundles Production Tab --}}
{{ __('classification.production_bundle_groups') }}
{{ __('classification.production_bundle_hint') }}
{{-- Modal: Create/Edit Group --}} {{-- Modal: Create Brand (from Group modal) --}} {{-- Modal: New Industry (secondary, z-1065) --}} {{-- Modal: SAT Code quick-create (secondary, z-1065) --}} {{-- Modal: New Product Line (secondary, inside brand creation flow) --}} {{-- Modal: View Categories --}} {{-- Modal: Create/Edit Category --}} {{-- Modal: Import Groups --}} {{-- Modal: Bundle Group --}} {{-- Modal: Bundle (Kit/Set) --}} {{-- Modal: Add Products to Bundle --}} @endsection @section('scripts') @if(!isset($__env->getSections()['jquery_loaded'])) @endif {{-- Modal Delete Group --}} @endsection