KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/easysfm.edukrypt.in/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/easysfm.edukrypt.in/storage/framework/views/7fc1bf63af4b945c8169363771a4a6842538a7d5.php
<?php $__env->startSection('content'); ?>

    <!-- begin::main content -->
    <main class="main-content">
        <div class="container">
            <!-- begin::page header -->
            <div class="page-header">
                <h3>Video Play History List</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>">Dashboard</a></li>

                        <li class="breadcrumb-item active" aria-current="page">Video Play History List</li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->


            <div class="card">
                <div class="card-header">
                    <form action="" method="GET">
                        <div class="row">

                            <div class="form-group col-md-3">
                                <select class="form-control" name="user" id="user">
                                    <option selected value="" disabled>Select Users</option>
                                    <?php if(!empty($users)): ?>
                                        <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($user->user_unique_id); ?>">
                                                <?php echo e($user->name . '-' . $user->email); ?>

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


                            <div class="form-group col-md-3">
                                <select class="form-control" name="course" id="course">
                                    <option selected value="" disabled>Select Product</option>
                                    <?php if(!empty($products)): ?>
                                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($product->name); ?>"
                                                <?php echo e(request()->input('course') == $product->name ? 'selected' : ''); ?>>
                                                <?php echo e($product->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                </select>
                            </div>

                            <div class="form-group col-md-3">
                                <input type="text" class="form-control" name="query" placeholder="Enc Video Name....."
                                    value="<?php echo e(request()->input('query')); ?>">
                                <span class="text-danger"><?php $__errorArgs = ['query'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></span>
                            </div>

                            <div class="form-group col-md-4">
                                <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i>&nbsp;
                                    Search</button>
                                <a href="<?php echo e(asset('admin/play-video-history-list')); ?>"
                                    class="btn btn-primary text-white"><i class="fa fa-refresh"></i>&nbsp; Reset</a>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="card-body">
                    <?php if(isset($videoHistories)): ?>
                        <table class="table table-striped table-bordered">
                            <thead>
                                <tr>
                                    <th>Id</th>
                                    <th>User Name</th>
                                    <th>Product Name</th>
                                    <th>Video Name</th>
                                    <th>Duration</th>
                                    <th>date</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php if(!empty($videoHistories)): ?>
                                    <?php $__currentLoopData = $videoHistories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($product->id); ?></td>
                                            <td><a
                                                    href="<?php echo e(asset('admin/user-list?query=' . $product->email)); ?>"><?php echo e($product->name); ?></a>
                                            </td>
                                            <td><a
                                                    href="<?php echo e(asset('admin/product-list?query=' . $product->product_name)); ?>"><?php echo e($product->product_name); ?></a>
                                            </td>
                                            
                                            <td><?php echo e($product->filename); ?></td>
                                            <td><?php echo e($product->duration); ?></td>
                                            <td><?php echo e(date('d-m-Y H:i:s', strtotime($product->created_at))); ?></td>

                                            

                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                    <h1>No Record Found!!</h1>
                                <?php endif; ?>

                            </tbody>

                        </table>
                        <div class="pagination-block">

                            <?php if(isset($_GET['query'])): ?>

                                <?php echo e($videoHistories->appends(['query' => $_GET['query']])->links('admin.includes.paginationlinks')); ?>

                            <?php else: ?>
                                <?php echo e($videoHistories->links('admin.includes.paginationlinks')); ?>

                            <?php endif; ?>

                            <label>Total Record Found- <?php echo count($videoHistories); ?></label>
                        </div>

                    <?php endif; ?>

                </div>
            </div>



        </div>

    </main>
    <!-- end::main content -->

<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
    <!-- begin::dataTable -->

    <script src="<?php echo e(asset('public/admin/js/examples/datatable.js')); ?>"></script>

    <script>
        $('#sync_video').click(function() {

            $.ajaxSetup({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            });

            var foldername = $(this).data("foldername");

            // alert(foldername);
            // var type = $(this).data("type");


            $.ajax({
                type: "get",
                data: {
                    'foldername': foldername,
                    // 'type': type
                },
                url: "<?php echo e(asset('admin/listobjects')); ?>",
                beforeSend: function() {
                    $('#sync_video').html('<i class="fa fa-refresh"></i> Please Wait....');
                },
                success: function(result) {

                    // console.log(result);
                    // return false;
                    $('#sync_video').html('<i class="fa fa-refresh"></i> Sync Video');
                    location.reload();
                }
            });
        });
    </script>
    <!-- end::dataTable -->
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/easysfm.edukrypt.in/resources/views/admin/re-video/play-video-history-list.blade.php ENDPATH**/ ?>

Anon7 - 2021