Resumen de la compra

@foreach ($sale->products as $product) @endforeach
{{ Str::upper($product->product->title_small) }}
@if (!empty($product->detail)) {{ $product->detail }}
@endif Cantidad: {{ $product->quantity }}
Precio: S/ {{ number_format($product->total_price, 2) }}

Detalle de la orden

@if ($sale->discount < 0) @endif @if ($sale->delivery > 0) @endif @if ($sale->paymentMethod->id == 1) @endif
Método de pago : {{ $sale->paymentMethod->name }} @if ($sale->paymentMethod->id == 1)
{{ $sale->transaction->transaction_json['dataMap']['BRAND'] }} {{ $sale->transaction->transaction_json['dataMap']['CARD'] }} @endif
Descuento : S/ {{ number_format($sale->discount, 2) }}
Comisión de venta : S/ {{ number_format($sale->delivery, 2) }}
Total @if ($sale->status == '0') a pagar @endif : S/ {{ number_format($sale->total_price, 2) }}
Fecha de operación : {{ $sale->paid_at->format('d/m/Y H:i:s') }}
Número de operación: {{ $sale->purchase_number }}