@php $establishment = \App\Models\Tenant\Establishment::where('id', $document->establishment_id)->first(); $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; $accounts = \App\Models\Tenant\BankAccount::where('show_in_documents', true)->get(); $logo = "storage/uploads/logos/{$company->logo}"; if ($establishment->logo) { $logo = "{$establishment->logo}"; } @endphp
{{--
_________________________
Aceptante
Representante:
RUC:
|
_________________________
Aceptante
Representante:
RUC:
|
|
{{ $establishment->address !== '-' ? $establishment->address : '' }}
{{ $establishment->district_id !== '-' ? ', ' . $establishment->district->description : '' }}
{{ $establishment->province_id !== '-' ? ', ' . $establishment->province->description : '' }}
{{ $establishment->department_id !== '-' ? '- ' . $establishment->department->description : '' }}
{{ $establishment->email !== '-' ? $establishment->email : '' }}
{{ $establishment->telephone !== '-' ? $establishment->telephone : '' }}
|
NÚMERO | REF. DEL GIRADOR | FECHA DE GIRO | LUGAR DE GIRO | FECHA DE VENCIMIENTO | MONEDA E IMPORTE |
{{ $document->series }}-{{ $document->number }} | {{ $document->customer->number }} | {{ $document->date_of_issue ? $document->date_of_issue->format('d/m/Y') : '-' }} | {{ $establishment->department->description }} | {{ $document->date_of_due->format('d/m/Y') }} | {{ $document->currency_type->symbol }} {{ $document->total }} |
AVAL PERMANENTE: | |
|
|
DOMICILIO: | TELÉFONO: |
|
|
RUC: | FIRMA: |
{{ $company->name }}
|
|
__________________
FIRMA |
__________________
FIRMA |
Representante: RUC: |