<article class="col-lg-12">
	<div class="card forms">
		<div class="card-header d-flex align-items-center justify-content-between">
			<h3>系统配送方式</h3>
		</div>
		<div class="card-body">
			<table class="table" class="form-horizontal">
				<colgroup>
					<col width="250px" />
					<col />
				</colgroup>

				<thead>
					<tr>
						<th>配送方式</th>
						<th>物流保价</th>
						<th>货到付款</th>
						<th>是否配置</th>
						<th>操作</th>
					</tr>
				</thead>

				<tbody>
					{set:$queryObj=Api::run('getListBySellerDelivery');$resultData=$queryObj->find()}
					{foreach:items=$resultData}
					{set:$data = Api::run('getSellerDeliveryExtendRowById',array('delivery_id'=>$item["id"]))}
					<tr>
						<td>{$item['name']}</td>
						<td>{if:$item['is_save_price']==1}是{else:}否{/if}</td>
						<td>{if:$item['type']==1}是{else:}否{/if}</td>
						<td>{if:$data}<strong class="text-success">已配置</strong>{else:}<strong class="text-danger">未配置</strong>{/if}</td>
						<td>
						    <a href="{url:/seller/delivery_edit/id/$item['id']}">
						        <i class="fa fa-edit fa-lg" title="配置"></i>
							</a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
			{$queryObj->getPageBar()}
		</div>
	</div>
</article>