<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <?php if (isset($component)) { $__componentOriginalcd7d47400374ca1a3c459e4c1c1bfb40 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcd7d47400374ca1a3c459e4c1c1bfb40 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.manage-filters','data' => ['search' => true,'searchRoute' => route('admin.advertisements')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('manage-filters'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['search' => true,'search-route' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.advertisements'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcd7d47400374ca1a3c459e4c1c1bfb40)): ?>
<?php $attributes = $__attributesOriginalcd7d47400374ca1a3c459e4c1c1bfb40; ?>
<?php unset($__attributesOriginalcd7d47400374ca1a3c459e4c1c1bfb40); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcd7d47400374ca1a3c459e4c1c1bfb40)): ?>
<?php $component = $__componentOriginalcd7d47400374ca1a3c459e4c1c1bfb40; ?>
<?php unset($__componentOriginalcd7d47400374ca1a3c459e4c1c1bfb40); ?>
<?php endif; ?>
    <div class="row">
        <div class="col-md-12">
            <div class="card mb-4">
                <div class="card-header">
                     <h6 class="mb-0"><?php echo app('translator')->get('admin.manageAdvertisements'); ?></h6></div>
                <div class="card-body table-responsive p-0">
                    <table class="table table-quizier mb-0">
                        <thead>
                            <tr>
                                <th><?php echo app('translator')->get('common.name'); ?></th>
                                <th><?php echo app('translator')->get('common.title'); ?></th>
                                <th><?php echo app('translator')->get('admin.impressions'); ?></th>
                                <th><?php echo app('translator')->get('common.type'); ?></th>
                                <th><?php echo app('translator')->get('common.status'); ?></th>
                                <th width="150"><?php echo app('translator')->get('common.action'); ?></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $advertisements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ads_txt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td><?php echo e($ads_txt->name); ?></td>
                                    <td><strong><?php echo e($ads_txt->title); ?></strong></td>
                                    <td><?php echo e($ads_txt->click_counts); ?></td>
                                    <td><?php echo e($ads_txt->ad_type); ?></td>
                                    <td>
                                        <?php if($ads_txt->status == 1): ?>
                                            <span class="badge bg-success"> <?php echo app('translator')->get('common.active'); ?> </span>
                                        <?php else: ?>
                                            <span class="badge bg-danger"><?php echo app('translator')->get('common.inactive'); ?></span>
                                        <?php endif; ?>
                                    </td>
                                    <td>
                                        <div class="d-flex align-items-center justify-content start">
                                            <a href="<?php echo e(route('admin.advertisements.edit', ['advertisement' => $ads_txt])); ?>"
                                                class="btn btn-link text-body" role="button" data-coreui-toggle="tooltip"
                                                title="<?php echo app('translator')->get('common.edit'); ?>"><span
                                                    class="lni lni-pencil-alt"></span></a>
                                            <?php if($ads_txt->status == 0): ?>
                                                <a href="<?php echo e(route('admin.advertisements.status.change', ['id' => $ads_txt->id, 'status' => 1])); ?>"
                                                    class="btn btn-link text-body" role="button" data-coreui-toggle="tooltip"
                                                    title="<?php echo app('translator')->get('common.active'); ?>"><span
                                                        class="lni lni-checkmark-circle"></span></a>
                                            <?php else: ?>
                                                <a href="<?php echo e(route('admin.advertisements.status.change', ['id' => $ads_txt->id, 'status' => 0])); ?>"
                                                    class="btn btn-link text-body" role="button" data-coreui-toggle="tooltip"
                                                    title="<?php echo app('translator')->get('common.inactive'); ?>"><span
                                                        class="lni lni-circle-minus"></span></a>
                                            <?php endif; ?>
                                            <form action="<?php echo e(route('admin.advertisements.destroy', $ads_txt->id)); ?>"
                                                method="POST" class="d-inline-block">
                                                <?php echo method_field('DELETE'); ?>
                                                <?php echo csrf_field(); ?><button class="btn btn-link text-danger warning-delete frm-submit"
                                                    role="button" data-coreui-toggle="tooltip" data-placement="right"
                                                    title="<?php echo app('translator')->get('common.delete'); ?>"><span
                                                        class="lni lni-trash"></span></button>
                                            </form>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr>
                                    <td class="text-center" colspan="22"><?php echo app('translator')->get('common.noRecordsFund'); ?></td>
                                </tr>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                <?php if($advertisements->hasPages()): ?>
                    <div class="card-footer">
                        <?php echo e($advertisements->links()); ?>

                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH /www/wwwroot/webtoolzone.com/resources/themes/admin/advertisement/index.blade.php ENDPATH**/ ?>