{{-- New-Unity ERP | Modules/Products/Resources/Views/products/edit.blade.php | v1.6 | 23/07/2026 --}} {{-- v1.6 — text-uppercase reemplazado por uppercase-input en campos editables (JS global convierte el valor real). --}} {{-- v1.5 — Campo "Número de Parte" muestra product_number en vez de $product->id. --}} {{-- v1.4 — Detecta desincronización de key_name con la categoría al cargar el form. --}} {{-- Banner de aviso con [Update now] — campo key_name readonly y protegido. --}} {{-- v1.3 — Material Type informativo (readonly). v1.2 — material_type. v1.1 — SAT Unity. --}} @extends('layouts.vertical') @section('content')
{{-- Page Header --}}

{{ __('products.edit-product-title') }}

{{ __('products.update-product-info') }}

{{ __('products.cancel') }}
{{-- Breadcrumbs --}} {{-- Banner: key_name desincronizado con la categoría --}} @if($product->key_name !== $product->category?->key_name)
{{ __('products.keyname-out-of-sync') }}
{{ __('products.keyname-category') }} {{ $product->category?->key_name }}  ·  {{ __('products.keyname-this-product') }} {{ $product->key_name }}
@endif {{-- Aviso campos bloqueados --}}
{!! __('products.locked-fields-notice') !!}
{{-- Main Form --}}
{{ __('products.product-information') }}
@csrf @method('PUT') {{-- Section: Basic Information --}}
{{ __('products.section-description') }}

{{ __('products.auto-generated') }}
{{ __('products.field-locked-hint') }}
{{ __('products.cannot-be-modified') }}
{{ __('products.cannot-be-modified') }}
{{-- Barcode con candado --}}
@if(!$product->barcode) @endif @if(!$product->barcode) {!! __('products.barcode-missing-hint') !!} @else {{ __('products.field-locked-hint') }} @endif
{{-- Section: Product Details --}}
{{ __('products.section-details') }}

{{-- Brand con candado --}}
{{ __('products.field-locked-hint') }}
{{-- Family con candado --}}
{{ __('products.field-locked-hint') }}
{{-- Model con candado --}}
{{ __('products.field-locked-hint') }}
{{-- Custom Fields 1-2 con candado --}} @for($i = 1; $i <= 2; $i++)
{{ __('products.field-locked-hint') }}
@endfor
{{-- Custom Fields 3-8 con candado --}}
@for($i = 3; $i <= 8; $i++)
{{ __('products.field-locked-hint') }}
@endfor
{{-- Section: Descriptions --}}
{{ __('products.section-descriptions') }}

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