@extends('layouts.app') @section('title','Costo por Equipo') @section('page-title','Análisis de Costo por Equipo — Mantenimiento') @section('content')
| Equipo | OTs | Preventivo | Correctivo | Total | % del Total | MTTR | Min. Paro |
|---|---|---|---|---|---|---|---|
| {{ $r['equipo']?->nombre ?? '—' }} {{ $r['equipo']?->area ?? '' }} | {{ $r['total_ot'] }} | S/ {{ number_format($r['costo_preventivo'],0) }} | S/ {{ number_format($r['costo_correctivo'],0) }} | S/ {{ number_format($r['costo_total'],0) }} |
|
{{ $r['mttr'] > 0 ? $r['mttr'].' min' : '—' }} | {{ $r['min_paros'] > 0 ? number_format($r['min_paros']).' min' : '—' }} |
| Sin datos en el período seleccionado. | |||||||
| TOTAL | {{ $porEquipo->sum('total_ot') }} | S/ {{ number_format($costoPreventivo,0) }} | S/ {{ number_format($costoCorrectivo,0) }} | S/ {{ number_format($costoTotal,0) }} | 100% | ||