@php $establishment = $document->establishment; $customer = $document->customer; //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); $left = ($document->series) ? $document->series : $document->prefix; $tittle = $left.'-'.str_pad($document->number, 8, '0', STR_PAD_LEFT); $payments = $document->payments; @endphp
{{--
|
@else
@endif |
{{ $company->name }}{{ ($establishment->trade_address !== '-')? 'Dirección: '.$establishment->trade_address : '' }} {{ ($establishment->district_id !== '-')? ', '.$establishment->district->description : '' }} {{ ($establishment->province_id !== '-')? ', '.$establishment->province->description : '' }} {{ ($establishment->department_id !== '-')? '- '.$establishment->department->description : '' }}{{ ($establishment->email !== '-')? 'Email: ' .$establishment->email : '' }}{{ ($establishment->telephone !== '-')? 'Tél.: '.$establishment->telephone : '' }} |
FACTURA{{ $tittle }}{{ 'NRC: '.$establishment->address }}{{ 'NIT: '.$company->number }} |
Paciente: | {{ $customer->name }} | {{ $customer->identity_document_type->description }}: | {{ $customer->number }} |
Telefono: | {{ $customer->telephone }} | Fecha Emisión | {{ $document->date_of_issue->format('d-m-Y') }} |
Dirección: | {{ $customer->address }} {{ ($customer->district_id !== '-')? ', '.$customer->district->description : '' }} {{ ($customer->province_id !== '-')? ', '.$customer->province->description : '' }} {{ ($customer->department_id !== '-')? '- '.$customer->department->description : '' }} | ||
Estado: | CANCELADO | ||
Estado: | PENDIENTE DE PAGO | ||
OBSERVACION: | {{trim($document->observation)}} |
{{ $guide->document_type_description }} | @else{{ $guide->document_type_id }} | @endif: | {{ $guide->number }} |
CANTIDAD | DESCRIPCIÓN | P. UND | DTO. | TOTAL | |
---|---|---|---|---|---|
@if(((int)$row->quantity != $row->quantity)) {{ $row->quantity }} @else {{ number_format($row->quantity, 0) }} @endif |
{!! $row->item->description !!}
@if (!empty($row->item->presentation))
{!! $row->item->presentation->description !!}
@endif
@if($row->attributes)
@foreach($row->attributes as $attr)
{!! $attr->description !!} : {{ $attr->value }} @endforeach @endif @if($row->discounts) @foreach($row->discounts as $dtos) {{ $dtos->factor * 100 }}% {{ $dtos->description }} @endforeach @endif @if($row->item->is_set == 1) @inject('itemSet', 'App\Services\ItemSetService') {{ join("-", $itemSet->getItemsSet($row->item_id)) }} @endif |
{{ number_format($row->unit_price, 2) }} | {{ number_format($row->total, 2) }} | ||
OP. EXPORTACIÓN: {{ $document->currency_type->symbol }} | {{ number_format($document->total_exportation, 2) }} | ||||
OP. GRATUITAS: {{ $document->currency_type->symbol }} | {{ number_format($document->total_free, 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) }} | ||||
SUBTOTAL: {{ $document->currency_type->symbol }} | {{ number_format($document->total_taxed, 2) }} | ||||
{{(($document->total_prepayment > 0) ? 'ANTICIPO':'DESCUENTO TOTAL')}}: {{ $document->currency_type->symbol }} | {{ number_format($document->total_discount, 2) }} | ||||
IVA: {{ $document->currency_type->symbol }} | {{ number_format($document->total_igv, 2) }} | ||||
TOTAL: {{ $document->currency_type->symbol }} | {{ number_format($document->total, 2) }} |