@php $establishment = $document->establishment; $configuration = \App\Models\Tenant\Configuration::first(); $configurations = \App\Models\Tenant\Configuration::first(); $company_name = $company->name; $company_owner = null; if ($configurations->trade_name_pdf) { $company_name = $company->trade_name; $company_owner = $company->name; } $establishment__ = \App\Models\Tenant\Establishment::find($document->establishment_id); $logo = $establishment__->logo ?? $company->logo; if ($logo === null && !file_exists(public_path("$logo}"))) { $logo = "{$company->logo}"; } if ($logo) { $logo = "storage/uploads/logos/{$logo}"; $logo = str_replace("storage/uploads/logos/storage/uploads/logos/", "storage/uploads/logos/", $logo); } $customer = $document->customer; $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
|
@endif
{{ $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): | {{ $customer->name }} | Fecha de emisión: | {{ $document->date_of_issue->format('d/m/Y') }} |
{{ $customer->identity_document_type->description }}: | {{ $customer->number }} | Moneda: | {{ $document->currency_type_id }} |
Dirección: | {{ $customer->address }} | ||
Régimen de Percepción: | {{ $document->perception_type->description }} |
Tipo Comprobante |
Número Comprobante |
Fecha de Emisión |
Moneda Comprobante |
Total Comprobante |
Tasa % | Importe Percibido |
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->perception_type->percentage }} | {{ $row->total_perception }} | {{ $row->exchange_rate->factor }} |
totales({{ $document->currency_type->symbol }}) | {{ $document->total }} | {{ $document->total_perception }} |
Código Hash: {{ $document->hash }} |
{{ $row->value }} |