| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/tipsysaigon.vn/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('admin_content'); ?>
<div class="table-agile-info">
<div class="panel panel-default">
<div class="panel-heading">
Liệt kê sản phẩm
<a class="btn btn-success" href="<?php echo e(URL::to('/add-product')); ?>"> Thêm sản phẩm</a>
</div>
<div class="row w3-res-tb">
<div class="col-sm-5 m-b-xs">
<select class="input-sm form-control w-sm inline v-middle">
<option value="0">Bulk action</option>
<option value="1">Delete selected</option>
<option value="2">Bulk edit</option>
<option value="3">Export</option>
</select>
<button class="btn btn-sm btn-default">Apply</button>
</div>
<div class="col-sm-4">
</div>
<div class="col-sm-3">
<div class="input-group">
<input type="text" class="input-sm form-control" placeholder="Search">
<span class="input-group-btn">
<button class="btn btn-sm btn-default" type="button">Go!</button>
</span>
</div>
</div>
</div>
<div class="table-responsive">
<?php
$message = Session::get('message');if ($message) {
echo '<span class="text-alert">',$message,'</span>';
Session::put('message',null);
// code...
}
?>
<table class="table table-striped b-t b-light">
<thead>
<tr>
<th style="width:20px;">
<label class="i-checks m-b-none">
<input type="checkbox"><i></i>
</label>
</th>
<th>Tên sản phẩm </th>
<th> Thuộc tính</th>
<th> Thư viện Ảnh </th>
<th> Hình Ảnh </th>
<th>Quốc gia</th>
<th>Danh mục SP </th>
<th>Thương Hiệu </th>
<th> trạng thái </th>
<th> SP Hot</th>
<th> SP đặt biệt</th>
<th> SP ưa chượng</th>
<th style="width:10px;"></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $all_product; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $pro): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><label class="i-checks m-b-none"><input type="checkbox" name="post[]"><i></i></label></td>
<td><?php echo e($pro -> product_name); ?></td>
<td><a href="<?php echo e(url('add-attr/'.$pro->product_id)); ?>">Thêm thuộc tính </td>
<td><a href="<?php echo e(url('add-gallery/'.$pro->product_id)); ?>">Thêm Ảnh </td>
<td><img src="public/uploads/product/<?php echo e($pro -> product_image); ?>" height="100" with="150"></td>
<td><?php echo e($pro -> country_name); ?></td>
<td><?php echo e($pro -> category_name); ?></td>
<td><?php echo e($pro -> brand_name); ?></td>
<td><span class="text-ellipsis">
<?php
if($pro ->product_status==0){
?>
<a href="<?php echo e(URL::to('/unactive-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-down"> </span></a>
<?php
}
else {
?>
<a href="<?php echo e(URL::to('/active-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-up"> </span></a>
<?php
}
?>
</span></td>
<td><span class="text-ellipsis">
<?php
if($pro ->product_hot==0){
?>
<a href="<?php echo e(URL::to('/unactive-hot-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-down"> </span></a>
<?php
}
else{
?>
<a href="<?php echo e(URL::to('/active-hot-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-up"> </span></a>
<?php
}
?>
</span></td>
<td><span class="text-ellipsis">
<?php
if($pro ->product_spe==0){
?>
<a href="<?php echo e(URL::to('/unactive-spe-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-down"> </span></a>
<?php
}
else {
?>
<a href="<?php echo e(URL::to('/active-spe-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-up"> </span></a>
<?php
}
?>
</span></td>
<td><span class="text-ellipsis">
<?php
if($pro ->product_like==0){
?>
<a href="<?php echo e(URL::to('/unactive-like-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-down"> </span></a>
<?php
}
else {
?>
<a href="<?php echo e(URL::to('/active-like-product/'.$pro->product_id)); ?>"> <span class="fa-thumb-styling fa fa-thumbs-up"> </span></a>
<?php
}
?>
</span></td>
<td>
<a href="<?php echo e(URL::to('/edit-product/'.$pro->product_id)); ?>" class="active styling edit" ui-toggle-class=""><i class="fa fa-pencil-square-o"></i></a>
<a onclick="return confirm('bạn có chắc muốn xóa không?')" href="<?php echo e(URL::to('/delete-product/'.$pro->product_id)); ?>" class="active" ui-toggle-class=""> <i class="fa fa-times text-danger text"></i></a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<span style="float: right;"><?php echo $all_product->links('pagination::bootstrap-4'); ?></span>
<tr>
<br>
<form action="<?php echo e(url('/importproduct-csv')); ?>" method="POST" enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<input type="file" name="file" accept=".xlsx"><br>
<input type="submit" value="Import CSV" name="import_csv" class="btn btn-warning">
</form>
</br>
<br>
<form action="<?php echo e(url('/exportproduct-csv')); ?>" method="POST">
<?php echo csrf_field(); ?>
<input type="submit" value="Export CSV" name="export_csv" class="btn btn-success">
</form>
</tr>
</br>
</footer>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /opt/lampp/htdocs/shopruou/resources/views/admin/product/all_product.blade.php ENDPATH**/ ?>