<?php $__env->startSection('content'); ?>


    <div class="row">
                <div class="span12">
                    <div class="widget widget-nopad">
                        <div class="widget-header"> <i class="icon-list-alt"></i>
                            <h3> Support Ticketing System Stats</h3>
                        </div>
                        <!-- /widget-header -->
                        <div class="widget-content">
                            <div class="widget big-stats-container">
                                <div class="widget-content">
                                    <div id="big_stats" class="cf">
                                        <div class="stat"><b>Total tickets</b><i class="icon-anchor"></i> <span class="value"><?php echo e($activetickets + $completetickets); ?></span> </div>
                                        <!-- .stat -->

                                        <div class="stat"><b>Active tickets</b> <i class="icon-thumbs-up-alt"></i> <span class="value"><?php echo e($activetickets); ?></span> </div>
                                        <!-- .stat -->

                                        <div class="stat"><b>Completed tickets</b><i class="icon-folder-close"></i> <span class="value"><?php echo e($completetickets); ?></span> </div>
                                        <!-- .stat -->

                                        <div class="stat"><b>New/Open</b><i class="icon-folder-open"></i> <span class="value"><?php echo e($newtickets); ?>/<?php echo e($opentickets); ?></span> </div>
                                        <!-- .stat -->
                                    </div>
                                </div>
                                <!-- /widget-content -->

                            </div>
                        </div>
                    </div>
                    <!-- /widget -->

                    <div class="widget widget-table action-table">
                        <div class="widget-header"> <i class="icon-th-list"></i>
                            <h3> Recent Tickets</h3>
                        </div>
                        <!-- /widget-header -->
                        <div class="widget-content">
                            <table class="table table-striped table-bordered" id="table">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>Subject</th>
                                    <th>Category</th>
                                    <th>Last Updated</th>
                                    <th>Status</th>
                                </tr>
                                </thead>

                            </table>
                        </div>

                        <div class="widget-header">
                            <div class="pull-right">
                                <div class="btn-group">
                                    <h3><a href="<?php echo e(url('createdata')); ?>">View more</a></h3>
                                </div>
                            </div>
                        </div>
                        <!-- /widget-content -->
                    </div>
                </div>
                <!-- /span6 -->
            </div>
            <!-- /row -->

            <script>
                $(function() {
                    var dtListUsers = $('#table').DataTable({
                        processing: true,
                        serverSide: true,
                        ajax: '<?php echo e(url('loaddata')); ?>?action=dashboardtickets',
                        columns: [
                            { data: 'id', name: 'id' },
                            { data: 'subject', name: 'subject' },
                            { data: 'subname', name: 'subname' },
                            { data: 'updated_at', name: 'updated_at' },
                            { data: 'sname', name: 'sname' }

                        ],
                        "aaSorting": [],
                        "paging":   false,
                        "bInfo": false,
                        "bFilter": false,
                        "ordering": false
                    });
                });
            </script>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>