@php $establishment = $document->establishment; $supplier = $document->supplier; $operation_data = $document->operation_data; $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
logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" class="company_logo" style="max-width: 150px;">
|
@else
@endif |
{{ $company->name }}{{ 'RUC '.$company->number }}{{ ($establishment->address !== '-')? $establishment->address : '' }}{{ ($establishment->email !== '-')? $establishment->email : '' }}{{ ($establishment->telephone !== '-')? $establishment->telephone : '' }} |
{{ $document->document_type->description }}{{ $document_number }} |
Vendedor: | {{ $supplier->name }} | Fecha de emisión: | {{ $document->date_of_issue->format('Y-m-d') }} |
{{ $supplier->identity_document_type->description }}: | {{ $supplier->number }} | ||
Dirección: | {{ $supplier->address }} {{ ($supplier->district_id !== '-')? '- '.$supplier->district->description : '' }} {{ ($supplier->province_id !== '-')? '- '.$supplier->province->description : '' }} {{ ($supplier->department_id !== '-')? '- '.$supplier->department->description : '' }} | ||
Tipo de dirección: | {{ $operation_data->address_type->description }} | ||
Moneda: | {{ $document->currency_type->description }} |
Datos de la operación | |||
Dirección: | {{ $operation_data->address }} {{ ($operation_data->district_id !== '-')? '- '.$operation_data->district->description : '' }} {{ ($operation_data->province_id !== '-')? '- '.$operation_data->province->description : '' }} {{ ($operation_data->department_id !== '-')? '- '.$operation_data->department->description : '' }} | ||
Tipo de dirección: | {{ $operation_data->address_type->description }} |
COD. | CANT. | UNIDAD | DESCRIPCIÓN | V.UNIT | P.UNIT | TOTAL |
---|---|---|---|---|---|---|
{{ $row->item->internal_id }} | {{ $row->quantity }} | {{ $row->item->unit_type_id }} | {!! $row->item->description !!} | {{ number_format($row->unit_value, 2) }} | {{ number_format($row->unit_price, 2) }} | {{ number_format($row->total, 2) }} |
OP. INAFECTAS: {{ $document->currency_type->symbol }} | {{ number_format($document->total_unaffected, 2) }} | |||||
OP. EXONERADAS: {{ $document->currency_type->symbol }} | {{ number_format($document->total_exonerated, 2) }} | |||||
OP. GRAVADAS: {{ $document->currency_type->symbol }} | {{ number_format($document->total_taxed, 2) }} | |||||
IGV: {{ $document->currency_type->symbol }} | {{ number_format($document->total_igv, 2) }} | |||||
IMPORTE TOTAL: {{ $document->currency_type->symbol }} | {{ number_format($document->total, 2) }} |
@foreach($document->legends as $row)
Son: {{ $row->value }} {{ $document->currency_type->description }} @endforeach |