<?php /*a:1:{s:85:"D:\phpstudy\WWW\12xz\app\admin\view/default\warehousegoods\module\spec_inventory.html";i:1782629701;}*/ ?>
<?php if(!empty($module_data['spec']) and is_array($module_data['spec'])): ?>
    <div class="spec-inventory-list">
        <div class="am-nbfc">
            <span><?php if(empty($module_data['spec'][0]['spec'])): ?><?php echo MyLang('common_service.warehousegoods.goods_goods_spec_default_name'); else: ?><?php echo htmlentities((string) $module_data['spec'][0]['spec']); ?><?php endif; ?></span>
            <strong class="am-fr"><?php echo htmlentities((string) $module_data['spec'][0]['inventory']); ?></strong>
        </div>
        <?php if(count($module_data['spec']) > 1): ?>
            <a href="javascript:;" class="am-color-blue" data-am-modal="{target: '#warehousegoods-spec-inventory-modal-<?php echo htmlentities((string) $module_data['id']); ?>', width: 300}"><?php echo MyLang('view_title'); ?>(<?php echo count($module_data['spec']); ?>) ></a>
            <div class="am-modal am-modal-no-btn" tabindex="-1" id="warehousegoods-spec-inventory-modal-<?php echo htmlentities((string) $module_data['id']); ?>">
                <div class="am-modal-dialog">
                    <div class="am-modal-hd">
                        <span><?php echo MyLang('common_service.warehousegoods.goods_goods_spec_inventory_name'); ?></span>
                        <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
                    </div>
                    <div class="am-modal-bd">
                        <ul>
                            <?php foreach($module_data['spec'] as $sv): ?>
                                <li class="am-nbfc am-padding-sm">
                                    <p class="spec-name am-fl"><?php if(empty($sv['spec'])): ?><?php echo MyLang('common_service.warehousegoods.goods_goods_spec_default_name'); else: ?><?php echo htmlentities((string) $sv['spec']); ?><?php endif; ?></p>
                                    <strong class="am-fr"><?php echo htmlentities((string) $sv['inventory']); ?></strong>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                </div>
            </div>
        <?php endif; ?>
    </div>
<?php endif; ?>