<div class="block">
    <div class="block-content block-content-full">
        <p class="text-uppercase font-w600 text-center mt-2 mb-4">
            Most Viewed Apps
        </p>
        <table class="table table-striped table-hover table-borderless table-vcenter font-size-sm">
            <thead>
                <tr class="text-uppercase">
                    <th class="font-w700 text-center">Image</th>
                    <th class="font-w700">Name</th>

                </tr>
            </thead>
            <tbody>
                <?php if(isset($most_viewed_apps) && !$most_viewed_apps->isEmpty() ): ?>

                    <?php $__currentLoopData = $most_viewed_apps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $app): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td class="text-center">
                                <img src="<?php echo e($app->app_image_url); ?>" title="<?php echo e($app->title); ?>" width="40px"/>
                            </td>
                            <td>
                                <div class="font-w600 font-size-base"><?php echo e($app->title); ?></div>
                                <div class="text-muted"><i class="fa fa-eye"></i> <?php echo e($app->views_count); ?></div>
                            </td>

                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php else: ?>
                    <tr align="center">
                        <td  colspan=2>No apps configured</td>
                    </tr>
                <?php endif; ?>

            </tbody>
        </table>
    </div>
</div>