@extends('layouts.app') @section('title', 'Vehículo '.$vehiculo->placa) @section('content') @php $estadosLabels = \App\Models\Orden::estados(); @endphp

Vehículo {{ $vehiculo->placa }}

Inicio · Vehículos · {{ $vehiculo->placa }}
Editar Nueva orden
Órdenes
{{ $stats['total_ordenes'] }}
Historial de servicio
Gasto acumulado
S/ {{ number_format($stats['gasto'], 0) }}
En reparaciones
Último kilometraje
{{ number_format($stats['ultimo_km']) }}
km registrados
Última visita
{{ $stats['ultima_visita'] ? \Illuminate\Support\Carbon::parse($stats['ultima_visita'])->format('d/m/Y') : '—' }}
Ingreso más reciente

Ficha del vehículo

Propietario
{{ $vehiculo->cliente->nombre_completo ?? '—' }}
Placa
{{ $vehiculo->placa }}
Marca
{{ $vehiculo->marca ?? '—' }}
Modelo
{{ $vehiculo->modelo ?? '—' }}
Año
{{ $vehiculo->anio ?? '—' }}
Color
{{ $vehiculo->color ?? '—' }}
Combustible
{{ $vehiculo->combustible }}
Transmisión
{{ $vehiculo->transmision ?? '—' }}
VIN
{{ $vehiculo->vin ?? '—' }}
Motor
{{ $vehiculo->motor ?? '—' }}

Historial de órdenes

{{ $ordenes->count() }} registros
@forelse ($ordenes as $o) @empty @endforelse
OrdenFechaMecánicoEstadoTotal
{{ $o->numero }} {{ optional($o->fecha_ingreso)->format('d/m/Y') }} {{ $o->mecanico->name ?? 'Sin asignar' }} {{ $estadosLabels[$o->estado] ?? $o->estado }} S/ {{ number_format($o->total, 2) }}
Este vehículo aún no tiene órdenes.
@endsection