@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;
$invoice = $document->invoice;
$document_number = $document->series.'-'.str_pad($document->number, 8, '0', STR_PAD_LEFT);
@endphp
{{ $company->name }} |
{{ $establishment->address }} |
{{ strtoupper($establishment->department->description).'-'.
strtoupper($establishment->province->description).'-'.
strtoupper($establishment->district->description) }} |
@if($establishment->telephone)
{{ $establishment->telephone }} |
@endif
RUC {{ $company->number }} |
{{ $document->document_type->description }} |
{{ $document_number }} |
|
F.EMISIÓN |
: |
{{ $document->date_of_issue->format('d/m/Y') }} |
{{ $customer->identity_document_type->description }} |
: |
{{ $customer->number }} |
Cliente |
: |
{{ $customer->name }} |
@if ($customer->address && $customer->address !== '' && $customer->address !== '-')
Dirección |
: |
{{ $customer->address }}
{{ strtoupper($customer->department->description).'-'.
strtoupper($customer->province->description).'-'.
strtoupper($customer->district->description) }}
|
@endif
|
Cant. |
Descripción |
P.U. |
DSCTO. |
Total |
@foreach($document->items as $index => $row)
{{ round($row->quantity, 0) }} |
{{ $row->item->description }}
@if($row->item->is_set == 1)
@inject('itemSet', 'App\Services\ItemSetService')
@foreach ($itemSet->getItemsSet($row->item_id) as $item)
{{$item}}
@endforeach
@endif
|
{{ number_format($row->unit_price, 2) }} |
@if($row->discounts)
@foreach($row->discounts as $dscto)
{{ $dscto->factor * 100 }}%
@endforeach
@else
0
@endif
|
{{ $row->total }} |
@endforeach
@if ($document->total_exonerated > 0)
EXONERADA |
|
{{ $document->total_exonerated }} |
@endif
@if ($document->total_unaffected > 0)
INAFECTA |
|
{{ $document->total_unaffected }} |
@endif
@if ($document->total_taxed > 0)
GRAVADA |
|
{{ $document->total_taxed }} |
@endif
@if ($document->total_free > 0)
GRATUITA |
|
{{ $document->total_free }} |
@endif
IGV |
|
{{ $document->total_igv }} |
@if ($document->total_charge > 0)
RECARGO(10%) |
|
{{ $document->total_charge }} |
@endif
Total |
|
{{ $document->total }} |
|
@if ($document->terms_condition)
Términos y condiciones del servicio
{!! $document->terms_condition !!}
|
@endif
@foreach($document->legends as $row)
Son: {{ $row->value }} {{ $document->currency_type->description }}
@endforeach
|
Representación impresa de la {{ $document->document_type->description }} |
@if($company->resolution)
Autorizado mediante Resolución de Intendencia |
No. {{ $company->resolution }} |
@endif
Representación impresa del Comprobante de Pago Electrónico. Esta puede ser consultada en {{ $company->url_cpe }} |
Hash: {{ $document->hash }} |
 |
|