@php $goodids = array(); @endphp @foreach ($goods as $good) @foreach($good->params()->where('status',1)->get() as $params) @if(!in_array($good->id, $goodids)) @else @endif @if(!in_array($good->id, $goodids)) @else @endif @php array_push($goodids,$good->id); @endphp @endforeach @endforeach
编号 商品类型 商品名称 商户名称 规格 售价 成本价 会员赠品 满仓赠品 平台推荐位 排序 状态 创建时间
{{ $good->id }} {{ $good->category->title }} {{ $good->title }} {{ $good->seller->name }} {{ $params->value }} @if($params->score == 0){{ number_format($params->price,2) }}元 @else @if($params->price - $params->score > 0){{ number_format($params->price - $params->score,2) }}元 + @endif {{ number_format($params->score,2) }}积分 @endif {{ number_format($params->cost,2) }}元 @if($good->is_seller_gift == 0 && $good->status == 1)设为赠品@endif @if($good->is_seller_gift == 1 && $good->status == 1)赠品   取消@endif @if($good->is_mall_gift == 0 && $good->status == 1)设为满仓赠@endif @if($good->is_mall_gift == 1 && $good->status == 1)满仓   取消@endif @if($good->is_recommend == 1) 1.全积分购 @endif @if($good->is_hot_sell == 1) 2.全现金购 @endif @if($good->is_hot_changed == 1) 3.积分现金购 @endif @if($good->is_seller_package == 1) 4.首页99套餐 @endif {{ $good->sort }} {!! $good->status_text !!} {{ $good->created_at }} @if($good->status == 1)编辑@endif {{--@if($good->status == 1)编辑@endif--}} @if($good->canDel())删除@endif @if($good->canCancel())下架@endif 推荐到首页 @if($good->status == 0)上架@endif @if($good->is_seller_gift == 1 && $good->status == 1)取消赠品 @endif

注:1》删除商品- 未产生订单的商品可删除,删除操作不可逆。2》下架商品- 已产生订单的商品不可删除,只能下架,下架后不会再产生新订单,下架操作可通过上架操作恢复商品。

显示 条,共 {{ $goods->total() }} 条