@extends('layouts.page') @section('head') @include('elements.seo', ['title'=>'¡Gracias por tu compra!' ]) @endsection @section('content')

¡Gracias por tu compra!

Tu pedido ha sido recibido y está siendo procesado.

Resumen del Pedido

Pedido #{{ $order->id }}

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, ',', '.') }}
@if($order->user && $order->user->email)

Hemos enviado un correo de confirmación a {{ $order->user->email }} con los detalles de tu pedido.

@endif @if($order->status_id === \App\Models\Order::STATUS_WAITING && $order->scheduled_transmission_date)

Pedido programado

Tu pedido será enviado el {{ \Carbon\Carbon::parse($order->scheduled_transmission_date)->format('d/m/Y') }}.

@endif
@endsection