@extends('frontend.layouts.app') @php use Illuminate\Support\Facades\Storage; $platformText = is_array($product->platforms) ? implode(', ', $product->platforms) : ''; $title = $product->seo_title ?: $product->name; $description = $product->seo_description ?: $product->summary; $ogType = 'product'; $ogImage = $product->cover ? Storage::url($product->cover) : null; @endphp @push('head') @endpush @section('content')

产品介绍

{!! nl2br(e($product->description)) !!}
@if($product->screenshots)

截图

@foreach($product->screenshots as $shot) {{ $product->name }} @endforeach
@endif
分类{{ $product->category?->name }}
浏览{{ $product->view_count }}
点击{{ $product->click_count }}
收费{{ $product->pricing_type ?? '未知' }}

标签

@foreach($product->tags as $tag) {{ $tag->name }} @endforeach
@include('frontend.partials.ad-slot', ['slotKey' => 'detail', 'title' => '推广位'])

相关推荐

@foreach($relatedProducts as $item) @include('frontend.partials.product-card', ['product' => $item]) @endforeach
@php $commentsEnabled = \App\Models\SiteSetting::value('comments_enabled', '1'); @endphp

评论

@if($commentsEnabled) @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf
验证码
@forelse($comments as $comment)
{{ $comment->nickname }} {{ $comment->created_at->format('Y-m-d H:i') }}
{{ $comment->content }}
@csrf
@if($comment->reply_content)
官方回复:{{ $comment->reply_content }}
@endif
@empty
暂无评论
@endforelse
@else
评论已关闭
@endif
@endsection