{{-- ── Header ─────────────────────────────────────────────── --}}
{{-- ── Equipment ───────────────────────────────────────────── --}}
Equipo
Código equipo
{{ $order->equipment->code ?? '—' }}
Nombre / descripción
{{ $order->equipment->name ?? '—' }}
Ubicación
{{ $order->equipment->location ?? '—' }}
Categoría
{{ $order->equipment->category ?? '—' }}
Serie
{{ $order->equipment->serial_number ?? '—' }}
{{-- ── Work description ────────────────────────────────────── --}}
Descripción del trabajo
Título
{{ $order->title }}
@if($order->description)
Descripción
{{ $order->description }}
@endif
@if($order->failure_description)
Falla reportada
{{ $order->failure_description }}
@endif
@if($order->failure_cause)
Causa de falla
{{ $order->failure_cause }}
@endif
{{-- ── Execution ───────────────────────────────────────────── --}}
Ejecución
Solicitado por
{{ $order->requested_by ?: '—' }}
Asignado a
{{ $order->assigned_to ?: '—' }}
Plan PM vinculado
{{ $order->maintenancePlan->name ?? '—' }}
Inicio real
{{ $order->actual_start?->format('d/m/Y H:i') ?? '—' }}
Fin real
{{ $order->actual_end?->format('d/m/Y H:i') ?? '—' }}
H. parada · H. mano obra
{{ $order->downtime_hours }} h · {{ $order->labor_hours }} h
{{-- ── Parts used ──────────────────────────────────────────── --}}
@if($order->parts->count())
Repuestos utilizados
| # |
Código |
Descripción |
Unidad |
Cantidad |
Costo unit. |
Total |
@foreach($order->parts as $i => $line)
| {{ $i + 1 }} |
{{ $line->sparePart->code ?? '—' }} |
{{ $line->sparePart->name ?? '—' }} |
{{ $line->sparePart->unit_of_measure ?? '' }} |
{{ number_format($line->quantity_used, 2) }} |
${{ number_format($line->unit_cost, 4) }} |
${{ number_format($line->total_cost, 2) }} |
@endforeach
@endif
{{-- ── Costs summary ───────────────────────────────────────── --}}
M. de obra
${{ number_format($order->labor_cost, 2) }}
Repuestos
${{ number_format($order->parts_cost ?? 0, 2) }}
COSTO TOTAL
${{ number_format($order->total_cost ?? 0, 2) }}
{{-- ── Resolution notes ────────────────────────────────────── --}}
@if($order->resolution_notes)
Notas de resolución
{{ $order->resolution_notes }}
@else
Notas de resolución / trabajo realizado
@endif
{{-- ── Signatures ──────────────────────────────────────────── --}}
Ejecutado por: {{ $order->assigned_to ?: '_______________' }}
Revisado por: _______________
Fecha cierre: {{ $order->actual_end?->format('d/m/Y') ?? '___/___/______' }}
{{-- ── Print button (hidden on print) ────────────────────────── --}}