{{-- Sweet Works ERP | app/Modules/Manufacturing/Resources/Views/resources/show.blade.php | v1.1 | 30/08/2026 --}} {{-- v1.1 — i18n sweep: replace all hardcoded text with __() calls. --}} {{-- v1.0 — Detalle de Recurso (Máquina/Línea/Equipo). --}} @extends('layouts.vertical') @section('content')

{{ $resource->code }} — {{ $resource->name }}

@can('manufacturing.resource.edit') {{ __('manufacturing.common.edit') }}
@csrf
@endcan {{ __('manufacturing.common.back') }}
@if(session('success'))
{{ session('success') }}
@endif
{{-- Datos del recurso --}}
{{ __('manufacturing.resources.card_data') }} @if($resource->is_active) {{ __('manufacturing.common.active') }} @else {{ __('manufacturing.common.inactive') }} @endif
{{ __('manufacturing.work_centers.code') }}
{{ $resource->code }}
{{ __('manufacturing.work_centers.name') }}
{{ $resource->name }}
{{ __('manufacturing.work_centers.type') }}
{{ \App\Modules\Manufacturing\Models\MfgResource::types()[$resource->type] ?? $resource->type }}
{{ __('manufacturing.resources.plant') }}
{{ $resource->workCenter->code }} — {{ $resource->workCenter->name }}

{{ __('manufacturing.resources.capacity_section') }}
{{ __('manufacturing.resources.cap_hour_col') }}
{{ number_format($resource->capacity_per_hour, 0) }} pzas/h
{{ __('manufacturing.work_centers.efficiency') }}
{{ $resource->efficiency_percent }}%
{{ __('manufacturing.work_centers.hours_shift') }}
{{ $resource->hours_per_shift }} h
{{ __('manufacturing.work_centers.shifts_day') }}
{{ $resource->shifts_per_day }}
{{ __('manufacturing.work_centers.setup_time') }}
{{ $resource->setup_time_minutes }} min
{{ __('manufacturing.resources.eff_shift_col') }}
{{ number_format($resource->effectiveCapacityPerShift, 0) }} pzas
@if($resource->description)

{{ $resource->description }}

@endif
{{-- Operaciones de routing donde se usa este recurso --}}
{{ __('manufacturing.resources.routing_ops') }} {{ $resource->routingOperations->count() }}
@forelse($resource->routingOperations as $op) @empty @endforelse
{{ __('manufacturing.resources.routing') }} {{ __('manufacturing.resources.op_number') }} {{ __('manufacturing.resources.op_name') }} {{ __('manufacturing.resources.cycle_time') }} {{ __('manufacturing.work_centers.setup_time') }}
{{ $op->routing->code }} {{ $op->operation_number }} {{ $op->name }} {{ number_format($op->cycle_time_minutes, 2) }} {{ number_format($op->setup_time_minutes, 0) }}
{{ __('manufacturing.resources.no_ops') }}
@endsection