@php $establishment = $document->establishment; $customer = $document->customer; $paymentForm = $document->payment_form; $tittle = $document->prefix.'-'.str_pad($document->id, 8, '0', STR_PAD_LEFT); @endphp

REMISIÓN No


{{ $document->number_full }}


Fecha Emision: {{ $document->date_of_issue->format('Y-m-d') }}


{{$company->name}}
{{$establishment->description}}
NIT: {{$company->identification_number}} - {{$company->type_regime->name}} Tipo Documento ID: {{$company->type_identity_document->name}}
TARIFA ICA: {{$company->ica_rate}}% @if($company->economic_activity_code) ACTIVIDAD ECONOMICA: {{$company->economic_activity_code}}
@else
@endif {{$establishment->address != '-' ? $establishment->address : $company->address}} - {{$establishment->city->name ?? ''}} - {{$establishment->department->name ?? ''}} - {{$establishment->country->name ?? ''}} Telefono - {{$establishment->telephone}}
E-mail: {{$establishment->email}}
@if ($company->logo) logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" alt="{{ $company->name }}" class="company_logo" style="max-width: 200px"> @endif
CC o NIT: {{$customer->number}}-{{$customer->dv}}
Cliente: {{$customer->name}}
Regimen: {{$customer->type_regime->name}}
Dirección: {{$customer->address}}
Ciudad: {{$customer->city ? $customer->city->name : ''}} {{$customer->country ? ' - '.$customer->country->name : ''}}
Telefono: {{$customer->telephone}}
Email: {{$customer->email}}
@if($document->time_days_credit) @endif
Forma de Pago: {{$paymentForm->name}}
Medio de Pago: {{$document->payment_method->name}}
Plazo Para Pagar: {{$document->time_days_credit}} Dias

@foreach($document->items as $row) @endforeach
# Código Descripcion Cantidad UM Val. Unit IVA/IC Dcto % Val. Item
{{ $loop->iteration }} {{$row->item->internal_id}} {{$row->item->name}} @if (!empty($row->item->presentation)) {!!$row->item->presentation->description!!} @endif {{number_format($row->quantity, 2)}} {{ $row->item->unit_type->name }} {{number_format($row->unit_price, 2)}} {{number_format($row->total_tax / $row->quantity, 2)}} {{number_format($row->discount, 2)}} {{number_format(($row->discount * 100) / $row->total, 2)}} {{number_format($row->total, 2)}}

Totales
Concepto Valor
Nro Lineas: {{$document->items->count()}}
Base: {{number_format($document->sale, 2)}}
Impuestos: {{number_format($document->total_tax, 2)}}
Descuentos: {{number_format($document->total_discount, 2)}}
Total Factura: {{number_format($document->total, 2)}}

OBSERVACIONES:


{{$document->observation }}

INFORME EL PAGO AL TELEFONO {{$establishment->telephone}} o al e-mail {{$establishment->email}}