@extends('layouts.admin') @section('content')
Cliente: {{ $order->user->name }} ({{ $order->user->document }})
@endif@if($couponResult['success']) ✓ Total descuento cupón: ${{ number_format($couponResult['total_coupon_discount'] ?? 0, 2) }} @else {{ $couponResult['message'] ?? 'No se aplicaron cupones' }} @endif
| Producto | Cant. | Precio | Tipo desc. | % / Monto |
|---|---|---|---|---|
| {{ $p['name'] }} | {{ $p['quantity'] }} | ${{ number_format($p['price'], 2) }} | {{ $p['discount_type'] ?? 'percentage' }} | @if(($p['discount_type'] ?? '') === 'fixed_amount') ${{ number_format($p['flat_discount_amount'] ?? 0, 2) }}/unidad @else {{ $p['percentage'] ?? 0 }}% @endif |
{{ $xml }}