@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
{{--
FACTURA |
{{ $tittle }} |
{{ 'NRC: '.$establishment->address }}{{ 'NIT: '.$company->number }} |
|
@else
{{--![]() |
@endif
{{ $company->name }}@isset($establishment->trade_address){{ ($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 : '' }}@endisset{{ ($establishment->telephone !== '-')? 'Tél.: '.$establishment->telephone : '' }}{{ ($establishment->email !== '-')? 'Email: '.$establishment->email : '' }} |
CLIENTE | : | {{ $customer->name }} | |||
FECHA EMISIÓN | : | {{ $document->date_of_issue->format('d-m-Y')}} | TELEFONO | : | {{ $customer->telephone }} |
{{ $customer->identity_document_type->description }} | : | {{$customer->number}} | |||
DIRECCIÓN: | : | {{ $customer->address }} {{ ($customer->district_id !== '-')? ', '.$customer->district->description : '' }} {{-- {{ ($customer->province_id !== '-')? ', '.$customer->province->description : '' }} --}} {{ ($customer->department_id !== '-')? '- '.$customer->department->description : '' }} |
{{ $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 |
{{ number_format($row->unit_price, 2) }} | @if($row->discounts) @php $total_discount_line = 0; foreach ($row->discounts as $disto) { $total_discount_line = $total_discount_line + $disto->amount; } @endphp {{ number_format($total_discount_line, 2) }} @else 0 @endif | {{ number_format($row->total, 2) }} | |
SUB TOTAL: {{ $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 VENTA: {{ $document->currency_type->symbol }} | {{ number_format($document->total, 2) }} |