
<?php $__env->startSection('title'); ?> পোস্ট কাউন্ট | TESTPAPER <?php $__env->stopSection(); ?>
<?php $__env->startSection('user-post-visit-count'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('user-post-visit-count'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main_content_section'); ?>
<div class="row py-3 ps-2">
    <div class="heading d-flex justify-content-start align-items-center">
        <h3 class="mb-0"><span> পোস্ট ব্যাগ রিপোর্ট তালিকা</span></h3>
    </div>
</div>

<div class="table_wrapper py-1 card min-vh-100">
    <div class="row px-3">
        <div class="table-container table-responsive">
            <table id="" class="table table-bordered">
                <thead class="text-uppercase">
                    <tr class="me-3">
                        <th class="text-center" scope="col"><span>ইউজার নাম</span></th>
                        <th class="text-center" scope="col"><span>আইডি</span></th>
                        <th class="text-center" scope="col"><span>ভিজিট</span></th>
                    </tr>
                </thead>
                <tbody class="text-center">
                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(isset($item) && $item != null): ?>
                    <tr class="">
                        <td class="custom-text-left">
                            <b>শ্রেনী: </b> <span><?php echo e($item->classData->class_name); ?></span><br>
                            <b>বিষয়: </b><span><?php echo e($item->subjectData->subject_name); ?></span>
                            <b>অধ্যায়: </b><span><?php echo e($item->chapterData->chapter_name); ?></span>
                        </td>

                        <td>
                            <b><?php echo e($item->id); ?></b>
                        </td>

                        <?php
                        $visitNumber = App\Models\UserPostClick::totalVisitCount($result->post_id);
                        ?>

                        <td>
                            <span class="text-success"><?php echo e($visitNumber); ?></span>
                        </td>

                    </tr>
                    <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


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

        <div class="clearfix d-flex">
            <div class="float-left">
                <p class="text-muted">
                    <?php echo e(__('Showing')); ?>

                    <span class="font-weight-bold"><?php echo e($data->firstItem()); ?></span>
                    <?php echo e(__('to')); ?>

                    <span class="font-weight-bold"><?php echo e($data->lastItem()); ?></span>
                    <?php echo e(__('of')); ?>

                    <span class="font-weight-bold"><?php echo e($data->total()); ?></span>
                    <?php echo e(__('results')); ?>

                </p>
            </div>

            <div class="float-right custom-table-pagination">
                <?php echo $data->links('pagination::bootstrap-4'); ?>

            </div>
        </div>
    </div>


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

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

<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\update\test-paper-final\resources\views/admin/userPostCount/todayPostVisitCount.blade.php ENDPATH**/ ?>