{{-- Sweet Works ERP | app/Modules/Manufacturing/Resources/Views/work-centers/index.blade.php | v1.2 | 30/08/2026 --}} {{-- v1.2 — i18n sweep: replace all hardcoded text with __() calls. --}} {{-- v1.1 — Corrección: Work Centers son Plantas. Columnas: Ubicación, Responsable, Turnos, Recursos. --}} {{-- v1.0 — Índice de Centros de Trabajo. --}} @extends('layouts.vertical') @section('content')

{{ __('manufacturing.work_centers.page_title') }}

@can('manufacturing.workcenter.create') {{ __('manufacturing.work_centers.new_btn') }} @endcan
@if(session('success'))
{{ session('success') }}
@endif
{{ __('manufacturing.common.clear') }}
@forelse($workCenters as $wc) @empty @endforelse
{{ __('manufacturing.work_centers.code') }} {{ __('manufacturing.work_centers.plant_name') }} {{ __('manufacturing.work_centers.type') }} {{ __('manufacturing.work_centers.location') }} {{ __('manufacturing.work_centers.manager') }} {{ __('manufacturing.work_centers.shifts') }} {{ __('manufacturing.work_centers.resources_col') }} {{ __('manufacturing.common.status') }} {{ __('manufacturing.common.actions') }}
{{ $wc->code }} {{ $wc->name }} {{ \App\Modules\Manufacturing\Models\MfgWorkCenter::types()[$wc->type] ?? $wc->type }} {{ $wc->location ?? '—' }} {{ $wc->manager ?? '—' }} {{ $wc->shifts_count }} {{ $wc->resources_count ?? '—' }} @if($wc->is_active) {{ __('manufacturing.common.active') }} @else {{ __('manufacturing.common.inactive') }} @endif @can('manufacturing.workcenter.edit')
@csrf
@endcan
{{ __('manufacturing.common.no_records') }}
@if($workCenters->hasPages()) @endif
@endsection