
<?php $__env->startSection('content'); ?>
    <div class="layui-card">
        <div class="layui-card-header layuiadmin-card-header-auto">
            <h2>类型</h2>
        </div>
        <div class="layui-card-body">
            <form class="layui-form" action="/admin/agent/charge/setting/update" method="post">
                <?php echo e(csrf_field()); ?>

                <div class="layui-form-item">
                    <label class="layui-form-label"style="width: 100px;"><strong class="item-required">*</strong>成为会员类型</label>
                    <div class="layui-input-block">
                        <input type="radio" name="type"   value="1" title="一次充值"  <?php if($setting->type == 1): ?> checked <?php endif; ?>>
                        <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i>
                            <div>一次充值</div>
                        </div>
                        <input type="radio" name="type"   value="2" title="累计充值" <?php if($setting->type == 2): ?> checked <?php endif; ?>>
                        <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon"></i>
                            <div>累计充值</div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
            <label class="layui-form-label" style="width: 100px;">复选框</label>
            <div class="layui-input-block">
                        <?php $__currentLoopData = $type; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                     <input type="checkbox" name="category[]" value="<?php echo e($item->id); ?>" title="<?php echo e($item->name); ?>"
                            <?php if(in_array($item->id,$setting->category)): ?> checked <?php endif; ?>>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="formDemo">确 认</button>
                        <a  class="layui-btn" href="<?php echo e(route('admin.apply')); ?>"  >返 回</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>