@php $establishment = $document->establishment; $supplier = $document->supplier; $path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); $document_number = $document->series.'-'.str_pad($document->number, 8, '0', STR_PAD_LEFT); @endphp {{ $document_number }} @if($company->logo) @endif
logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" alt="{{ $company->name }}" class="company_logo" style="max-width: 200px">

{{ $company->name }}

{{ 'RUC '.$company->number }}

{{ ($establishment->address !== '-')? $establishment->address : '' }}
{{ ($establishment->email !== '-')? $establishment->email : '' }}
{{ ($establishment->telephone !== '-')? $establishment->telephone : '' }}

{{ $document->document_type->description }}

{{ $document_number }}

Señor(es): {{ $supplier->name }} Fecha de emisión: {{ $document->date_of_issue->format('d/m/Y') }}
{{ $supplier->identity_document_type->description }}: {{ $supplier->number }} Moneda: {{ $document->currency_type_id }}
Dirección: {{ $supplier->address }}
Régimen de retención: {{ $document->retention_type->description }}
@foreach($document->documents as $row) @endforeach
Tipo
Comprobante
Número
Comprobante
Fecha de
Emisión
Moneda
Comprobante
Total
Comprobante
Tasa % Importe
Retención
Tipo
Cambio
{{ $row->document_type->short }} {{ $row->series }}-{{ $row->number }} {{ $row->date_of_issue->format('d/m/Y') }} {{ $row->currency_type_id }} {{ $row->total_document }} {{ $document->retention_type->percentage }} {{ $row->total_retention }} {{ $row->exchange_rate->factor }}
Totales({{ $document->currency_type->symbol }}) {{ $document->total }} {{ $document->total_retention }}
@if($document->hash) @endif @foreach($document->legends as $row) @endforeach
Código Hash: {{ $document->hash }}
{{ $row->value }}