Fecha de Compra: {{ \Carbon\Carbon::parse($order->created_at)->format('d/m/Y H:i') }}
Envío Estándar
@if($order->payment_method == 'cod') Contra Reembolso @elseif($order->payment_method == 'mercadopago') MercadoPago @else {{ $order->payment_method ?? 'A convenir' }} @endif
{{ $order->notes }}
| Imagen | Descripción | Código | Precio | Cantidad | Subtotal |
|---|---|---|---|---|---|
|
@php
$imagePath = url('uploads/product/no_image.png'); // Default
if($item->product && $item->product->stock_images && $item->product->stock_images->first()) {
$imageFile = $item->product->stock_images->first()->image;
$fullPath = public_path('uploads/product/small/' . $imageFile);
if(file_exists($fullPath)) {
$imagePath = url('uploads/product/small/' . $imageFile);
}
}
@endphp
|
{{ $item->name }}@if($item->size || $item->color) @if($item->size) Talla: {{ $item->size }} @endif @if($item->size && $item->color) | @endif @if($item->color) Color: {{ $item->color }} @endif @endif |
#{{ $item->product_id ?? '-' }} | $ {{ number_format($item->price, 2) }} | {{ $item->qty }} | $ {{ number_format($item->total, 2) }} |
| Subtotal | $ {{ number_format($order->subtotal, 2) }} | ||||
| Descuento @if($order->coupon_code)({{ $order->coupon_code }})@endif | -$ {{ number_format($order->discount, 2) }} | ||||
| Envío | $ {{ number_format($order->shipping, 2) }} | ||||
| Total General | $ {{ number_format($order->grand_total, 2) }} | ||||