DE: {{ DB::table('empresas')->count() == 0 ? 'SISCOM ' : DB::table('empresas')->first()->razon_social }}

{{ DB::table('empresas')->count() == 0 ? '- ' : DB::table('empresas')->first()->direccion_fiscal }}

Tlfn: {{ DB::table('empresas')->count() == 0 ? '-' : DB::table('empresas')->first()->telefono.' / '.DB::table('empresas')->first()->celular }}

Email: {{ DB::table('empresas')->count() == 0 ? '-' : DB::table('empresas')->first()->correo }}

RUC {{ DB::table('empresas')->count() == 0 ? '- ' : DB::table('empresas')->first()->ruc }}

{{ $documento->nombreDocumento() }}

{{$documento->serie.'-'.$documento->correlativo}}



FECHA DE EMISIÓN : {{ getFechaFormato( $documento->fecha_documento ,'d/m/Y')}}
FECHA DE VENCIMIENTO : {{ getFechaFormato( $documento->fecha_vencimiento ,'d/m/Y')}}
CLIENTE : {{ $documento->clienteEntidad->nombre }}
{{ $documento->tipo_documento_cliente}} : {{ $documento->clienteEntidad->documento }}
DIRECCIÓN : {{ $documento->clienteEntidad->direccion }}
MODO DE PAGO : {{ $documento->formaPago() }}

@foreach($detalles as $item) @if($documento->tipo_venta == 129) @if ($item->cantidad - $item->detalles->sum('cantidad') > 0) @endif @else @endif @endforeach
CANT UM DESCRIPCIÓN P. UNIT. TOTAL
{{ number_format($item->cantidad - $item->detalles->sum('cantidad'), 2) }} {{ $item->unidad }} {{ $item->nombre_producto }} {{ $item->precio_nuevo }} {{ number_format(($item->cantidad - $item->detalles->sum('cantidad')) * $item->precio_nuevo, 2) }}
{{ number_format($item->cantidad, 2) }} {{ $item->unidad }} {{ $item->nombre_producto }} {{ $item->precio_nuevo }} {{ $item->valor_venta }}

SON: {{ $legends[0]['value'] }}


@if($documento->ruta_qr) @endif @if($documento->hash)

{{ $documento->hash }}

@endif

¡¡Gracias por su confianza y preferencia!!


@if($documento->tipo_venta != 129) @if ($documento->monto_descuento!=0) @endif @if (!empty($documento->retencion)) @endif @else @endif
Descuento: S/. {{ number_format($documento->monto_descuento, 2) }}

Sub Total: S/.

{{ number_format($documento->sub_total, 2) }}

IGV {{$documento->igv}}%: S/.

{{ number_format($documento->total_igv, 2) }}

Total S/.

{{ number_format($documento->total + $documento->retencion->impRetenido, 2) }}

Imp. Retenido S/.

{{ number_format($documento->retencion->impRetenido, 2) }}

Total a pagar: S/.

{{ number_format($documento->total, 2) }}

Total a pagar: S/.

{{ number_format($documento->total - $documento->notas->sum('mtoImpVenta'), 2) }}