<?php $__env->startSection('title', 'Suggestion - Trackings'); ?>
<?php $__env->startSection('content'); ?>
    <div class="row">
    <?php if($message = Session::get('success')): ?>
        <div class="alert alert-success">
            <p><?php echo e($message); ?></p>
        </div>
    <?php endif; ?>
    <?php if($message = Session::get('errors')): ?>
        <div class="alert alert-danger">
            <p><?php echo e($message); ?></p>
        </div>
    <?php endif; ?>
        <div class="span12"><h2>Suggestions Tracking</h2></div><br/><br/>
        <div class="span6">
            <div class="widget widget-table action-table">
            <div class="widget-header"> <i class="icon-th-list"></i>
              <h3>Top Keywords List</h3>
            </div>
            <!-- /widget-header -->
            <div class="widget-content">
              <table class="table table-striped table-bordered">
                <thead>
                  <tr>
                    <th> No. </th>
                    <th> Keywords </th>
                    <th> View </th>
                  </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $suggestions_top_keywords; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $indexKey => $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                <td><?php echo e($indexKey+1); ?></td>
                  <td><span class="label label-info"><?php echo e($p->keywords); ?></span></td>
                  <td><span class="label label-primary"><?php echo e($p->total_count); ?></span></td>
                  </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  
                  <?php if($suggestions_top_keywords->isEmpty()): ?>
                    <tr><td colspan="3" style="text-align: center;"><b>No Records found</b></td></tr>
                  <?php endif; ?>
                </tbody>
              </table>
            </div>
            <!-- /widget-content --> 
          </div>
        </div>
        <div class="span6">
            <div class="widget widget-table action-table">
            <div class="widget-header"> <i class="icon-th-list"></i>
              <h3>Top DocUrls List</h3>
            </div>
            <!-- /widget-header -->
            <div class="widget-content">
              <table class="table table-striped table-bordered">
                <thead>
                  <tr>
                    <th> No. </th>
                    <th> Destination URL </th>
                  </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $suggestions_top_doc_urls; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $indexKey => $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($indexKey+1); ?></td>
                  <td><a href="<?php echo e($p->destination_url); ?>" target="_blank"><?php echo e($p->destination_url); ?></a></td>
                  </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  <?php if($suggestions_top_doc_urls->isEmpty()): ?>
                    <tr><td colspan="2" style="text-align: center;"><b>No Records found</b></td></tr>
                  <?php endif; ?>
                </tbody>
              </table>
            </div>
            <!-- /widget-content --> 
          </div>
        </div>

</div>
   

<?php $__env->stopSection(); ?>

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