@include('pdf.quotation.header')

Cliente

@if (!empty($invoice->client->name))

Nombre: {{ $invoice->client->name }}

@endif @if (!empty($invoice->client->phone))

Tel: {{ $invoice->client->phone }}

@endif @if (!empty($invoice->client->cellphone))

Cel: {{ $invoice->client->cellphone }}

@endif @if (!empty($invoice->client->address))

Dirección: {{ $invoice->client->address }}

@endif @if (!empty($invoice->client->email))

Email: {{ $invoice->client->email }}

@endif
{{--

Transporte

@if (!empty($invoice->driver->full_name))

Chofer: {{ $invoice->driver->full_name }}

@endif @if (!empty($invoice->bus->ficha))

Ficha: {{ $invoice->bus->ficha }}

@endif @if (!empty($invoice->bus->matricula))

Matrícula: {{ $invoice->bus->matricula }}

@endif @if (!empty($invoice->bus->modelo))

Modelo: {{ $invoice->bus->modelo }}

@endif @if (!empty($invoice->bus->marca))

Marca: {{ $invoice->bus->marca }}

@endif @if (!empty($invoice->bus->color))

Color: {{ $invoice->bus->color }}

@endif
--}}
{{-- Tabla de Ítems --}} @if ($invoice->client->type == 'company') @endif @php $suma_total = 0; $suma_lp = 0; @endphp @foreach ($invoice->bodies as $item) @php $suma_total += $item->total; $suma_lp += $item->product->lp ?? 0; @endphp @if ($invoice->client->type == 'company') @endif @endforeach @if ($invoice->client->type == 'company') @if ($invoice->exchange_rate > 1) @endif @else @if ($invoice->exchange_rate > 1) @endif @endif
DescripciónLPCantidad Precio Unitario Total
{{ $item->description }}{{ $item->product->lp }}{{ number_format($item->quantity, 0) }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->total, 2) }}
Total LP: {{ number_format($suma_lp) }}
Total General en USD: {{ number_format($suma_total) }}
Total a pagar en {{$invoice->currency}}: {{ number_format($invoice->total) }}
Notas: {{ $invoice->notes }}
Total General: {{ number_format($suma_total) }}
Total a pagar en {{$invoice->currency}}: {{ number_format($invoice->total) }}
Notas: {{ $invoice->notes }}






Entregado por
Recibido por