
<?php $__env->startSection('content'); ?>
<div class="row">
    <?php $__empty_1 = true; $__currentLoopData = $ads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

    <?php if($ad->schedule): ?>
        <?php
            $currentTime = now()->format('H:i');
        ?>

        <?php if(!collect($ad->schedule)->where('day',strtolower(now()->format('l')))->where('start','<',$currentTime)->where('end','>',$currentTime)->first()): ?>
            <?php continue; ?>
        <?php endif; ?>
    <?php endif; ?>

        <div class="col-xl-6 col-md-6 mb-3">
            <div class="card custom--card ptc-card">
                <div class="card-body p-4">
                    <div class="row align-items-center">
                        <div class="col-8">
                            <h6 class="mt-0"><?php echo e(__($ad->title)); ?></h6>
                            <span class="fs--14px mt-2"><?php echo app('translator')->get('Ads duration'); ?> : <?php echo e($ad->duration); ?>s</span>
                        </div>
                        <div class="col-4 text-end">
                            <h5 class="text--base mt-0"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($ad->amount)); ?></h5>
                            <a href="<?php echo e(route('user.ptc.show',encrypt($ad->id.'|'.auth()->user()->id))); ?>" target="_blank" class="btn fs--12px px-sm-3 px-2 py-1 btn--base mt-2"><?php echo app('translator')->get('View Ad'); ?></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <div class="card custom--card ptc-card">
            <div class="card-body">
                <h2 class="text-center text--base"><?php echo e(__($emptyMessage)); ?></h2>
            </div>
        </div>
    <?php endif; ?>

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


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