Número de pedido
#{{ $order->id }}
Fecha del pedido
{{ $order->created_at->locale('es')->translatedFormat('d \d\e F \d\e Y') }}
@if($order->delivery_method)
Método de envío
{{ \App\Models\Order::deliveryMethodLabel($order->delivery_method) }}
@endif
@if($order->delivery_date)
Entrega estimada
{{ \Carbon\Carbon::parse($order->delivery_date)->locale('es')->translatedFormat('l d \d\e F \d\e Y') }}
@endif
@php
$thankYouShipping = (float) ($order->shipping_quote_amount ?? 0);
$showShippingRow = filled($order->delivery_method);
@endphp
@if($showShippingRow)
Flete
@if($thankYouShipping > 0)
${{ number_format($thankYouShipping, 0, ',', '.') }}
@else
${{ number_format(0, 0, ',', '.') }}
GRATIS
@endif
@endif
@if(($order->retention_total ?? 0) > 0)
Retenciones aplicables ({{ $order->tax_group ?? '—' }})
@if(($order->retention_fuente ?? 0) > 0)
Retención en la fuente
${{ number_format($order->retention_fuente, 0, ',', '.') }}
@endif
@if(($order->retention_iva ?? 0) > 0)
Retención de IVA
${{ number_format($order->retention_iva, 0, ',', '.') }}
@endif
@endif
Total a pagar
${{ number_format($order->totalPayable(), 0, ',', '.') }}