{{ $company['name'] }}
@if($company['address']){{ $company['address'] }}
@endif @if($company['phone'])Tel: {{ $company['phone'] }}@endif @if($company['email'])
{{ $company['email'] }}@endif
RESPONSABLE INSCRIPTO
Inicio: {{ $settings->start_date ?? '01/01/2020' }}
NOTA de PEDIDO
Nº: NP-{{ str_pad($order->id, 4, '0', STR_PAD_LEFT) }}
Fecha: {{ $order->created_at->format('d/m/Y') }}
Estado: {{ strtoupper($order->status) }}
DATOS DEL CLIENTE - PEDIDO
Cliente:
{{ strtoupper($order->first_name . ' ' . $order->last_name) }}

Domicilio:
{{ strtoupper($order->address) }} @if($order->apartment) {{ strtoupper($order->apartment) }}@endif

Localidad:
{{ strtoupper($order->city) }}

Provincia:
{{ strtoupper($order->state) }}
Email:
{{ $order->email }}

Teléfono:
{{ $order->mobile }}

C.P.:
{{ $order->zip }}

Cond. IVA:
CONSUMIDOR FINAL

@if($order->company)
Empresa:
{{ strtoupper($order->company) }}
@endif
Condición: CONTADO C/CTA CTE @php $totalWeight = $orderItems->sum(function($item) { return ($item->qty ?? 1) * ($item->product->weight ?? 0.5); }); @endphp @if($totalWeight > 0) Peso: {{ number_format($totalWeight, 3) }}kg @endif
🛒 PEDIDO CONFIRMADO - Este documento representa un pedido de compra confirmado y debe ser procesado para entrega.
DETALLE DE PRODUCTOS PEDIDOS
@foreach($orderItems as $item) @php $subtotal = $item->qty * $item->price; $discount = 0; // Los pedidos ya tienen los precios finales $total = $item->total; @endphp @endforeach
CÓDIGO CANT. U DESCRIPCIÓN PRECIO LISTA PRECIO UNIT. DESC. IMPORTE
@if($item->product && $item->product->CO_ARTI) {{ trim($item->product->CO_ARTI) }} @else - @endif {{ number_format($item->qty, 2) }} U {{ strtoupper($item->name) }} {{ number_format($item->price, 2) }} {{ number_format($item->price, 4) }} 0.00 {{ number_format($total, 4) }}
@php // Calcular IVA (21% del subtotal) $ivaBase = $order->subtotal - $order->discount; $iva21 = $ivaBase * 0.21; $totalConIva = $ivaBase + $iva21; $finalTotalWithShipping = $totalConIva + ($order->shipping ?? 0); @endphp
BULTOS {{ $orderItems->count() }}
ITEMS {{ $orderItems->sum('qty') }}
SUBTOTAL {{ number_format($order->subtotal, 2) }}
@if($order->discount > 0)
DESCUENTO {{ number_format($order->discount, 2) }}
@endif
NO GRAVADO {{ number_format($ivaBase, 2) }}
IVA 21% {{ number_format($iva21, 2) }}
IVA 10.5% 0.00
@if($order->shipping > 0)
ENVÍO {{ number_format($order->shipping, 2) }}
@endif
TOTAL {{ number_format($finalTotalWithShipping, 2) }}