@php use App\Libraries\Money; @endphp Pedido {{ $order->number_format }}
@if(isset($__user))

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

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

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

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

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

@endif @if($order->bill_number || (isset($order->order_bill) && $order->order_bill->bill_number)) @endif @if ($order->information) @endif
N° Factura: {{ $order->bill_number_format ?? ($order->order_bill->bill_number ?? '') }}
N° de control/factura: {{ $order->control_number ?? ($order->order_bill->control_number ?? '') }}
Cliente: {{ $order->client ? $order->client->name : '' }} @if(isset($__user) && ($__user->admin_id == 734 || $__user->id == 734)) Orden de Entrega: {{ $order->number_format }} @else @if($order->delivery_note == \App\Models\Order::DELIVERY_NOTE_YES) Nota de entrega: @else Pedido Nº: @endif {{ $order->number_format }} @endif @if(isset($is_copy) && $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ón Cantidad Precio Unitario Desc % Neto
{{ $item->product ? $item->product->code : '' }} {{ $item->product ? $item->product->name : '' }} ({{$item->product->iva_txt}}) {{ $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( !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 (isset($currency) && $currency == Money::DOLAR) @else @endif @endif @if (isset($currency) && $currency == Money::DOLAR) @else @if($order->total_bs != null) @else @endif @endif