Viewing file: b36c8ec82fb264c9f3025f5f7a15f373.php (9.81 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('ad_list')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header d-flex justify-content-between align-items-center"> <h3 class="card-title"> <?php echo e(__('ad_list')); ?>
</h3> <?php if(userCan('ad.create')): ?> <a href="<?php echo e(route('module.ad.create')); ?>" class="btn bg-primary d-inline-flex align-items-center justify-content-center"> <i class="fas fa-plus mr-2"></i> <span><?php echo e(__('add_listing')); ?></span> </a> <?php endif; ?> </div>
<div class="card-body table-responsive"> <form class="row mt-3" id="formSubmit" action="<?php echo e(route('module.ad.index')); ?>" method="GET"> <div class="col-sm-12 col-md-3"> <select name="category" class="form-control"> <option value="" <?php echo e(!request('category') ? 'selected' : ''); ?>> <?php echo e(__('all_category')); ?>
</option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->slug); ?>" <?php echo e(request('category') == $category->slug ? 'selected' : ''); ?>> <?php echo e($category->name); ?>
</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-sm-12 col-md-3"> <select name="brand" class="form-control"> <option value="" <?php echo e(!request('brand') ? 'selected' : ''); ?>> <?php echo e(__('all_brand')); ?>
</option> <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($brand->slug); ?>" <?php echo e(request('brand') == $brand->slug ? 'selected' : ''); ?>> <?php echo e($brand->name); ?>
</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-sm-12 col-md-3"> <select name="filter_by" class="form-control w-100-p"> <option value="" class="d-none"><?php echo e(__('filter_by')); ?></option> <option <?php echo e(request('filter_by') == 'active' ? 'selected' : ''); ?> value="active"> <?php echo e(__('active')); ?></option> <?php if($setting->ads_admin_approval): ?> <option <?php echo e(request('filter_by') == 'pending' ? 'selected' : ''); ?>
value="pending"> <?php echo e(__('pending')); ?></option> <?php endif; ?> <option <?php echo e(request('filter_by') == 'sold' ? 'selected' : ''); ?> value="sold"> <?php echo e(__('sold')); ?></option> <?php if($setting->ads_admin_approval): ?> <option <?php echo e(request('filter_by') == 'declined' ? 'selected' : ''); ?>
value="sold"> <?php echo e(__('declined')); ?></option> <?php endif; ?> <option <?php echo e(request('filter_by') == 'featured' ? 'selected' : ''); ?> value="featured"> <?php echo e(__('featured')); ?></option> <option <?php echo e(request('filter_by') == 'most_viewed' ? 'selected' : ''); ?>
value="most_viewed"><?php echo e(__('most_viewed')); ?></option> <option <?php echo e(request('filter_by') == 'all' ? 'selected' : ''); ?> value="all"> <?php echo e(__('all')); ?></option> </select> </div> <div class="col-sm-12 col-md-<?php echo e(request('keyword') || request('filter_by') || request('category') || request('brand') ? '2' : '3'); ?>"> <div class="input-group mb-3"> <input name="keyword" id="title" value="<?php echo e(request('keyword')); ?>" type="text" placeholder="<?php echo e(__('search')); ?>..." class="form-control font-size-13"> <div class="input-group-append"> <button type="submit" class="btn btn-primary"> <i class="fas fa-search"></i> </button> </div> </div> </div> <?php if(request('keyword') || request('filter_by') || request('category') || request('brand')): ?> <div class="col-sm-6 col-md-1"> <div class="input-group mb-3"> <a href="<?php echo e(route('module.ad.index')); ?>" class="btn btn-danger"> <?php echo e(__('clear')); ?>
</a> </div> </div> <?php endif; ?> </form>
<div class="row"> <div class="col-12"> <?php if (isset($component)) { $__componentOriginal045813b837131ee18b78f29cff65d362 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal045813b837131ee18b78f29cff65d362 = $attributes; } ?> <?php $component = App\View\Components\Backend\AdManage::resolve(['ads' => $ads] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('backend.ad-manage'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Backend\AdManage::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal045813b837131ee18b78f29cff65d362)): ?> <?php $attributes = $__attributesOriginal045813b837131ee18b78f29cff65d362; ?> <?php unset($__attributesOriginal045813b837131ee18b78f29cff65d362); ?> <?php endif; ?> <?php if (isset($__componentOriginal045813b837131ee18b78f29cff65d362)): ?> <?php $component = $__componentOriginal045813b837131ee18b78f29cff65d362; ?> <?php unset($__componentOriginal045813b837131ee18b78f29cff65d362); ?> <?php endif; ?> </div> </div> </div> <?php if($ads->total() > $ads->count()): ?> <div class="card-footer "> <div class="d-flex justify-content-center"> <?php echo e($ads->links()); ?>
</div> </div> <?php endif; ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?> <style> .page-link.page-navigation__link.active { background-color: #007bff; border-color: #007bff; color: #fff; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script> $('#formSubmit').on('change', function() { $(this).submit(); }); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/Modules/Ad/Resources/views/index.blade.php ENDPATH**/ ?>
|