@php if ($document != null) { $establishment = $document->establishment; $customer = $document->customer; $invoice = $document->invoice; $document_base = ($document->note) ? $document->note : null; //$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); if($document_base) { $affected_document_number = ($document_base->affected_document) ? $document_base->affected_document->series.'-'.str_pad($document_base->affected_document->number, 8, '0', STR_PAD_LEFT) : $document_base->data_affected_document->series.'-'.str_pad($document_base->data_affected_document->number, 8, '0', STR_PAD_LEFT); } else { $affected_document_number = null; } $payments = $document->payments; // $document->load('reference_guides'); if ($document->payments) { $total_payment = $document->payments->sum('payment'); $balance = ($document->total - $total_payment) - $document->payments->sum('change'); } } $accounts = \App\Models\Tenant\BankAccount::all(); $path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); @endphp @if($document != null)
SON: @foreach(array_reverse( (array) $document->legends) as $row) @if ($row->code == "1000") {{ $row->value }} {{ $document->currency_type->description }} @else {{$row->code}}: {{ $row->value }} @endif @endforeach
OBSERVACIONES: @if($document->additional_information) @foreach($document->additional_information as $information) @if ($information) {{ $information }} @endif @endforeach @endif
IMPORTE BRUTO DESCUENTOS TOTAL VALOR VENTA I.G.V. 18% TOTAL PRECIO VENTA PAGO A CUENTA NETO A PAGAR
@if($document->total_taxed > 0) {{ $document->currency_type->symbol }} {{ number_format($document->total_taxed, 2) }} @endif @if($document->total_discount > 0) {{ $document->currency_type->symbol }} {{ number_format($document->total_discount, 2) }} @endif @if($document->total_taxed > 0) {{ $document->currency_type->symbol }} {{ number_format($document->total_taxed, 2) }} @endif {{ $document->currency_type->symbol }} {{ number_format($document->total_igv, 2) }} {{ $document->currency_type->symbol }} {{ number_format($document->total, 2) }} {{ $document->currency_type->symbol }} {{ number_format($document->total, 2) }}
@foreach($accounts as $account) @endforeach
Banco Moneda Código de Cuenta Interbancaria Código de Cuenta
{{$account->bank->description}} {{$account->currency_type->description}} @if($account->cci) {{$account->cci}} @endif {{$account->number}}
@endif
Representación Impresa de {{ isset($document->document_type) ? $document->document_type->description : 'Comprobante Electrónico' }} {{ isset($document->hash) ? 'Código Hash: '.$document->hash : '' }}
Para consultar el comprobante ingresar a {!! url('/buscar') !!}