@php use App\Libraries\Money; @endphp
|
{{ $__user->name??'' }} {{ $__user->document??'' }} {{ $__user->address??'' }} {{ $__user->email??'' }} {{ $__user->phone??'' }} |
|
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 }} |
| 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),'') }} |
|