Files
cloud-chip.cn/storage/framework/views/2b514aa22b5d10200f82764d1e8b1262.php
T
2026-08-08 18:27:38 +08:00

58 lines
3.6 KiB
PHP

<?php $siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司'); ?>
<?php $__env->startSection('title', $news->seoTitle() . ' - ' . $siteName); ?>
<?php $__env->startSection('description', $news->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-3xl">
<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('news.index')); ?>" class="hover:text-primary">新闻动态</a><span>/</span>
<span class="text-fg"><?php echo e($news->title); ?></span>
</nav>
<div class="flex items-center gap-3">
<span class="badge badge-primary"><?php echo e($news->categoryLabel()); ?></span>
<span class="text-sm text-muted"><?php echo e($news->published_at?->format('Y-m-d')); ?></span>
</div>
<h1 class="mt-3 text-2xl font-bold tracking-tight text-fg sm:text-3xl"><?php echo e($news->title); ?></h1>
<?php if($news->summary): ?><p class="lead mt-4 text-base text-muted"><?php echo e($news->summary); ?></p><?php endif; ?>
<?php if($news->body): ?>
<div class="prose mt-6 text-fg">
<?php if(preg_match('/<[a-z][a-z0-9]*[\s>]/i', $news->body)): ?>
<?php echo $news->body; ?>
<?php else: ?>
<?php echo nl2br(e($news->body)); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="mt-6">
<a href="<?php echo e(route('news.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/news/show.blade.php ENDPATH**/ ?>