@for($i = 0; $i < sizeof($category); $i++)
@if($i == 0)
@else
@endif
@php $count = 0; @endphp
@foreach($product->where('category', $category[$i]->uid) as $row)
@if($count < 8)
-
@auth
@if($wishlist->where('product_id', $row->product_uid)->count() == 0)
@else
@endif
@else
@endauth
@if($row->getOneDetail->first()->in_stock == 0 && $row->getOneDetail->first()->rental_instock == 0)
没货了
@elseif($row->getOneDetail->first()->rental_instock == 0)
购买
@elseif($row->getOneDetail->first()->in_stock == 0)
租借
@else
租借
购买
@endif
@money($row->ori_price)
@if($row->price != '')
@money($row->price)
@endif
@if($row->badge == 1)
HOT!
@elseif($row->badge == 2)
SALE!
@elseif($row->badge == 3)
Sold Out!
@endif
@include('interface.quickview')
@php $count++; @endphp
@endif
@endforeach
查看这类型所有书籍
@endfor