@php use App\Models\Vendedores; // echo '
';
    // print_r($ventas);
    // echo '
'; @endphp @if (count($ventas) > 0) @foreach ($ventas as $v) {{ $v->usuario_nombre }} @if (!empty($v->rut)) {{ \FCR::num_cl($v->rut) . '-' . $v->rut_digito_verificador }} @endif {{ $v->punto_venta_id }} @php $productos = \DTE::getProductosPuntoVenta($v->punto_venta_id, true, 1); @endphp @include('dashboard.puntos-ventas.td-productos') {{ $v->dte_tipo_nombre }} @php $vendedorNombre = (new Vendedores())->obtenerNombreVendedor($v->vendedor_id); @endphp
Vendedor: {{ $vendedorNombre }}
Hora: {{ \FCR::hora_simple($v->punto_venta_fecha) }} {{ $v->venta_confirmacion_nombre }} @if ($v->venta_confirmacion_id == 3 && $confirmar_venta) @endif @if ($v->venta_confirmacion_id == 3) @endif @endforeach @else No hay ventas registradas @endif