Viewing file: 40787bd3d7fb8cda2a2da22e22cae8f8cb0a86f2.php (8.33 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('page_title', __('Products')); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('public/dist/css/product.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('public/datta-able/plugins/summer-note/summernote-lite.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Main content -->
<div class="col-sm-12 list-container" id="item-list-container">
<div class="card">
<div class="card-header d-md-flex justify-content-between align-items-center">
<h5> <?php echo e(Route::current()->getName() == "product.pending" ? __('Pending Products') : __('Products')); ?> </h5>
<div class="d-md-flex justify-content-end align-items-center">
<a href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#batchDelete" class="btn btn-outline-primary mb-0 custom-btn-small d-none">
<span class="feather icon-trash-2 <?php echo e(languageDirection() == 'ltr' ? 'me-1' : 'ms-1'); ?>"></span>
<?php echo e(__('Batch Delete')); ?> (<span class="batch-delete-count">0</span>)
</a>
<a href="<?php echo e(route('product.create')); ?>" class="btn mb-0 btn-outline-primary custom-btn-small">
<span class="fa fa-plus"> </span><?php echo e(__('Add Product')); ?>
</a>
<button class="btn btn-outline-primary custom-btn-small mb-0 collapsed filterbtn me-0" type="button"
data-bs-toggle="collapse" data-bs-target="#filterPanel" aria-expanded="true"
aria-controls="filterPanel"><span class="fas fa-filter"> </span><?php echo e(__('Filter')); ?></button>
</div>
</div>
<div class="card-header p-0 collapse" id="filterPanel">
<div class="row mx-2 my-3">
<div class="col-md-2">
<select class="select2 filter" name="brand">
<option value=""><?php echo e(__('All Brands')); ?></option>
<?php $__currentLoopData = $productBrands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($brand->id); ?>"><?php echo e($brand->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="col-md-2">
<select class="select2 filter" name="category">
<option value=""><?php echo e(__('All Categories')); ?></option>
<?php $__currentLoopData = $productCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="col-md-2">
<select class="select2 filter" name="vendor">
<option value=""><?php echo e(__('All :x', ['x' => __('Vendors')])); ?></option>
<?php $__currentLoopData = $vendors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vendor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(optional($vendor->vendor)->name): ?>
<option value="<?php echo e($vendor->vendor_id); ?>"><?php echo e($vendor->vendor->name); ?>
</option>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="col-md-2">
<select class="select2-hide-search filter" name="stock">
<option value=""><?php echo e(__('All Stock Status')); ?></option>
<option value="instock"><?php echo e(__('In Stock')); ?></option>
<option value="backorder"><?php echo e(__('On Backorder')); ?></option>
<option value="outofstock"><?php echo e(__('Out Of Stock')); ?></option>
</select>
</div>
<div class="col-md-2">
<select class="select2-hide-search filter" name="status">
<option value=""><?php echo e(__('All Status')); ?></option>
<option value="Published"><?php echo e(__('Published')); ?></option>
<option value="Draft"><?php echo e(__('Draft')); ?></option>
<option value="Pending Review"><?php echo e(__('Pending Review')); ?></option>
</select>
</div>
<div class="col-md-2">
<select class="select2-hide-search filter product_type" name="type">
<option value=""><?php echo e(__('All Products')); ?></option>
<option value="<?php echo e(\App\Enums\ProductType::$Simple); ?>"><?php echo e(\App\Enums\ProductType::$Simple); ?></option>
<option value="<?php echo e(\App\Enums\ProductType::$Variable); ?>"><?php echo e(\App\Enums\ProductType::$Variable); ?></option>
<option value="<?php echo e(\App\Enums\ProductType::$Grouped); ?>"><?php echo e(\App\Enums\ProductType::$Grouped); ?></option>
<option value="<?php echo e(\App\Enums\ProductType::$External); ?>"><?php echo e(\App\Enums\ProductType::$External); ?></option>
</select>
</div>
<div class="col-md-2 margin-top-1p display_none sub_type">
<select class="select2-hide-search filter" name="sub_type">
<option value=""><?php echo e(__('All Types')); ?></option>
<option value="meta_downloadable"><?php echo e(__('Downloadable')); ?></option>
<option value="meta_virtual"><?php echo e(__('Virtual')); ?></option>
<?php if ($__env->exists('b2b::admin.b2b-option')) echo $__env->make('b2b::admin.b2b-option', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</select>
</div>
</div>
</div>
<div class="card-body product-table product-table-export-button px-4 need-batch-operation"
data-namespace="\App\Models\Product" data-column="code">
<div class="card-block pt-2 px-0">
<div class="col-sm-12">
<?php echo $__env->make('admin.layouts.includes.yajra-data-table', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
<?php echo $__env->make('admin.layouts.includes.delete-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset('public/datta-able/plugins/summer-note/summernote-lite.min.js')); ?>"></script>
<script src="<?php echo e(asset('public/dist/js/custom/product_list.min.js')); ?>"></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/ecom1.picotech.app/public_html/resources/views/admin/products/index.blade.php ENDPATH**/ ?>
|