logo}")}}" style="max-height: 150px; position: left;">
{{$company->name}}
{{$company->type_identity_document->name}}: {{$company->identification_number}}
Dirección: {{$company->address}}
Correo electronico: {{$company->email}}
Telefono: {{$company->phone}} Régimen: {{$company->type_regime->name}}
Actividad económica: {{$company->economic_activity_code}} Tarifa ICA: {{$company->ica_rate}}
{{mb_strtoupper($document->type_document->name)}}
{{$document->prefix}}{{$document->number}}
{{$document->reference->prefix}}{{$document->reference->number}}
prefix}{$document->number}\nFecFac: ".Carbon\Carbon::parse($document->date_issue)->format('YmdHms')."\nNitFac: {$company->identification_number}\nDocAdq: {$document->client->identification_number}\nValFac: {$document->sale}\nValimp: {$document->total_tax}\nValFacIm: {$document->total}\nCUFE: {$document->cufe}"))}}">
Fecha: {{Carbon\Carbon::parse($document->date_issue)->format('Y-m-d')}} Hora: {{Carbon\Carbon::parse($document->date_issue)->format('H:m:s')}}
Cliente: {{$document->client->name}} {{$typeIdentityDocuments->where('id', $document->client->type_identity_document_id)->first()->name}}: {{$document->client->identification_number}}
Correo electronico: {{$document->client->email}} Dirección: {{$document->client->address}}
@if ($document->observation != null)

Observación: {{$document->observation}}

@else
@endif @foreach($document->detail_documents as $item) @endforeach
CANTIDAD UNIDAD DESCRIPCIÓN P.UNITARIO IMPUESTOS DESCUENTO TOTAL
{{number_format($item->quantity, 2, '.', ',')}} {{$item->item->type_unit->name}} {{$item->item->name}} {{$company->currency->symbol}}{{number_format($item->price, 2, '.', ',')}} {{$company->currency->symbol}}{{number_format($item->total_tax, 2, '.', ',')}} {{$company->currency->symbol}}{{number_format($item->discount, 2, '.', ',')}} {{$company->currency->symbol}}{{number_format($item->total, 2, '.', ',')}}
@foreach ($document->taxes as $tax) @if ($tax->total > 0) @endif @endforeach @foreach ($document->taxes as $tax) @if ($tax->apply) @endif @endforeach
TOTAL VENTA: {{$company->currency->symbol}}{{number_format($document->sale, 2, '.', ',')}}
TOTAL DESCUENTO(-): {{$company->currency->symbol}}{{number_format($document->total_discount, 2, '.', ',')}}
{{$tax->name}}(+): {{$company->currency->symbol}}{{number_format($tax->total, 2, '.', ',')}}
{{$tax->name}}(-): {{$company->currency->symbol}}{{number_format($tax->retention, 2, '.', ',')}}
TOTAL: {{$company->currency->symbol}}{{number_format($document->total, 2, '.', ',')}}