FECHA DE ENTREGA:
{{ mb_strtoupper($pedido->fecha_entrega->format('d/m/Y h:i A'), 'UTF-8') }}
{{--
{{ mb_strtoupper( $pedido->tipo_entrega === 'domicilio' ? 'DOMICILIO' : 'RECOGE EN TIENDA' , 'UTF-8') }} --}}
@foreach ($pedido->detalles as $detalle)
{{ $detalle->cantidad }}x
{{ $detalle->producto->nombre ?? 'Producto eliminado' }}
@if ($detalle->variantes)
- {{ $detalle->variantes_texto }}
@endif
@if ($detalle->notas_especiales)
{{ $detalle->notas_especiales }}
@endif
${{ number_format($detalle->subtotal, 0, ',', '.') }}
@endforeach
@php
$subtotal = $pedido->detalles->sum('subtotal');
@endphp
Subtotal:
${{ number_format($subtotal, 0, ',', '.') }}
@if ($pedido->valor_domicilio > 0)
Domicilio:
${{ number_format($pedido->valor_domicilio, 0, ',', '.') }}
@endif
@if ($pedido->abono > 0)
Abono:
-${{ number_format($pedido->abono, 0, ',', '.') }}
@endif
NETO A PAGAR:
${{ number_format($pedido->total, 0, ',', '.') }}