{{ strtoupper($empresa[0]->nombre) }}
{{ $empresa[0]->direccion }}
{{ $empresa[0]->ciudad }} {{ $empresa[0]->provincia }}, Republica Dominicana
Tel: {{ $empresa[0]->tel1 }} | Whatsapp: {{ $empresa[0]->whatsapp }}
RNC: {{ $empresa[0]->rnc }} | {{ $empresa[0]->web }}


@if(is_null($data[0]->soft_delete))
@else
@endif

Cliente: {{ strtoupper($cliente[0]->nombre) }}
Direccion: {{ $cliente[0]->direccion }} @php $documento = DB::table('tipo_documentos')->select('nombre')->where('id', $cliente[0]->id_tipo_documento)->get(); @endphp
{{ $documento[0]->nombre }}: {{ $cliente[0]->documento }}
Tel: {{ $cliente[0]->tel }} / {{ $cliente[0]->cel }} @php $vendedor = DB::table('users')->select('name')->where('id', $data[0]->vendedor_id)->get(); @endphp
Vendedor: {{ strtoupper($vendedor[0]->name) }}
@php $impuesto = DB::table('tipo_impuestos')->select('nombre', 'secuencia')->where('id', $data[0]->id_tipo_impuesto)->get(); @endphp {{ strtoupper($impuesto[0]->nombre) }}
NCF: 00000000{{ $impuesto[0]->secuencia }}{{str_pad($data[0]->ncf, 8, '00000000', STR_PAD_LEFT) }}
Fecha: {{ \Carbon\Carbon::parse($data[0]->created_at)->format('d-m-Y') }}
Factura #: {{ str_pad($data[0]->id, 10, 'FAC-0000', STR_PAD_LEFT) }}
Orden: {{ str_pad($data[0]->numero_orden, 10, 'ORD-0000', STR_PAD_LEFT) }}

@foreach($items AS $val) @endforeach @if($data[0]->comentario != NULL && $data[0]->comentario != '') @endif @php $itbis = $data[0]->total * 0.18; $subtotal = $data[0]->total - $itbis; @endphp
Codigo Producto Cant. Prec. Unit. Total
{{ $val->articulo_codigo }} {{ $val->articulo }} {{ $val->articulo_cantidad }} RD${{ number_format($val->articulo_precio, 2) }} RD${{ number_format($val->articulo_cantidad * $val->articulo_precio, 2) }}
Comentario: {{ $data[0]->comentario }}
Subtotal: RD${{ number_format($subtotal, 2) }}
ITBIS: RD${{ number_format($itbis, 2) }}
Total: RD${{ number_format($data[0]->total, 2) }}

@foreach($payments AS $val) @endforeach
Método de pago Monto
{{ $val->metodo }} RD${{ number_format($val->monto, 2) }}

IMPORTANTE: {{ $footer[0]->contenido}}



Recibido por:
Firma / No. Cedula
Autorizado por: