<?php $__env->startSection('content'); ?>
<br>
<br>
<section class="cmn-section">
    <div class="container">
        <div class="text-end mb-3">
            <a href="<?php echo e(route('user.ptc.create')); ?>" class="btn btn--base btn-sm"><?php echo app('translator')->get('Create Advertisement'); ?></a>
        </div>
        <div class="card">
            <div class="card-body p-0">
                <div class="table-responsive--sm">
                    <table class="table">
                        <thead class="thead-dark">
                            <tr>
                                <th scope="col"><?php echo app('translator')->get('Title'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Type'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Duration'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Maximum View'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Viewed'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Remain'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Amount'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Status'); ?></th>
                                <th scope="col"><?php echo app('translator')->get('Action'); ?></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $ads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ptc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td><?php echo e(strLimit($ptc->title,20)); ?></td>
                                <td>
                                    <?php echo $ptc->typeBadge ?>
                                </td>
                                <td><?php echo e($ptc->duration); ?> <?php echo app('translator')->get('Sec'); ?></td>
                                <td><?php echo e($ptc->max_show); ?></td>
                                <td><?php echo e($ptc->showed); ?></td>
                                <td><?php echo e($ptc->remain); ?></td>


                                <td class="font-weight-bold"><?php echo e(showAmount($ptc->amount)); ?> <?php echo e($general->cur_text); ?></td>

                                <td>
                                    <?php echo $ptc->statusBadge; ?>
                                </td>
                                <td>
                                    <?php if($ptc->status == 3): ?>
                                        <button class="btn btn--base btn-sm" disabled><i class="la la-pen"></i></button>
                                    <?php else: ?>
                                        <a class="btn btn--base btn-sm" href="<?php echo e(route('user.ptc.edit',$ptc->id)); ?>"><i class="la la-pen"></i></a>
                                    <?php endif; ?>
                                    <?php if($ptc->status == 1 || $ptc->status == 0): ?>
                                        <?php if($ptc->status == 1): ?>
                                            <a class="btn btn--danger btn-sm" href="<?php echo e(route('user.ptc.status',$ptc->id)); ?>"><i class="la la-eye-slash"></i></a>
                                        <?php else: ?>
                                            <a class="btn btn--success btn-sm" href="<?php echo e(route('user.ptc.status',$ptc->id)); ?>"><i class="la la-eye"></i></a>
                                        <?php endif; ?>
                                    <?php else: ?>
                                        <button class="btn btn--danger btn-sm" disabled><i class="la la-eye-slash"></i></button>
                                    <?php endif; ?>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td class="text-muted text-center" colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
                            </tr>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <?php if($ads->hasPages()): ?>
            <div class="card-footer">
                <?php echo e($ads->links()); ?>

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

<?php echo $__env->make($activeTemplate.'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lotteryx/public_html/shopx.77lottery.xyz/core/resources/views/templates/smartlab/user/ptc/ads.blade.php ENDPATH**/ ?>