{{-- Sweet Works ERP | app/Modules/Manufacturing/Resources/Views/production-lines/edit.blade.php | v1.0 | 30/08/2026 --}} {{-- v1.0 — Formulario de edición de Línea de Producción. --}} @extends('layouts.vertical') @section('title', __('manufacturing.production_lines.edit') . ' — ' . __('manufacturing.common.module')) @section('content')
@csrf @method('PUT')
{{-- Datos generales --}}
{{ __('manufacturing.production_lines.general') }}
@error('work_center_id')
{{ $message }}
@enderror
@error('code')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
{{-- Capacidad --}}
{{ __('manufacturing.production_lines.capacity') }}
%
{{-- Recursos asignados --}}
{{ __('manufacturing.production_lines.assign_resources') }}

{{ __('manufacturing.production_lines.resources_hint') }}

@foreach($resources as $i => $res) @php $seq = $selectedResources[$res->id] ?? ($i + 1); @endphp @endforeach
{{ __('manufacturing.production_lines.seq') }} {{ __('manufacturing.work_centers.code') }} {{ __('manufacturing.work_centers.name') }} {{ __('manufacturing.production_lines.resource_type') }} {{ __('manufacturing.work_centers.label') }}
id]) ? 'checked' : '' }}> {{ $res->code }} {{ $res->name }} {{ $res->type }} {{ $res->workCenter?->code }}
{{-- Botones --}}
{{ __('manufacturing.common.cancel') }} @can('manufacturing.line.delete') @csrf @endcan
@endsection