<div class="ub-panel">
    <div class="head">
        <div class="title">产品</div>
    </div>
    <div class="body">
        <div class="ub-list-items">
            <div class="row">
                @foreach(\Module\Product\Util\ProductUtil::listLatest(8) as $record)
                    <div class="col-md-3 col-6">
                        <div class="item-p">
                            <a class="image" href="/product/{{$record['id']}}" style="padding:1rem 0 0 0;">
                                <div class="cover contain ub-cover-1-1" style="width:80%;margin:0 auto;background-image:url({{\ModStart\Core\Assets\AssetsUtil::fix($record['cover'])}});"></div>
                            </a>
                            <a class="title" href="/product/{{$record['id']}}">{{$record['title']}}</a>
                        </div>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
</div>




