{{-- @if($is_copy)

COPIA

@endif --}}
{{-- @include('pdf.header') --}} @foreach($orders as $key => $order) @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($__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($is_copy) (COPIA) @endif
R.I.F.: {{ $order->client ? $order->client->document : '' }} Fecha emisión: {{ \Carbon\Carbon::parse($order->created_at)->format('d/m/Y') }}
@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,$order->conversion),'') }} {{ Money::getFormat($item->discount_percentage) }}% {{ $item->deleted_at != null ? ('-'.Money::get(Money::convertFrom($item->total,$order->conversion),'')) : Money::get(Money::convertFrom($item->total,$order->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 ($currency == Currency::DOLAR) @else @endif @endif @if ($currency == Currency::DOLAR) @else @if($order->total_bs != null) @else @endif @endif
@if (($key + 1) < count($orders))
@endif @endforeach