Pedido #{{ str_pad($order->id, 6, '0', STR_PAD_LEFT) }} @if($order->status == 'pending') Pendiente @elseif($order->status == 'shipped') Enviado @elseif($order->status == 'delivered') Entregado @else Cancelado @endif

Fecha de Compra: {{ \Carbon\Carbon::parse($order->created_at)->format('d/m/Y H:i') }}

Datos de Envío

{{ $order->first_name }} {{ $order->last_name }}
@if($order->company) {{ $order->company }}
@endif {{ $order->address }}
@if($order->apartment) {{ $order->apartment }}
@endif {{ $order->city }}, {{ $order->state }} {{ $order->zip }}
{{ $order->countryName }}
Tel: {{ $order->mobile }}
Email: {{ $order->email }}

Datos de Facturación

{{ $order->first_name }} {{ $order->last_name }}
@if($order->company) {{ $order->company }}
@endif {{ $order->address }}
@if($order->apartment) {{ $order->apartment }}
@endif {{ $order->city }}, {{ $order->state }} {{ $order->zip }}
{{ $order->countryName }}
Tel: {{ $order->mobile }}
Email: {{ $order->email }}

Método de Envío

Envío Estándar

Método de Pago

@if($order->payment_method == 'cod') Contra Reembolso @elseif($order->payment_method == 'mercadopago') MercadoPago @else {{ $order->payment_method ?? 'A convenir' }} @endif

@if($order->notes)

Notas del Pedido

{{ $order->notes }}

@endif

Items Comprados

@foreach($orderItems as $item) @endforeach @if($order->discount > 0) @endif
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 }}

{{ $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) }}