Current File : /home/tradevaly/public_html/storage/framework/views/522cb5ddc7ecbd3e603d8f77e7159e446545147c.php |
<?php $__env->startPush('style'); ?>
<link href="<?php echo e(asset('/assets/libs/select2/select2.min.css')); ?>" rel="stylesheet" type="text/css" />
<?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"><?php echo e(translate("Feature Product Request Sent")); ?></h4>
</div>
<div class="card-body">
<form action="<?php echo e(url('user/featured/product/create')); ?>" method="POST" class="outer-repeater">
<?php echo csrf_field(); ?>
<div class="row">
<div class="col-md-4 mb-3">
<div class="form-group">
<label class="bmd-label-floating">Select A Product</label>
<select class="form-control select2" name="product_id">
<option disabled selected>Select Product</option>
<?php $__currentLoopData = \App\Models\Product::where('supplier_id',Auth::id())->where('status',1)->latest()->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$feature_exitst = \App\Models\FeaturedRequest::where('product_id',$product->id)->first();
$feature_product_exitst = \App\Models\FeaturedProduct::where('product_id',$product->id)->first();
?>
<?php if(! $feature_exitst ): ?>
<?php if(! $feature_product_exitst ): ?>
<option value="<?php echo e($product->id); ?>"><?php echo e($product->title); ?></option>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<div class="col-md-4 mb-5" style="display:flex;align-content:center">
<button type="submit" class="btn btn-info pull-right mt-3">Request Send</button>
<div class="clearfix"></div>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-info card-header-icon">
<h4 class="card-title"><?php echo e(translate("Features Products")); ?></h4>
</div>
<div class="card-body">
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th class="text-center">#</th>
<th>Image</th>
<th><?php echo e(translate("Product Name")); ?></th>
<th>Category</th>
<th>Status</th>
<th class="text-right"><?php echo e(translate("Actions")); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($product->product): ?>
<tr>
<td class="text-center"><?php echo e($loop->iteration); ?></td>
<td><img style="width:50px; border-radius:10%;" src="<?php echo e(asset('storage/images/admin/product/'.$product->product->image)); ?>" alt=""></td>
<td><?php if(isset($product->product->title)): ?> <?php echo e($product->product->title); ?> <?php endif; ?></td>
<td>
<?php echo e($product->product->category->name); ?>
</td>
<td>
<?php if($product->status == 0): ?>
<span class="badge bg-warning">Pending</span>
<?php elseif($product->status == 1): ?>
<span class="badge bg-success">Approved</span>
<?php else: ?>
<span class="badge bg-danger">Rejeceted</span>
<?php endif; ?>
</td>
<td class="td-actions text-right">
<?php if($product->status == 0): ?>
<a href="<?php echo e(url('b2b/feature_product/requestdelete',$product->id)); ?>" name="about" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
Delete
</a>
<?php elseif($product->status == 1): ?>
<a href="<?php echo e(url('b2b/feature_product/delete',$product->id)); ?>" name="about" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
Delete
</a>
<?php endif; ?>
</td>
</tr>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<script src="<?php echo e(asset('/assets/libs/select2/select2.min.js')); ?>"></script>
<script>
$(function() {
$('#example').select2({
multiple: true,
maximumSelectionSize: 1,
tags: true
});
});
</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/featuredlist.blade.php ENDPATH**/ ?>