{{-- resources/views/admin/orders/show.blade.php --}} @extends('admin.layouts.app') @section('title', 'Encomenda #' . $order->id) @php // Ajusta labels aos estados reais do teu orders.status $labels = [ 'processing' => 'Em processamento', 'completed' => 'Concluída', 'cancelled' => 'Cancelada', 'refunded' => 'Reembolsada', ]; $currentStatus = $order->status ?? 'pending'; @endphp @section('content')
| Produto | Preço | Qtd | Total |
|---|---|---|---|
|
ID produto: {{ $ln->product_id }}
|
€ {{ number_format((float)($ln->unit_price ?? 0), 2, ',', '.') }} | {{ (int)($ln->quantity ?? 0) }} | € {{ number_format((float)($ln->line_total ?? 0), 2, ',', '.') }} |
| Sem itens nesta encomenda. | |||