@extends('pdf.layout') @section('content')

Reporte de Órdenes de Trabajo

@php $statusMap = [ 'pending' => 'PENDIENTE', 'in_process' => 'EN PROCESO', 'completed' => 'COMPLETADA', 'cancelled' => 'CANCELADA' ]; @endphp @foreach($orders as $order) @endforeach
ID Vehículo Cliente Estado Total ($)
#OT-{{ $order->id }}
{{ $order->vehicle->make }} {{ $order->vehicle->model }}
Placa: {{ $order->vehicle->license_plate }}
{{ $order->customer->name }} {{ $statusMap[$order->status] ?? strtoupper($order->status) }} ${{ number_format($order->total_amount, 2) }}
Bs. {{ number_format($order->total_amount * $rate, 2) }}

Métricas de Operación

@php $totalAmount = $orders->sum('total_amount'); @endphp
Total Órdenes: {{ $orders->count() }} Completadas: {{ $orders->where('status', 'completed')->count() }} Facturación Total:
${{ number_format($totalAmount, 2) }}
Bs. {{ number_format($totalAmount * $rate, 2) }}
* Conversión a Bolívares según tasa BCV de Bs. {{ number_format($rate, 2) }}
@endsection