@extends('BaseSistemaWeb')
@section('CSS')
{{ HTML::style('DataTables/dataTables.bootstrap.min.css') }}
{{ HTML::style('DataTables/responsive.dataTables.min.css') }}
{{ HTML::style('bootstrap-daterangepicker/daterangepicker.css') }}
@stop
@section('Contenido')
@if (Session::has('message'))
{{ Session::get('message') }}
@endif
Referencia |
Cantidad de llamadas |
Porcentaje de llamadas |
Ventas cerradas |
Efectividad de referencias |
@stop
@section('JS')
{{ HTML::script('DataTables/jquery.dataTables.min.js') }}
{{ HTML::script('DataTables/dataTables.bootstrap.min.js') }}
{{ HTML::script('DataTables/dataTables.responsive.min.js') }}
{{ HTML::script('bootstrap-daterangepicker/moment.min.js') }}
{{ HTML::script('bootstrap-daterangepicker/daterangepicker.js') }}
@stop
@section('JSOr')
$(".sidebar-toggle-box").trigger("click");
//$("a[data-toggle=\"tab\"]").on("shown.bs.tab", function (e) { $.fn.dataTable.tables( {visible: true, api: true} ).columns.adjust(); });
/*$('#tblReportes tfoot th').each(function(){
var title = $(this).text();
$(this).html( '' );
});*/
GenerarGrafica();
$("#tblReportes").DataTable({
"processing": true,
"serverSide": true,
preDrawCallback: function (settings) { $.isLoading("hide"); },
"ajax": {
url: "{{ URL::route('SysWebRptGCReferencias') }}",
data: function (d) {
d.filtrofechas = $("#FiltroFechas").val();
}
},
columns: [
{data: 'referencia', name: 'referencia', "searchable": false, "orderable": false},
{data: 'total', name: 'total', "searchable": false, "orderable": false, "class": "text-center"},
{data: 'porcentajeLlamadas', name: 'porcentajeLlamadas', "searchable": false, "orderable": false, "class": "text-center"},
{data: 'vendidos', name: 'vendidos', "searchable": false, "orderable": false, "class": "text-center"},
{data: 'efectividad', name: 'efectividad', "searchable": false, "orderable": false, "class": "text-center"}
],
"language": {
"url": "{{ asset('DataTables/Spanish.json') }}"
},
"fnDrawCallback": function( oSettings ) {
$(".tooltips").tooltip();
},
autoWidth: false,
responsive: true,/*,
initComplete: function(){
this.api().columns().every(function(){
var column = this;
//console.log( column );
var input = document.createElement("input");
$(input).appendTo($(column.footer()).empty()).on("change", function(){
//column.search($(this).val()).draw();
//column.search($(this).val(), false, false, true).draw();
});
});
}*/
//initComplete: function(){
// var input = $(".dataTables_filter input").unbind(),
// self = this.api(),
// $searchButton = $('