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

64 lines
4.6 KiB
PHP

<?php $__env->startSection('title', '新闻动态 - 深圳市云创芯电子有限公司'); ?>
<?php $__env->startSection('content'); ?>
<section class="hero-aurora">
<div class="hero-grid"></div>
<div class="relative max-w-8xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-24">
<p class="eyebrow">NEWS</p>
<h1 class="mt-3 text-3xl font-bold tracking-tight text-fg sm:text-4xl lg:text-5xl gradient-text">新闻动态</h1>
<p class="mt-4 max-w-2xl text-base text-muted">行业资讯、公司动态与展会活动,第一时间了解深圳市云创芯电子有限公司与 TypeC 快速充电生态。</p>
</div>
</section>
<section class="px-4 sm:px-6 lg:px-8 py-12 lg:py-16">
<div class="max-w-8xl mx-auto">
<div class="filter-bar mb-8">
<a href="<?php echo e(url('/news')); ?>" class="btn btn-sm <?php if(!$category): ?> btn-primary <?php endif; ?>">全部</a>
<?php $__currentLoopData = App\Models\News::CATEGORIES; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a href="<?php echo e(url('/news?category=' . $k)); ?>" class="btn btn-sm <?php if($category === $k): ?> btn-primary <?php endif; ?>"><?php echo e($v); ?></a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
<?php $__empty_1 = true; $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<a href="<?php echo e(route('news.show', $n->slug)); ?>" class="group glow-card rounded-xl border border-line bg-surface p-6 transition">
<div class="flex items-center justify-between">
<span class="badge badge-primary"><?php echo e($n->categoryLabel()); ?></span>
<span class="text-xs text-muted"><?php echo e($n->published_at?->format('Y-m-d')); ?></span>
</div>
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($n->title); ?></h3>
<p class="mt-2 line-clamp-3 text-sm text-muted"><?php echo e($n->summary); ?></p>
<span class="mt-4 inline-flex items-center gap-1 text-sm font-medium text-primary">阅读全文 <?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]] + (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]); ?>
<?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; ?></span>
</a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<p class="text-sm text-muted">暂无新闻。</p>
<?php endif; ?>
</div>
<div class="mt-8"><?php echo e($news->links('pagination::bootstrap-5')); ?></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/index.blade.php ENDPATH**/ ?>