Viewing file: ae7a2b81c965977f883bfe5132eaa8ff5dd3c96d.php (6.95 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.item_list')); ?>
<?php $__env->startSection('css'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main-content'); ?> <div class="row page-titles mx-0"> <div class="col-sm-6 p-md-0"> <div class="welcome-text"> <h4><?php echo e(trans('layout.item')); ?></h4> <p class="mb-0"><?php echo e(trans('layout.your_item')); ?></p> </div> </div> <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#"><?php echo e(trans('layout.home')); ?></a></li> <li class="breadcrumb-item active"><a href="javascript:void(0)"><?php echo e(trans('layout.items')); ?></a></li> </ol> </div> </div> <!-- row -->
<div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo e(trans('layout.list')); ?></h4> <div class="pull-right"> <a href="<?php echo e(route('item.create')); ?>" class="btn btn-sm btn-primary"><?php echo e(trans('layout.create')); ?></a> </div> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-responsive-md"> <thead> <tr> <th><strong><?php echo e(trans('layout.name')); ?></strong></th> <th><strong><?php echo e(trans('layout.restaurant')); ?></strong></th> <th><strong><?php echo e(trans('layout.category')); ?></strong></th> <th><strong><?php echo e(trans('layout.discount')); ?></strong></th> <th><strong><?php echo e(trans('layout.discount_type')); ?></strong></th> <th><strong><?php echo e(trans('layout.tax')); ?></strong></th> <th><strong><?php echo e(trans('layout.price')); ?></strong></th> <th><strong><?php echo e(trans('layout.status')); ?></strong></th> <th></th> </tr> </thead> <tbody>
<?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($item->name); ?></td> <td><?php echo e($item->restaurant->name); ?></td> <td><?php echo e($item->category->name); ?></td> <td><?php echo e($item->discount); ?></td> <td><?php echo e($item->discount_type); ?></td> <td> <?php if($item->tax->title): ?> <?php echo e($item->tax->title); ?>
(<?php echo e($item->tax->type=='percentage'?formatNumber($item->tax->amount).'%':formatNumberWithCurrSymbol($item->tax->amount)); ?>) <?php endif; ?> </td> <td><?php echo e($item->price); ?></td> <td> <?php if($item->status=='active'): ?> <span class="badge light badge-success"><?php echo e(trans('layout.active')); ?></span> <?php elseif($item->status=='inactive'): ?> <span class="badge light badge-warning"><?php echo e(trans('layout.inactive')); ?></span> <?php endif; ?> </td> <td> <div class="dropdown"> <button type="button" class="btn btn-success light sharp" data-toggle="dropdown"> <svg width="20px" height="20px" viewBox="0 0 24 24" version="1.1"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <rect x="0" y="0" width="24" height="24"/> <circle fill="#000000" cx="5" cy="12" r="2"/> <circle fill="#000000" cx="12" cy="12" r="2"/> <circle fill="#000000" cx="19" cy="12" r="2"/> </g> </svg> </button> <div class="dropdown-menu"> <a class="dropdown-item" href="<?php echo e(route('item.edit',[$item])); ?>"><?php echo e(trans('layout.edit')); ?></a> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('layout.message.item_delete_warning')); ?>" data-action='<?php echo e(route('item.destroy',[$item])); ?>' data-input={"_method":"delete"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('layout.delete')); ?></button> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody> </table> </div> </div> </div> </div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/qr.picotech.app/public_html/resources/views/item/index.blade.php ENDPATH**/ ?>
|