<div class="modal-content" id="item_attribute">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title"><?php echo e(trans('item.itemVariant')); ?></h4>
    </div>
    <div class="modal-body" >
        <div class="box box-success">
            <div class="box-body">
                <?php echo $__env->make('item.editAttributeForm', ['attribute'=>$attribute], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="box-body">
                  <div class="row py-4">
                    <?php if($attributes->count() > 0): ?>
                    <h3><?php echo e(trans('item.Variants')); ?></h3>
                  <table class="table table-bordered table-striped table-responsive" id="myTable1">
                    <thead>
                      <tr>
                        <th class="hidden-xs">Name</th>
                        <th class="hidden-xs">SKU</th>
                        <th class="hidden-xs">Cost Price</th>
                        <th class="hidden-xs">Selling Price</th>
                        <th class="hidden-xs">Expired Date</th>
                        <th class="hidden-xs">Quantity</th>
                        <th class="hidden-xs">Status</th>
                        <th class="hidden-xs">Action</th>
                      </tr>
                    </thead>
                    <tbody>
                      <?php $__currentLoopData = $attributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                      <tr>
                      <td class="hidden-xs"><?php echo e($value->name); ?></td>
                      <td class="hidden-xs"><?php echo e($value->sku); ?></td>
                      <td class="hidden-xs"><?php echo e($value->cost_price); ?></td>
                      <td class="hidden-xs"><?php echo e($value->selling_price); ?></td>
                      <td class="hidden-xs"><?php echo e($value->exp_date); ?></td>
                      <td class="hidden-xs"><?php echo e($value->quantity); ?></td>
                      <td>
                        <label class="switch">
                          <input type="checkbox" name="status" submit-toggle="#changeStatus<?php echo e($value->id); ?>"
                          <?php echo e($value->status == '1' ? 'checked' : ''); ?>>
                          <span class="slider round"></span>
                        </label>
                        <form action="<?php echo e(route('itemattribute.update', $value->id)); ?>" method="POST"  id="changeStatus<?php echo e($value->id); ?>">
                          <?php echo csrf_field(); ?>
                          <?php echo method_field('PUT'); ?>
                          <input  type="hidden" name="status" value="<?php echo e($value->status == 1 ? 0 : 1); ?>" />
                        </form>
                      </td>
                      <td class="item_btn_group">
                        <?php
                        $actions = [
                          ['url'=>'#add','ajax-url'=>url('itemattribute/'.$value->id. '/edit?item_id='.$item->id), 'name'=>trans('item.edit'), 'icon'=>'pencil'],
                        ['url'=>'itemattribute/'.$value->id, 'name'=>'delete']
                      ];
                        ?>
                        <?php echo $__env->make('partials.actions', ['actions'=>$actions], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                      </td>
                      </tr>  
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                  </table>
                    <?php endif; ?>
                  </div>
                </div>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>    
</div><?php /**PATH /Users/ajitdas/prjs-mega/flexiblepos-v2.0/resources/views/item/attributeform.blade.php ENDPATH**/ ?>