    <!-- SALES -->
    <div class="box-body">
      <div class="box box-primary">
        <div class="box-header">
            <div class="pull-right box-tools">
                <button type="button" class="btn btn-primary btn-sm daterange pull-right" data-toggle="tooltip" title="Date range"><i class="fa fa-calendar"></i></button>
            </div>
            <i class="fa fa-line-chart"></i>
            <h3 class="box-title"><?php echo $_translator->_getTranslation('Compras'); ?></h3>
        </div>
        <div class="box-body">
            <div class="col-lg-4 col-xs-12">
                <table id="tbl_purchases" class="table">
                    <caption class="text-center"></caption>
                    <thead>
                    <tr>
                        <th class="text-center"><?php echo $_translator->_getTranslation('Proveedor'); ?></th>
                        <th class="text-right"><?php echo $_translator->_getTranslation('Total'); ?></th>
                    </tr>
                    </thead>
                    <tbody></tbody>
                </table>
            </div>
            <div id="chart_purchases" class="col-lg-8 col-xs-12">
                <canvas id="canvas_chart_purchases"></canvas>
            </div>
        </div>
      </div>
    </div>    
    <!-- END SALES -->    

   
    <script>
        $(document).ready(function () {
            _purchasesChart('<?php echo date('d/m/Y', strtotime('-30 days')) ?>','<?php echo date('d/m/Y') ?>');
        });
    </script>