如何放置链接,就像我制作链接销售物品但我失败了。我只想在仪表板上使用它,但是当我查看Store菜单时,它也有一个Sell Items链接。
if(isset($products) && $products) {
foreach ($products as $product => $value) {
$new_description = strlen($products[$product]->description) > 50 ? substr($products[$product]->description,0,50)."..." : $products[$product]->description;
$price = $products[$product]->option[0]->price;
$option = "";
// dd($products[$product]->option);
if(Auth::check()) {
if(Auth::user()->id == $products[$product]->seller_id) {
echo' <div class="col-xs-6">
<a href="'.URL::to('product/editproduct').'" class="btn btn-primary btn-sm btn-block">
<span class="glyphicon glyphicon-share-alt"></span> Continue shopping
</a>
</div>';
}
}