Files
cloud-chip.cn/storage/framework/views/76a517bf0b8aee43086be6a6d309df9b.php
2026-08-08 18:27:38 +08:00

67 lines
4.0 KiB
PHP

<?php $siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司'); ?>
<?php $__env->startSection('title', $product->seoTitle() . ' - ' . $siteName); ?>
<?php $__env->startSection('description', $product->seoDescription()); ?>
<?php $__env->startSection('content'); ?>
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
<div class="mx-auto max-w-5xl">
<nav class="mb-6 flex items-center gap-1.5 text-sm text-muted">
<a href="<?php echo e(url('/')); ?>" class="hover:text-primary">首页</a>
<span>/</span>
<a href="<?php echo e(route('products.index')); ?>" class="hover:text-primary">产品中心</a>
<span>/</span>
<span class="text-fg"><?php echo e($product->name); ?></span>
</nav>
<article class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
<span class="inline-block rounded bg-primary-soft px-2 py-1 font-mono text-xs font-medium text-primary"><?php echo e($product->model ?: $product->slug); ?></span>
<h1 class="mt-4 text-2xl font-bold tracking-tight text-fg sm:text-3xl"><?php echo e($product->name); ?></h1>
<?php if($product->category): ?>
<p class="mt-2 text-sm text-muted">分类:<?php echo e($product->category->name); ?></p>
<?php endif; ?>
<?php if($product->summary): ?>
<p class="mt-4 text-base text-muted"><?php echo e($product->summary); ?></p>
<?php endif; ?>
<?php if($product->description): ?>
<div class="prose mt-6 text-fg">
<?php echo nl2br(e($product->description)); ?>
</div>
<?php endif; ?>
<?php if($product->specs): ?>
<h2 class="mt-8 text-lg font-semibold text-fg">规格参数</h2>
<pre class="mt-3 overflow-x-auto rounded-lg border border-line bg-surface-2 p-4 font-mono text-sm text-fg"><?php echo e($product->specs); ?></pre>
<?php endif; ?>
</article>
<div class="mt-6">
<a href="<?php echo e(route('products.index')); ?>" class="inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:text-primary-hover">
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'arrow','size' => 16,'class' => 'rotate-180']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'arrow','size' => 16,'class' => 'rotate-180']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?> 返回产品中心
</a>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/products/show.blade.php ENDPATH**/ ?>