@extends('layouts.app') @section('title','Ordens de serviço') @section('content') @php($statusLabels = ['draft'=>'Rascunho','in_production'=>'Em produção','ready'=>'Pronto para entrega','delivered'=>'Entregue','cancelled'=>'Cancelada'])
| OS | Cliente | Pedido | Previsão | Total | Status | |
|---|---|---|---|---|---|---|
| {{ $order->code }} | {{ $order->customer->name }} | {{ $order->ordered_at->format('d/m/Y') }} | {{ $order->promised_at?->format('d/m/Y') ?? 'Não definida' }} | R$ {{ number_format((float)$order->total_amount,2,',','.') }} | {{ $statusLabels[$order->status] ?? $order->status }} | Abrir |
| Nenhuma ordem de serviço encontrada. | ||||||