Current File : /home/tradevaly/www/storage/framework/views/4803d6ba9dc7d20fd21b40f302a41262957bcb7e.php |
<?php $__env->startPush('title','holesale Suppliers, Manufacturers & China Traders and Exporters Premium Directory'); ?>
<?php $__env->startPush('style'); ?>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-info card-header-icon">
<h4 class="card-title">Products Table</h4>
</div>
<div class="card-body">
<div class="table-responsive">
<a class="btn btn-success text-end" href="<?php echo e(url('user/products/add')); ?>">ADD NEW</a>
<table class="table">
<thead>
<tr>
<th class="text-center">#</th>
<th>Image</th>
<th>Name</th>
<th>Category</th>
<!--<th>Messages</th>-->
<th class="text-right">Actions</th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
?>
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<?php $i++; ?>
<td class="text-center"><?php echo e($i); ?></td>
<td><img style="width:50px; border-radius:10%;" src="<?php echo e(asset('storage/images/admin/product/'.$product['image'])); ?>" alt=""></td>
<td><?php echo e($product->title); ?></td>
<td>
<?php echo e($product->category->name); ?>
</td>
<!--<td>-->
<!--<?php echo e($product->message->count()); ?>-->
<!--</td>-->
<?php if($product->deleted_at): ?>
<td class="td-actions text-right">
<a href="<?php echo e(route('user.addPrice',$product->id)); ?>" class="btn btn-danger" title="Add Price" style="color: #fff">
<i class="fa fa-tags"></i>
</a>
<a href="<?php echo e(route('user.trashed_products.return',$product->id)); ?>" class="btn btn-success" title="Edit">
<i class="fas fa-undo-alt"></i>
</a>
<a href="<?php echo e(route('user.trashed_products.destroy',$product->id)); ?>" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
<i class="fas fa-times"></i>
</a>
</td>
<?php else: ?>
<td class="td-actions text-end">
<?php if(!($product->price_type == "negotiable")): ?>
<a href="<?php echo e(route('user.addPrice',$product->id)); ?>" class="btn btn-danger" title="Add Price" style="color: #fff">
<i class="fa fa-tags"></i>
</a>
<?php endif; ?>
<a href="<?php echo e(url('user/product/edit',$product->id)); ?>" class="btn btn-success" title="Edit">
<i class="fas fa-pencil-alt"></i>
</a>
<a href="<?php echo e(route('user.delproducts',$product->id)); ?>" class="btn btn-danger" title="Delete" style="color: #fff">
<i class="fas fa-times"></i>
</a>
<?php if($product->status == 1): ?>
<a href="<?php echo e(route('user.featured.submit',$product->id)); ?>" class="btn btn-primary" title="Feature Product" style="color: #fff">
<i class="fas fa-ad"></i>
</a>
<?php endif; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('user.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/user/pages/product/index.blade.php ENDPATH**/ ?>