@extends('layouts.app') @php $siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司'); @endphp @section('title', $product->seoTitle() . ' - ' . $siteName) @section('description', $product->seoDescription()) @section('content')
{{ $product->model ?: $product->slug }}

{{ $product->name }}

@if ($product->category)

分类:{{ $product->category->name }}

@endif @if ($product->summary)

{{ $product->summary }}

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

规格参数

{{ $product->specs }}
@endif
@php // 结构化数据:Product + BreadcrumbList(审计 SEO-05) $productSchema = [ '@context' => 'https://schema.org', '@type' => 'Product', 'name' => $product->name, 'description' => $product->seoDescription(), 'brand' => ['@type' => 'Brand', 'name' => $siteName], 'url' => url()->current(), 'category' => $product->category?->name, ]; $breadcrumbSchema = [ '@context' => 'https://schema.org', '@type' => 'BreadcrumbList', 'itemListElement' => [ ['@type' => 'ListItem', 'position' => 1, 'name' => '首页', 'item' => url('/')], ['@type' => 'ListItem', 'position' => 2, 'name' => '产品中心', 'item' => route('products.index')], ['@type' => 'ListItem', 'position' => 3, 'name' => $product->name, 'item' => url()->current()], ], ]; @endphp
@endsection