@if(isset($__user)) @if ($__user->logo) @endif

{{ $__user->name??'' }}

{{ $__user->document??'' }}

{{ $__user->address??'' }}

{{ $__user->email??'' }}

{{ $__user->phone??'' }}

@endif {{-- @if(isset($order->return) && $order->return != null) @endif --}} @if ($order->information) @endif
Editada por devolución N°: {{ $order->return->number_format }}
Cliente: {{ $order->client ? $order->client->name : '' }} @if($order->delivery_note == \App\Models\Order::DELIVERY_NOTE_YES) Nota de entrega: @else Pedido Nº: @endif {{ $order->number_format }} @if($is_copy) (COPIA) @endif
R.I.F.: {{ $order->client ? $order->client->document : '' }} Fecha emisión: {{ $order->created_format }}
@if ($order->client && $order->client->address) Dirección: {{ $order->client ? $order->client->address : '' }} @endif @if ($order->payment_date) Fecha vencim: {{ \Carbon\Carbon::parse($order->payment_date)->format('d/m/Y') }} @endif
Teléfonos: {{ $order->client ? $order->client->phone : '' }}
@if (count($order->paydays) > 0) Fechas de pago programadas: @foreach($order->paydays as $key => $item) {{ \Carbon\Carbon::parse($item->date)->format('d-m-Y') }} @if ($key != (count($order->paydays) - 1)) / @endif @endforeach @endif Condic. Pago: @if (count($order->payments) > 0 || $order->status_payment == \App\Models\Order::TO_PAY) @if ($order->status_payment == \App\Models\Order::TO_PAY) CRÉDITO @else CRÉDITO PAGADO @endif @else CONTADO @endif
@if (count($order->payments) > 0 || $order->status_payment == \App\Models\Order::TO_PAY) Días de crédito: {{ $order->credit_days }} @endif
@if ($order->client && $order->client->comments) Descripción: {{ $order->client ? $order->client->comments : '' }} @endif Información adicional: {{ $order->information }}
{{-- --}} @php $iva_8 = 0; $iva_16 = 0; $iva_31 = 0; @endphp @foreach($order->details as $item) @php if ($item->product->exento == \App\Models\Product::NO_EXENTO) { $iva_product = (($item->subtotal * $item->product->iva_porcentage) / 100); if ($item->product->iva == \App\Models\Product::IVA_DIECISEIZ) { $iva_16 += $iva_product; } else if ($item->product->iva == \App\Models\Product::IVA_OCHO) { $iva_8 += $iva_product; } else if ($item->product->iva == \App\Models\Product::IVA_TREINTAIUNO) { $iva_31 += $iva_product; } } @endphp {{-- --}} @endforeach
Código DescripciónColor TallaCantidad Precio Unitario Desc % Neto
{{ $item->product ? $item->product->code : '' }} {{ $item->product ? $item->product->name : '' }} {{ $item->color ? (', '.$item->color->name) : '' }} {{ $item->size ? (', '.$item->size->name) : '' }}{{ $item->color ? $item->color->name : '-' }} {{ $item->size ? $item->size->name : '-' }}{{ Money::formatQuantity($item->quantity) }} {{ Money::get(Money::convertFrom($item->price,$conversion),'') }} {{ Money::getFormat($item->discount_percentage) }}% {{ $item->deleted_at != null ? ('-'.Money::get(Money::convertFrom($item->total,$conversion),'')) : Money::get(Money::convertFrom($item->total,$conversion),'') }}
@if (count($order->payment_methods) > 0) @if (count($order->payments) > 0 || $order->status_payment == \App\Models\Order::TO_PAY) Pagos iniciales: @else Pagos al contado: @endif @foreach($order->payment_methods as $item)
Pago: {{ Money::get(Money::convertFrom($item->amount,$conversion),$currency_symbol) }} {{ $item->method ? $item->method->name : '' }} {{ \Carbon\Carbon::parse($item->created_at)->format('d/m/Y H:i') }}
@endforeach @endif {{-- @if (count($order->payments) > 0 || $order->status_payment == \App\Models\Order::TO_PAY) @if (count($order->payments) > 0) Pagos por cuotas: @foreach($order->payments as $item)

Pago: {{ Money::get(Money::convertFrom($item->amount,$conversion),$currency_symbol) }}

{{ $item->method ? $item->method->name : '' }}

{{ \Carbon\Carbon::parse($item->created_at)->format('d/m/Y H:i') }}

@endforeach @endif @endif --}} @if($order->status_payment == \App\Models\Order::TO_PAY)

Esta factura cancelada total o parcialmente en moneda distinta a la de curso legal en el país, puede estar sujeta al IGTF del 3 % según normativa legal vigente

@endif

Realizado por: {{ $user_register->name ?? '' }}

{{-- @if(isset($order->return) && $order->return != null)

Nota: Generó nota de crédito N° {{ $order->return->credit_note ? $order->return->credit_note->number_format : '' }}

@endif --}}
@if( !is_null($order->iva )) @if($iva_16 > 0) @endif @if($iva_8 > 0) @endif @if($iva_31 > 0) @endif @endif @if( !is_null($order->igtf )) @if ($currency == Currency::DOLAR) @else @endif @endif @if($order->statusText === 'Rechazado' || $order->statusText === 'Anulado')

{{ $order->statusText }}

Motivo: {{ $order->comments }}

@endif
{{--
--}}