Viewing file: 4993c6bb3a1cfd81264fbe84989557b51db0af4c.php (5.18 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('head'); ?> <?php echo $__env->make('layouts.partials.headersection',['title'=>'Inventory'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12 mt-2"> <div class="card"> <div class="card-body"> <?php $url=domain_info('full_domain'); ?> <div class="float-left"> <a href="<?php echo e(route('seller.inventory.index')); ?>" class="btn btn-outline-primary <?php if($status == ''): ?> active <?php endif; ?>"><?php echo e(__('Total')); ?> (<?php echo e($total); ?>)</a> <a href="?status=in" class="btn btn-outline-success <?php if($status=='in'): ?> active <?php endif; ?>"><?php echo e(__('In Stock')); ?>(<?php echo e($in_stock); ?>)</a> <a href="?status=out" class="btn btn-outline-danger <?php if($status=='out'): ?> active <?php endif; ?>"><?php echo e(__('Stock Out')); ?> (<?php echo e($out_stock); ?>)</a> </div>
<div class="float-right"> <form> <div class="input-group mb-2">
<input type="text" id="src" class="form-control " placeholder="#ABC-123" required="" name="src" autocomplete="off" value="<?php echo e($src ?? ''); ?>">
<div class="input-group-append"> <button class="btn btn-primary" type="submit"><i class="fas fa-search"></i></button> </div> </div> </form> </div> <div class="table-responsive"> <table class="table"> <thead> <tr> <th class="am-title"><?php echo e(__('Product')); ?></th> <th class="am-title"><?php echo e(__('SKU')); ?></th> <th class="am-title"><?php echo e(__('Stock Manage')); ?></th> <th class="am-title"><?php echo e(__('Status')); ?></th>
<th class="text-right"><?php echo e(__('Edit Quantity Available')); ?></th> </tr> </thead> <tbody>
<?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <form class="basicform" method="post" action="<?php echo e(route('seller.inventory.update',base64_encode($row->id))); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <tr> <td> <div> <a href="<?php echo e(route('seller.product.edit',$row->term_id)); ?>" class="d-flex"> <img class="product-img" src="<?php echo e(asset($row->term->preview->media->url ?? 'uploads/default.png')); ?>" alt=""> <div class="product-flex"> <span> <?php echo e(Str::limit($row->term->title,20)); ?>
</span> </div> </a> </div> </td> <td><?php echo e($row->sku); ?></td> <td><?php if($row->stock_manage==1): ?> <span class="badge badge-success"><?php echo e(__('Yes')); ?></span> <?php elseif($row->stock_manage==0): ?> <span class="badge badge-danger"><?php echo e(__('No')); ?></span> <?php endif; ?></td> <td> <select class="form-control" name="stock_status"> <option <?php if($row->stock_status== 1): ?> selected="" <?php endif; ?> value="1"><?php echo e(__('In Stock')); ?></option> <option <?php if($row->stock_status== 0): ?> selected="" <?php endif; ?> value="0"><?php echo e(__('Out Of Stock')); ?></option> </select>
</td> <td> <div class="edit-product-quantity float-right"> <?php if($row->stock_manage==1): ?> <input type="number" name="stock_qty" class="form-control" min="0" required value="<?php echo e($row->stock_qty); ?>" placeholder="Quantity"> <?php endif; ?> <button class="btn btn-primary basicbtn float-right" type="submit"><?php echo e(__('Save')); ?></button> </form> </div> </td> </tr> </form> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table> <?php echo e($posts->appends(array('status'=>$status))->links('vendor.pagination.bootstrap-4')); ?>
</div> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?> <script src="<?php echo e(asset('assets/js/form.js')); ?>"></script>
<?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Volumes/my-works/laravel/dokans/script/resources/views/seller/inventory/index.blade.php ENDPATH**/ ?>
|