RUT: {{ $datos->tienda->empresa->rut }}
{{ Str::upper($datos->tipo()) }} ELECTRÓNICA
N°{{ $datos->folio }}
S.I.I. {{ Str::upper($datos->tienda->comuna->nombre) }}

{{ $datos->tienda->empresa->nombre }}

Giro: Comercialización de Joyas de Plata y Fantasía {{-- $datos->tienda->empresa->giro --}}
Dirección: {{ $datos->tienda->direccion }}
Comuna: {{ $datos->tienda->comuna->nombre }}


@if($datos->tipo == 'b') @if($datos->cliente)

{{ $datos->cliente->nombre.' '.$datos->cliente->apellidos }}

RUT: {{ $datos->cliente->rut }}
@if($datos->cliente->direccion) Dirección: {{ $datos->cliente->direccion }}
@endif @if($datos->cliente->telefono) Teléfono: {{ $datos->cliente->telefono }}
@endif @if($datos->cliente->email) Email: {{ $datos->cliente->email }}
@endif

@endif

Fecha emisión: {{ $datos->fecha_formato() }}

Medio de Pago: {{ $datos->forma_pago->nombre }} @if( ($datos->forma_pago->id == 3) && $datos->comprobante)
N° Comprobante: {{ $datos->comprobante }} @endif

@else

RUT: {{ $datos->cliente->rut }}
SEÑOR(ES): {{ $datos->cliente->razon_social }}
GIRO: {{ $datos->giro }}
DIRECCION: {{ $datos->direccion.' '.$datos->comuna }}

Fecha emisión: {{ $datos->fecha_formato() }}
Forma de pago: CONTADO

Medio de Pago: {{ $datos->forma_pago->nombre }} @if( ($datos->forma_pago->id == 3) && $datos->comprobante)
N° Comprobante: {{ $datos->comprobante }} @endif

@endif @php $total = 0; @endphp @foreach($datos->productos as $p) @php $subtotal = $p->cantidad * $p->precio; $total += $subtotal; @endphp @endforeach @php $neto = $total / 1.19; $iva = $neto * 0.19; @endphp @if($datos->tipo == 'b') @else @endif
Articulo Subtotal
{{ $p->nombre }}
{{ $p->cantidad }} x ${{ number_format($p->precio,0,'.','.') }}
${{ number_format($subtotal,0,'.','.') }}
El IVA de esta boleta es ${{ number_format($iva,0,'.','.') }}
Total a pagar ${{ number_format($total,0,'.','.') }}
Monto neto ${{ number_format($neto,0,'.','.') }}
IVA 19% ${{ number_format($iva,0,'.','.') }}
Total a pagar ${{ number_format($total,0,'.','.') }}
@php $archivo_timbre = Storage::disk('local')->get('timbres/'.$datos->timbre); @endphp Timbre Timbre Electrónico S.I.I.
RES. {{ $datos->resolucion_venta }} del {{ $datos->fecha_resolucion_formato() }}
@if($datos->tipo == 'b') Verifica en verify.haulmer.com @else Verifica en www.sii.cl @endif