@if ($mailData['userType'] == 'customer')

¡Gracias por tu pedido!

Tu número de orden es: #{{ $mailData['order']->id }}

@else

¡Has recibido un pedido!

Número de orden: #{{ $mailData['order']->id }}

@endif @php $order = $mailData['order']; $isPickup = empty($order->address) && empty($order->country_id); @endphp @if($isPickup)

Retiro en Local

{{ trim($order->first_name.' '.$order->last_name) }}
@php $branch = getMainBranch(); @endphp @if($branch) Retira en: {{ $branch->name }}
{{ $branch->address }}
@endif Teléfono: {{ $order->mobile }}
Email: {{ $order->email }}
@else

Dirección de Envío

{{ trim($order->first_name.' '.$order->last_name) }}
{{ $order->address }}
{{ $order->city }}, {{ $order->zip }} {{ optional(getCountryInfo($order->country_id))->name }}
Teléfono: {{ $order->mobile }}
Email: {{ $order->email }}
@endif

Productos

@foreach( $mailData['order']->items as $item ) @endforeach
Producto Precio Cant. Total
{{ $item->name }} ${{ number_format($item->price,2) }} {{ $item->qty }} ${{ number_format($item->total,2) }}
Subtotal: ${{ number_format($mailData['order']->subtotal,2) }}
Descuento: {{ !empty($mailData['order']->coupon_code) ? '('.$mailData['order']->coupon_code.')' : ''}} ${{ number_format($mailData['order']->discount,2) }}
Envío: ${{ number_format($mailData['order']->shipping,2) }}
Total: ${{ number_format($mailData['order']->grand_total,2) }}