logo}")}}" style="max-height: 150px; position: left;">
{{$company->name}}
{{$servicecompany->type_document_identification->name}}: {{$servicecompany->identification_number}} - {{$servicecompany->dv}}
Dirección: {{$servicecompany->address}}
Correo electronico: {{$company->email}}
Telefono:{{$servicecompany->phone}} Régimen: {{$servicecompany->type_regime->name}}
Actividad Principal: {{$company->economic_activity_code}}
Impuesto: {{$servicecompany->tax->name}} ICA: {{$company->ica_rate}} /1000
{{strtoupper($document->type_document->name)}}
FE {{$document->prefix}}{{$document->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}"))}}">

DIAN Resolución N° {{ $servicecompany->resolution_model_api->resolution}}. Fecha de expedición {{$servicecompany->resolution_model_api->date_to}}. Númeración del {{$servicecompany->resolution_model_api->from}} al {{$servicecompany->resolution_model_api->to}}. Vigencia: {{$servicecompany->resolution_model_api->vigencia}} MESES Prefijo {{$servicecompany->resolution_model_api->prefix}}.

Fecha: {{Carbon\Carbon::parse($document->date_issue)->format('Y-m-d H:m:s')}} Fecha de vencimiento: {{Carbon\Carbon::parse($document->date_expiration)->format('Y-m-d')}}
Fecha y Hora Expedicion de Validacion: {{$document->response_api_invoice_status_date_valid}}
Cliente: {{$document->client->name}} {{$typeIdentityDocuments->where('id', $document->client->type_identity_document_id)->first()->name}}: {{$document->client->identification_number}} / {{$document->client->dv}}
Correo electronico: {{$document->client->email}} Dirección: {{$document->client->address}}
Regimen: {{$document->client->type_regime->name}} Forma de Pago: {{$document->payment_form->name}}
Medio de Pago: {{$document->payment_method->name}} Plazo: {{$document->plazo}} días

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

@foreach($document->detail_documents as $item) @endforeach
CANTIDAD UNIDAD CODIGO DESCRIPCIÓN P.UNITARIO IMPUESTOS DESCUENTO IVA TOTAL
{{number_format($item->quantity, 2, '.', ',')}} {{$item->item->type_unit->name}} {{$item->item->code}} {{$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->tax->rate, 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, '.', ',')}}