@extends('layouts.admin') @section('content')

Factura Electrónica: {{ $factura->numero_factura }}

RIDE - Representación Impresa de Documento Electrónico

Imprimir RIDE PDF Descargar XML @if($factura->estado !== 'ANULADA')
@csrf
@endif Volver
@if($factura->estado === 'AUTORIZADA') @elseif($factura->estado === 'BORRADOR') @elseif($factura->estado === 'ANULADA') @endif
@if($clinica && $clinica->logo) Logo Clínica @else
{{ $config->razon_social }}
@endif
{{ $config->razon_social }}
@if($config->nombre_comercial)

{{ $config->nombre_comercial }}

@endif
Matriz: {{ $config->dir_matriz }}
Sucursal / Establecimiento: {{ $config->dir_establecimiento ?: $config->dir_matriz }}
Obligado a llevar contabilidad: {{ $config->obligado_contabilidad }}
@if($config->contribuyente_especial)
Contribuyente Especial N°: {{ $config->contribuyente_especial }}
@endif
Régimen Tributario: {{ str_replace('_', ' ', $config->regimen) }}
R.U.C.:
{{ $config->ruc }}

FACTURA

No. {{ $factura->numero_factura }}
NÚMERO DE AUTORIZACIÓN:
{{ $factura->numero_autorizacion ?: 'PENDIENTE DE AUTORIZACIÓN' }}
FECHA AUTORIZACIÓN:
{{ $factura->fecha_autorizacion ? $factura->fecha_autorizacion->format('d/m/Y H:i:s') : 'N/A' }}
AMBIENTE:
{{ $factura->ambiente == '1' ? 'PRUEBAS' : 'PRODUCCIÓN' }}
EMISIÓN:
NORMAL
ESTADO SRI:
{!! $factura->estado_badge !!}
CLAVE DE ACCESO:
{!! $barcodeSvg !!}
{{ $factura->clave_acceso }}
Razón Social / Nombres y Apellidos:
{{ $factura->razon_social_comprador }}
Identificación ({{ $factura->tipo_identificacion_texto }}):
{{ $factura->identificacion_comprador }}
Fecha de Emisión:
{{ $factura->fecha_emision->format('d/m/Y') }}
Dirección:
{{ $factura->direccion_comprador ?: 'S/N' }}
Teléfono:
{{ $factura->telefono_comprador ?: 'N/A' }}
@if($factura->email_comprador)
Correo Electrónico: {{ $factura->email_comprador }}
@endif @if($factura->paciente) @endif
@foreach($factura->detalles as $detalle) @endforeach
Cod. Principal Cant. Descripción Precio Unitario Descuento Precio Total
{{ $detalle->codigo_principal }} {{ number_format($detalle->cantidad, 2) }} {{ $detalle->descripcion }} @if($detalle->aplica_iva) IVA {{ number_format($detalle->porcentaje_iva, 0) }}% @else Tarifa 0% @endif ${{ number_format($detalle->precio_unitario, 2) }} ${{ number_format($detalle->descuento, 2) }} ${{ number_format($detalle->precio_total_sin_impuesto, 2) }}
Forma de Pago
Forma de Pago Total Plazo Tiempo
{{ $factura->forma_pago_texto }} ${{ number_format($factura->importe_total, 2) }} {{ $factura->plazo ?: '0' }} {{ $factura->unidad_tiempo ?: 'Días' }}
Información Adicional
@if($factura->email_comprador)

Email: {{ $factura->email_comprador }}

@endif @if($factura->telefono_comprador)

Teléfono: {{ $factura->telefono_comprador }}

@endif @if($factura->observacion)

Observación: {{ $factura->observacion }}

@endif @if($config->leyenda)

Leyenda Tributaria: {{ $config->leyenda }}

@endif
SUBTOTAL 15%: ${{ number_format($factura->subtotal_15, 2) }}
SUBTOTAL 0%: ${{ number_format($factura->subtotal_0, 2) }}
SUBTOTAL NO OBJETO DE IVA: $0.00
SUBTOTAL EXENTO DE IVA: $0.00
SUBTOTAL SIN IMPUESTOS: ${{ number_format($factura->subtotal_sin_impuestos, 2) }}
TOTAL DESCUENTO: -${{ number_format($factura->total_descuento, 2) }}
ICE: $0.00
IVA {{ number_format($factura->iva_porcentaje, 0) }}%: ${{ number_format($factura->iva_valor, 2) }}
PROPINA: ${{ number_format($factura->propina, 2) }}
VALOR TOTAL: ${{ number_format($factura->importe_total, 2) }}
@endsection