@include('layouts.breadcumb') @section('header') @stop

Fecha
* Debes seleccionar un rango de fechas para generar el reporte.
Campos
{!! \Utils::getSelectMultipleAllArray( $campos, $_GET['campos'], 'campo', 'campos-select', 'campos[]', false, false ) !!}
* Debes seleccionar mínimo un campo para generar el reporte.
Numérica

Regionales {!! \Utils::getSelectMultipleAll( $regionales, $_GET['regionales'], 'regional_nombre', 'regionales-select', 'regionales[]' ) !!}
Vendedores {!! \Utils::getSelectMultipleAll( $vendedores, $_GET['vendedores'], 'vendedor_nombre', 'vendedores-select', 'vendedores[]' ) !!}
Motivos {!! \Utils::getSelectMultipleAll( $motivos, $_GET['motivos'], 'descripcion_motivo', 'motivos-select', 'motivos[]' ) !!}
Punto Dinámico {!! \Utils::getSelectMultipleAll( $punto_dynamico, $_GET['punto_dynamico'], 'pd', 'punto_dynamico-select', 'punto_dynamico[]' ) !!}

Marca {!! \Utils::getSelectMultipleAll( $marcas, $_GET['marcas'], 'marca', 'marcas-select', 'marcas[]' ) !!}
Proveedor {!! \Utils::getSelectMultipleAll( $proveedores, $_GET['proveedores'], 'proveedor', 'proveedores-select', 'proveedores[]' ) !!}
Proveedor Comercial {!! \Utils::getSelectMultipleAll( $proveedores_comerciales, $_GET['proveedores_comerciales'], 'proveedor_comercial', 'proveedores_comerciales-select', 'proveedores_comerciales[]' ) !!}
Origen {!! \Utils::getSelectMultipleAll( $origenes, $_GET['origenes'], 'origen', 'origenes-select', 'origenes[]' ) !!}

Categoría {!! \Utils::getSelectMultipleAll( $categorias, $_GET['categorias'], 'categoria', 'categorias-select', 'categorias[]', false ) !!}
Subcategoria
{!! \Utils::getSelectMultipleAll( $subcategorias, $_GET['subcategorias'], 'subcategoria_txt', 'subcategorias-select', 'subcategorias[]', false ) !!}
Linea
{!! \Utils::getSelectMultipleAll( $lineas, $_GET['lineas'], 'linea', 'lineas-select', 'lineas[]', false ) !!}
Familia
{!! \Utils::getSelectMultipleAll( $familias, $_GET['familias'], 'familia_producto', 'familias-select', 'familias[]' ) !!}

Pais {!! \Utils::getSelectMultipleAll( $paises, $_GET['paises'], 'pais', 'paises-select', 'paises[]' ) !!}
Departamento {!! \Utils::getSelectMultipleAll( $departamentos, $_GET['departamentos'], 'departamento_txt', 'departamento-select', 'departamentos[]' ) !!}
Ciudad {!! \Utils::getSelectMultipleAll( $ciudades, $_GET['ciudades'], 'ciudad_txt', 'ciudades-select', 'ciudades[]' ) !!}
Lista de Precios {!! \Utils::getSelectMultipleAll( $listas_precios, $_GET['listas_precios'], 'cliente_lista_precio', 'listas_precios-select', 'listas_precios[]' ) !!}

Unidad Producto {!! \Utils::getSelectMultipleAll( $productos_unidades, $_GET['productos_unidades'], 'producto_unidad', 'productos_unidades-select', 'productos_unidades[]' ) !!}
Clasificación ABC {!! \Utils::getSelectMultipleAll( $clasificacion_abc, $_GET['clasificacion_abc'], 'clasificacion_item_abc', 'clasificacion_abc-select', 'clasificacion_abc[]' ) !!}
Clasificación Rotación {!! \Utils::getSelectMultipleAll( $clasificacion_rotacion, $_GET['clasificacion_rotacion'], 'clasificacion_item_rotacion', 'clasificacion_rotacion-select', 'clasificacion_rotacion[]' ) !!}
Cliente Clasificación {!! \Utils::getSelectMultipleAll( $cliente_clasificacion, $_GET['cliente_clasificacion'], 'cliente_clasificacion', 'cliente_clasificacion-select', 'cliente_clasificacion[]' ) !!}

Comprador {!! \Utils::getSelectMultipleAll( $compradores, $_GET['compradores'], 'comprador', 'compradores-select', 'compradores[]' ) !!}
Tipo Documento {!! \Utils::getSelectMultipleAll( $documentos_tipo, $_GET['documentos_tipo'], 'documento_tipo', 'documentos_tipo-select', 'documentos_tipo[]' ) !!}
Nit(s) * Si son múltiples NIT sepárelos por ,
Item(s) # * Si son múltiples ITEMS sepárelos por ,

Marcas PD {!! \Utils::getSelectMultipleAll( $marcas_pd, $_GET['marcas_pd'], 'marcas_pd', 'marcas_pd-select', 'marcas_pd[]' ) !!}
Tipo Inventario {!! \Utils::getSelectMultipleAll( $tipo_inventario, $_GET['tipo_inventario'], 'tipo_inventario', 'tipo_inventario-select', 'tipo_inventario[]' ) !!}


    @if( Input::get('fecha_rango') && Input::get('campos') )     @endif

@if( Input::get('fecha_rango') && Input::get('campos') )
@foreach( $_GET['campos'] as $camp ) @endforeach @if( Input::get('numerica', 0) == 1 ) @endif @foreach( $_GET['campos'] as $camp ) @endforeach @if( Input::get('numerica', 0) == 1 ) @endif
{!! strtoupper(str_replace('_', ' ', $camp)) !!}NUMERICA PRODUCTOS NUMERICA CLIENTES NUMERICA PROVEEDOR CCIAL NUMERICA MARCASCANTIDAD CANTIDAD BASE VALOR NETO VALOR DESCUENTO VALOR COSTO VALOR NETO ALT VALOR DESCUENTO ALT MARGEN
{!! number_format($totales['cantidad_total'], 0) !!} {!! number_format($totales['cantidad_base_total'], 0) !!} ${!! number_format($totales['valor_neto_total'], 0) !!} ${!! number_format($totales['valor_descuento_total'], 0) !!} ${!! number_format($totales['valor_costo_total'], 0) !!} ${!! number_format($totales['valor_neto_alt_total'], 0) !!} ${!! number_format($totales['valor_descuento_alt_total'], 0) !!} {!! @number_format( str_replace(',','.',$totales['margen_total']), 2) !!}%
@endif
@section('footer') @stop