Current File : //home/tradevaly/www/storage/framework/views/e21847320be8390f045c802e904728fc63f869e6.php |
<?php $__env->startPush('title'); ?> Products List <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
<!-- DataTables -->
<style>
nav.flex.items-center.justify-between {
display: none;
}
nav .pagination{
opacity:0;
visibility: hidden;
}
</style>
<link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> Dashboards <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?> Products List <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<a class="btn btn-success text-end" href="<?php echo e(url('b2b/addProduct')); ?>">ADD NEW</a>
<div class="row mb-2">
<div class="col-sm-4"></div>
<div class="col-sm-8"></div><!-- end col-->
</div>
<div class="table-responsive">
<table class="table" id="datatable-buttons">
<thead>
<tr>
<th class="text-center">#</th>
<th><?php echo e(translate("Title")); ?></th>
<th><?php echo e(translate("Category")); ?></th>
<th><?php echo e(translate("Company")); ?></th>
<th><?php echo e(translate("View Details")); ?></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><a href="<?php echo e(route('admin.product.pview', $product->slug)); ?>"><?php echo e($product['title']); ?></a></td>
<td >
<?php if($product->category): ?>
<?php echo e($product->category->name); ?> 5555</td>
<?php endif; ?>
<td >
<?php if($product->supplier): ?>
<?php echo e($product->supplier->name); ?>
<?php endif; ?>
</td>
<td>
<a class="btn btn-primary" href="<?php echo e(route('admin.product.pview', $product->slug)); ?>"><i class="fas fa-eye"></i></a>
<?php if($product->status == 0): ?>
<a class="btn btn-success" href="<?php echo e(route('admin.product.approve', $product->id)); ?>"><i class="fas fa-check"></i> Approved</a>
<a class="btn btn-warning" href="<?php echo e(route('admin.product.delete', $product->id)); ?>"><i class="fa fa-times"></i> Reject</a>
<?php endif; ?>
<a class="btn btn-danger" href="<?php echo e(route('admin.product.delete', $product->id)); ?>"><i class="fa fa-times"></i></a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- end row -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<!-- Required datatable js -->
<script src="<?php echo e(asset('/assets/libs/datatables/datatables.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/jszip/jszip.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/pdfmake/pdfmake.min.js')); ?>"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('#datatable-buttons').DataTable({
processing: true,
dom: 'Bfrtip',
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/users/product_list.blade.php ENDPATH**/ ?>