初始化
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php $__env->startSection('title', '仪表盘'); ?>
|
||||
<?php $__env->startSection('page-title', '仪表盘'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<div class="stat-grid">
|
||||
<div class="stat-card"><span class="stat-num"><?php echo e($stats['products']); ?></span><span class="stat-label">产品</span></div>
|
||||
<div class="stat-card"><span class="stat-num"><?php echo e($stats['articles']); ?></span><span class="stat-label">文章</span></div>
|
||||
<div class="stat-card"><span class="stat-num"><?php echo e($stats['categories']); ?></span><span class="stat-label">分类</span></div>
|
||||
<div class="stat-card"><span class="stat-num"><?php echo e($stats['glossary']); ?></span><span class="stat-label">术语</span></div>
|
||||
<div class="stat-card"><span class="stat-num"><?php echo e($stats['threads']); ?></span><span class="stat-label">论坛帖</span></div>
|
||||
<div class="stat-card"><span class="stat-num"><?php echo e($stats['users']); ?></span><span class="stat-label">用户</span></div>
|
||||
<div class="stat-card"><span class="stat-num"><?php echo e($stats['messages']); ?></span><span class="stat-label">留言</span></div>
|
||||
</div>
|
||||
|
||||
<div class="admin-cols">
|
||||
<div class="card">
|
||||
<h2>最新留言</h2>
|
||||
<?php $__empty_1 = true; $__currentLoopData = $recentMessages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<div class="mini-row">
|
||||
<div><strong><?php echo e($m->name); ?></strong> <span class="muted"><?php echo e($m->email); ?></span></div>
|
||||
<div class="muted"><?php echo e(Str::limit($m->message, 60)); ?></div>
|
||||
</div>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
||||
<p class="muted">暂无留言。</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h2>最新帖子</h2>
|
||||
<?php $__empty_1 = true; $__currentLoopData = $recentThreads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<div class="mini-row">
|
||||
<div><strong><?php echo e($t->title); ?></strong></div>
|
||||
<div class="muted"><?php echo e($t->user->name ?? '匿名'); ?> · <?php echo e($t->board->name ?? ''); ?></div>
|
||||
</div>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
||||
<p class="muted">暂无帖子。</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/admin/dashboard.blade.php ENDPATH**/ ?>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,64 @@
|
||||
|
||||
|
||||
<?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**/ ?>
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '登录 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?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-md">
|
||||
<div class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg">登录</h1>
|
||||
<p class="mt-2 text-sm text-muted">欢迎回来,请登录您的账户。</p>
|
||||
|
||||
<form method="POST" action="<?php echo e(url('/login')); ?>" class="mt-6 space-y-5">
|
||||
<?php echo csrf_field(); ?>
|
||||
<div>
|
||||
<label for="email" class="mb-1.5 block text-sm font-medium text-fg">邮箱</label>
|
||||
<input id="email" name="email" type="email" value="<?php echo e(old('email')); ?>" required autofocus class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="password" class="mb-1.5 block text-sm font-medium text-fg">密码</label>
|
||||
<input id="password" name="password" type="password" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="captcha" class="mb-1.5 block text-sm font-medium text-fg">图形验证码</label>
|
||||
<div class="flex items-center gap-3">
|
||||
<input id="captcha" name="captcha" type="text" required autocomplete="off" maxlength="4" class="w-36 rounded-lg border border-line bg-surface px-3 py-2.5 text-sm uppercase tracking-widest text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<img src="<?php echo e(url('/captcha')); ?>?r=<?php echo e(time()); ?>" alt="图形验证码" title="看不清?点击刷新" id="captcha-img" onclick="this.src='<?php echo e(url('/captcha')); ?>?r='+Date.now()" class="h-11 cursor-pointer rounded-lg border border-line">
|
||||
</div>
|
||||
<p class="mt-1.5 text-xs text-muted">看不清?点击图片可刷新。连续输错 5 次将临时锁定 10 分钟。</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<input type="checkbox" id="remember" name="remember" class="h-4 w-4 rounded border-line accent-primary">
|
||||
<label for="remember" class="text-sm text-fg">记住我</label>
|
||||
</div>
|
||||
<button type="submit" class="inline-flex w-full items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-primary-hover">
|
||||
登录
|
||||
</button>
|
||||
<p class="text-center text-sm text-muted">
|
||||
还没有账号?<a href="<?php echo e(url('/register')); ?>" class="font-medium text-primary hover:text-primary-hover">立即注册</a>
|
||||
</p>
|
||||
</form>
|
||||
</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/auth/login.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,91 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '管理后台登录 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?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-md">
|
||||
<div class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
|
||||
<div class="mb-6 flex items-center gap-3">
|
||||
<span class="inline-flex h-11 w-11 items-center justify-center rounded-lg bg-primary-soft 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' => 'lock','size' => 24]] + (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' => 'lock','size' => 24]); ?>
|
||||
<?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>
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg">管理后台登录</h1>
|
||||
<p class="text-sm text-muted">仅限具备后台权限的账户使用。</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form method="POST" action="<?php echo e(url('/admin/login')); ?>" class="space-y-5">
|
||||
<?php echo csrf_field(); ?>
|
||||
<div>
|
||||
<label for="email" class="mb-1.5 block text-sm font-medium text-fg">邮箱</label>
|
||||
<input id="email" name="email" type="email" value="<?php echo e(old('email')); ?>" required autofocus class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="password" class="mb-1.5 block text-sm font-medium text-fg">密码</label>
|
||||
<input id="password" name="password" type="password" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="captcha" class="mb-1.5 block text-sm font-medium text-fg">图形验证码</label>
|
||||
<div class="flex items-center gap-3">
|
||||
<input id="captcha" name="captcha" type="text" required autocomplete="off" maxlength="4" class="w-36 rounded-lg border border-line bg-surface px-3 py-2.5 text-sm uppercase tracking-widest text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<img src="<?php echo e(url('/captcha')); ?>?r=<?php echo e(time()); ?>" alt="图形验证码" title="看不清?点击刷新" id="captcha-img" onclick="this.src='<?php echo e(url('/captcha')); ?>?r='+Date.now()" class="h-11 cursor-pointer rounded-lg border border-line">
|
||||
</div>
|
||||
<p class="mt-1.5 text-xs text-muted">看不清?点击图片可刷新。连续输错 5 次将临时锁定 10 分钟。</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<input type="checkbox" id="remember" name="remember" class="h-4 w-4 rounded border-line accent-primary">
|
||||
<label for="remember" class="text-sm text-fg">记住我</label>
|
||||
</div>
|
||||
<button type="submit" class="inline-flex w-full items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-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' => 'lock','size' => 20,'class' => 'text-white']] + (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' => 'lock','size' => 20,'class' => 'text-white']); ?>
|
||||
<?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; ?> 进入后台
|
||||
</button>
|
||||
<p class="text-center text-sm text-muted">
|
||||
<a href="<?php echo e(url('/')); ?>" class="font-medium text-primary hover:text-primary-hover">返回网站首页</a>
|
||||
</p>
|
||||
</form>
|
||||
</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/auth/admin-login.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,370 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
|
||||
<title><?php echo $__env->yieldContent('title', '管理后台'); ?> - 云创芯</title>
|
||||
<link rel="stylesheet" href="<?php echo e(asset('css/app.css')); ?>?v=<?php echo e(filemtime(public_path('css/app.css'))); ?>">
|
||||
</head>
|
||||
<body class="admin-body">
|
||||
<div class="admin-shell">
|
||||
<aside class="admin-side">
|
||||
<div class="admin-brand"><img src="<?php echo e(asset('images/logo-dark.png')); ?>" alt="logo" class="brand-logo" width="40" height="24"> 云创芯电子后台</div>
|
||||
<nav class="admin-nav">
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'dashboard.view')): ?><a href="<?php echo e(route('admin.dashboard')); ?>" class="<?php if(request()->routeIs('admin.dashboard')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'grid','size' => 18]] + (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' => 'grid','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'products.view')): ?><a href="<?php echo e(route('admin.products.index')); ?>" class="<?php if(request()->routeIs('admin.products.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'box','size' => 18]] + (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' => 'box','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'categories.view')): ?><a href="<?php echo e(route('admin.categories.index')); ?>" class="<?php if(request()->routeIs('admin.categories.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'tag','size' => 18]] + (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' => 'tag','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'articles.view')): ?><a href="<?php echo e(route('admin.articles.index')); ?>" class="<?php if(request()->routeIs('admin.articles.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'doc','size' => 18]] + (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' => 'doc','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if(auth()->user()->canPerm('articles.moderate') || auth()->user()->canPerm('forum.moderate')): ?><a href="<?php echo e(route('admin.moderation.index')); ?>" class="<?php if(request()->routeIs('admin.moderation.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','size' => 18]] + (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' => 'check','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'glossary.view')): ?><a href="<?php echo e(route('admin.glossary.index')); ?>" class="<?php if(request()->routeIs('admin.glossary.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'book','size' => 18]] + (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' => 'book','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'forum.view')): ?><a href="<?php echo e(route('admin.forum.boards.index')); ?>" class="<?php if(request()->routeIs('admin.forum.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'chat','size' => 18]] + (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' => 'chat','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'contacts.view')): ?><a href="<?php echo e(route('admin.contacts.index')); ?>" class="<?php if(request()->routeIs('admin.contacts.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'mail','size' => 18]] + (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' => 'mail','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'users.view')): ?><a href="<?php echo e(route('admin.users.index')); ?>" class="<?php if(request()->routeIs('admin.users.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'users','size' => 18]] + (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' => 'users','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'settings.view')): ?><a href="<?php echo e(route('admin.settings')); ?>" class="<?php if(request()->routeIs('admin.settings')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'settings','size' => 18]] + (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' => 'settings','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'appearance.view')): ?><a href="<?php echo e(route('admin.hero-slides.index')); ?>" class="<?php if(request()->routeIs('admin.hero-slides.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'layers','size' => 18]] + (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' => 'layers','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'appearance.view')): ?><a href="<?php echo e(route('admin.menus.index')); ?>" class="<?php if(request()->routeIs('admin.menus.*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'menu','size' => 18]] + (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' => 'menu','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
<?php if (\Illuminate\Support\Facades\Blade::check('canPerm', 'settings.update')): ?><a href="<?php echo e(route('admin.database')); ?>" class="<?php if(request()->routeIs('admin.database*')): ?> active <?php endif; ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'database','size' => 18]] + (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' => 'database','size' => 18]); ?>
|
||||
<?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><?php endif; ?>
|
||||
</nav>
|
||||
<div class="admin-foot">
|
||||
<a href="<?php echo e(url('/')); ?>" target="_blank"><?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; ?> 访问前台</a>
|
||||
<a href="<?php echo e(route('auth.settings')); ?>"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'lock','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' => 'lock','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; ?> 修改密码</a>
|
||||
<form method="POST" action="<?php echo e(url('/logout')); ?>"><?php echo csrf_field(); ?><button type="submit" class="btn-link">退出登录</button></form>
|
||||
</div>
|
||||
</aside>
|
||||
<main class="admin-main">
|
||||
<div class="admin-topbar">
|
||||
<h1><?php echo $__env->yieldContent('page-title', '管理后台'); ?></h1>
|
||||
<div class="admin-actions"><?php echo $__env->yieldContent('actions'); ?></div>
|
||||
</div>
|
||||
<?php if(session('success')): ?><div class="alert alert-success"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','size' => 18]] + (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' => 'check','size' => 18]); ?>
|
||||
<?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; ?> <?php echo e(session('success')); ?></div><?php endif; ?>
|
||||
<?php if($errors->any()): ?><div class="alert alert-danger"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'alert','size' => 18]] + (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' => 'alert','size' => 18]); ?>
|
||||
<?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; ?> 表单填写有误,请检查后重试。</div><?php endif; ?>
|
||||
<?php echo $__env->yieldContent('content'); ?>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/admin/layout.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,293 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '关于我们 - ' . App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司')); ?>
|
||||
<?php $__env->startSection('description', '了解深圳市云创芯电子有限公司(TypeC 产品顾问):专注多口 TypeC 接口 IC 与快充协议芯片的设计、量产与技术支持。'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 pt-14 lg:pt-20 pb-6">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<p class="text-sm font-medium tracking-wide text-primary">关于我们</p>
|
||||
<h1 class="mt-3 max-w-3xl text-3xl font-bold leading-tight tracking-tight text-fg sm:text-4xl lg:text-5xl">
|
||||
以芯片之力,连接更高效的充电世界
|
||||
</h1>
|
||||
<p class="mt-5 max-w-2xl text-base text-muted lg:text-lg">
|
||||
深圳市云创芯电子有限公司(TypeC 产品顾问)是一家专注于接口控制与电源管理芯片的半导体方案商,致力于为充电与外设厂商提供稳定、易集成、可量产的芯片与技术服务。
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-10">
|
||||
<div class="max-w-8xl mx-auto grid gap-10 lg:grid-cols-3">
|
||||
<div class="lg:col-span-1">
|
||||
<h2 class="text-xl font-bold tracking-tight text-fg">公司简介</h2>
|
||||
<p class="mt-3 text-sm text-muted">我们是谁,以及我们坚持的事。</p>
|
||||
</div>
|
||||
<div class="lg:col-span-2 space-y-4 text-[15px] leading-7 text-fg/90">
|
||||
<p>
|
||||
深圳市云创芯电子有限公司(CloudChip)成立于专注电源与接口协议的芯片赛道,核心团队来自芯片设计、协议栈与量产工程领域。我们围绕多口 PD 电源及其信号智能控制、协议转换与同步整流等关键环节,提供从选型、评估到量产导入的全流程支持。
|
||||
</p>
|
||||
<p>
|
||||
我们相信,一颗好芯片的价值不止于参数,更在于能否被工程师轻松集成、在产线上稳定出货。因此,我们把「易用性」与「可靠性」放在与性能同等重要的位置,并以完善的文档、参考设计与技术支持降低客户的研发门槛。
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="border-t border-line bg-surface px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="max-w-2xl">
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">核心能力</h2>
|
||||
<p class="mt-2 text-sm text-muted">覆盖芯片设计、协议支持、量产与服务的完整闭环。</p>
|
||||
</div>
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
|
||||
<div class="rounded-xl border border-line bg-surface p-6 shadow-card">
|
||||
<span class="inline-flex h-11 w-11 items-center justify-center rounded-lg bg-primary-soft 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' => 'box','size' => 24]] + (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' => 'box','size' => 24]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">芯片设计</h3>
|
||||
<p class="mt-2 text-sm text-muted">自研接口与电源管理 IP,覆盖多口 PD 电源及其信号智能控制与同步整流。</p>
|
||||
</div>
|
||||
<div class="rounded-xl border border-line bg-surface p-6 shadow-card">
|
||||
<span class="inline-flex h-11 w-11 items-center justify-center rounded-lg bg-primary-soft 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' => 'book','size' => 24]] + (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' => 'book','size' => 24]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">协议栈</h3>
|
||||
<p class="mt-2 text-sm text-muted">支持 PD3.X / PPS / SPRS 等快充协议,提供完整参考设计。</p>
|
||||
</div>
|
||||
<div class="rounded-xl border border-line bg-surface p-6 shadow-card">
|
||||
<span class="inline-flex h-11 w-11 items-center justify-center rounded-lg bg-primary-soft 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' => 'check','size' => 24]] + (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' => 'check','size' => 24]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">量产交付</h3>
|
||||
<p class="mt-2 text-sm text-muted">面向充电与外设厂商出货,建立稳定的质量与供货体系。</p>
|
||||
</div>
|
||||
<div class="rounded-xl border border-line bg-surface p-6 shadow-card">
|
||||
<span class="inline-flex h-11 w-11 items-center justify-center rounded-lg bg-primary-soft 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' => 'chat','size' => 24]] + (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' => 'chat','size' => 24]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">技术支持</h3>
|
||||
<p class="mt-2 text-sm text-muted">应用工程师协助方案评估、调试与量产导入。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">发展历程</h2>
|
||||
<p class="mt-2 text-sm text-muted">关键节点的持续积累。</p>
|
||||
<ol class="mt-8 space-y-6 border-l-2 border-line pl-6">
|
||||
<li>
|
||||
<p class="text-sm font-semibold text-primary">起步</p>
|
||||
<p class="mt-1 text-[15px] text-fg/90">聚焦多口 TypeC 接口 IC,完成首颗协议转换芯片流片与验证。</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-sm font-semibold text-primary">产品化</p>
|
||||
<p class="mt-1 text-[15px] text-fg/90">建立完整选型矩阵与参考设计,进入充电与外设客户量产导入。</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-sm font-semibold text-primary">平台化</p>
|
||||
<p class="mt-1 text-[15px] text-fg/90">搭建技术文档、术语库与论坛,形成面向工程师的开放支持体系。</p>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="border-t border-line bg-surface px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto grid gap-10 lg:grid-cols-2">
|
||||
<div>
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">资质与合规</h2>
|
||||
<ul class="mt-6 space-y-3 text-[15px] text-fg/90">
|
||||
<li class="flex items-start gap-3"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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>产品通过相关可靠性与环境测试,满足量产导入要求。</span></li>
|
||||
<li class="flex items-start gap-3"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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>完整的文档、规格书与参考设计交付体系。</span></li>
|
||||
<li class="flex items-start gap-3"><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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>规范的供应链与质量管控流程。</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">我们的价值观</h2>
|
||||
<div class="mt-6 grid gap-4 sm:grid-cols-2">
|
||||
<div class="rounded-xl border border-line bg-surface p-5 shadow-card">
|
||||
<h3 class="font-semibold text-fg">可靠优先</h3>
|
||||
<p class="mt-1 text-sm text-muted">把稳定性放在第一位,让客户用得安心。</p>
|
||||
</div>
|
||||
<div class="rounded-xl border border-line bg-surface p-5 shadow-card">
|
||||
<h3 class="font-semibold text-fg">工程师视角</h3>
|
||||
<p class="mt-1 text-sm text-muted">从集成与调试的真实痛点出发做产品。</p>
|
||||
</div>
|
||||
<div class="rounded-xl border border-line bg-surface p-5 shadow-card">
|
||||
<h3 class="font-semibold text-fg">开放协作</h3>
|
||||
<p class="mt-1 text-sm text-muted">以文档与社区降低技术门槛。</p>
|
||||
</div>
|
||||
<div class="rounded-xl border border-line bg-surface p-5 shadow-card">
|
||||
<h3 class="font-semibold text-fg">长期主义</h3>
|
||||
<p class="mt-1 text-sm text-muted">与客户共同成长,而非一锤子买卖。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 pb-16">
|
||||
<div class="max-w-8xl mx-auto rounded-2xl bg-primary px-6 py-10 text-center sm:px-10">
|
||||
<h2 class="text-xl font-bold tracking-tight text-white sm:text-2xl">想了解我们的芯片与方案?</h2>
|
||||
<p class="mt-2 text-sm text-white/85">无论是选型、样品还是技术合作,我们都乐于沟通。</p>
|
||||
<a href="<?php echo e(url('/contact')); ?>" class="mt-6 inline-flex items-center gap-2 rounded-lg bg-surface px-6 py-3 text-sm font-semibold text-primary transition hover:bg-surface/90">
|
||||
联系我们 <?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' => 18]] + (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' => 18]); ?>
|
||||
<?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>
|
||||
</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/about.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
|
||||
<?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**/ ?>
|
||||
@@ -0,0 +1,134 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '网站地图 - ' . App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司')); ?>
|
||||
<?php $__env->startSection('description', '网站地图:汇总本站全部主要页面与内容入口,便于浏览与检索。'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 pt-14 lg:pt-20 pb-6">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<p class="text-sm font-medium tracking-wide text-primary">网站地图</p>
|
||||
<h1 class="mt-3 max-w-3xl text-3xl font-bold leading-tight tracking-tight text-fg sm:text-4xl lg:text-5xl">
|
||||
全站页面与内容导航
|
||||
</h1>
|
||||
<p class="mt-5 max-w-2xl text-base text-muted lg:text-lg">
|
||||
这里汇总了本站的主要页面与内容入口。需要提交给搜索引擎的机读版本,请使用
|
||||
<a href="<?php echo e(url('/sitemap.xml')); ?>" class="text-primary hover:underline">sitemap.xml</a>。
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-10">
|
||||
<div class="max-w-8xl mx-auto grid gap-10 lg:grid-cols-3">
|
||||
<div class="lg:col-span-1">
|
||||
<h2 class="text-xl font-bold tracking-tight text-fg">核心页面</h2>
|
||||
<p class="mt-3 text-sm text-muted">企业官网的主要栏目。</p>
|
||||
</div>
|
||||
<div class="lg:col-span-2">
|
||||
<div class="grid gap-4 sm:grid-cols-2">
|
||||
<a href="<?php echo e(url('/')); ?>" class="group rounded-2xl border border-line bg-surface p-5 transition-colors hover:border-primary/40 hover:bg-surface-2">
|
||||
<p class="text-base font-semibold text-fg group-hover:text-primary">首页</p>
|
||||
<p class="mt-1 text-sm text-muted">企业概览与核心优势。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/about')); ?>" class="group rounded-2xl border border-line bg-surface p-5 transition-colors hover:border-primary/40 hover:bg-surface-2">
|
||||
<p class="text-base font-semibold text-fg group-hover:text-primary">关于我们</p>
|
||||
<p class="mt-1 text-sm text-muted">公司简介、能力与价值观。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/products')); ?>" class="group rounded-2xl border border-line bg-surface p-5 transition-colors hover:border-primary/40 hover:bg-surface-2">
|
||||
<p class="text-base font-semibold text-fg group-hover:text-primary">产品服务</p>
|
||||
<p class="mt-1 text-sm text-muted">芯片产品中心与方案。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/contact')); ?>" class="group rounded-2xl border border-line bg-surface p-5 transition-colors hover:border-primary/40 hover:bg-surface-2">
|
||||
<p class="text-base font-semibold text-fg group-hover:text-primary">联系我们</p>
|
||||
<p class="mt-1 text-sm text-muted">商务合作与技术支持。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/articles')); ?>" class="group rounded-2xl border border-line bg-surface p-5 transition-colors hover:border-primary/40 hover:bg-surface-2">
|
||||
<p class="text-base font-semibold text-fg group-hover:text-primary">技术文章</p>
|
||||
<p class="mt-1 text-sm text-muted">设计笔记与应用指南。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/glossary')); ?>" class="group rounded-2xl border border-line bg-surface p-5 transition-colors hover:border-primary/40 hover:bg-surface-2">
|
||||
<p class="text-base font-semibold text-fg group-hover:text-primary">术语库</p>
|
||||
<p class="mt-1 text-sm text-muted">接口与快充专业术语。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/forum')); ?>" class="group rounded-2xl border border-line bg-surface p-5 transition-colors hover:border-primary/40 hover:bg-surface-2">
|
||||
<p class="text-base font-semibold text-fg group-hover:text-primary">技术论坛</p>
|
||||
<p class="mt-1 text-sm text-muted">工程师交流与答疑。</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<?php if($products->isNotEmpty()): ?>
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-10 bg-surface">
|
||||
<div class="max-w-8xl mx-auto grid gap-10 lg:grid-cols-3">
|
||||
<div class="lg:col-span-1">
|
||||
<h2 class="text-xl font-bold tracking-tight text-fg">产品中心</h2>
|
||||
<p class="mt-3 text-sm text-muted">共 <?php echo e($products->count()); ?> 款已发布产品。</p>
|
||||
</div>
|
||||
<div class="lg:col-span-2">
|
||||
<ul class="divide-y divide-line rounded-2xl border border-line bg-surface">
|
||||
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<li>
|
||||
<a href="<?php echo e(route('products.show', $p->slug)); ?>" class="flex items-center justify-between gap-4 px-5 py-3.5 transition-colors hover:bg-surface-2">
|
||||
<span class="text-[15px] font-medium text-fg"><?php echo e($p->name); ?></span>
|
||||
<span class="text-sm text-muted"><?php echo e($p->model ?: '查看详情'); ?> →</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if($articles->isNotEmpty()): ?>
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-10">
|
||||
<div class="max-w-8xl mx-auto grid gap-10 lg:grid-cols-3">
|
||||
<div class="lg:col-span-1">
|
||||
<h2 class="text-xl font-bold tracking-tight text-fg">技术文章</h2>
|
||||
<p class="mt-3 text-sm text-muted">共 <?php echo e($articles->count()); ?> 篇已发布文章。</p>
|
||||
</div>
|
||||
<div class="lg:col-span-2">
|
||||
<ul class="divide-y divide-line rounded-2xl border border-line bg-surface">
|
||||
<?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<li>
|
||||
<a href="<?php echo e(route('articles.show', $a->slug)); ?>" class="flex items-center justify-between gap-4 px-5 py-3.5 transition-colors hover:bg-surface-2">
|
||||
<span class="text-[15px] font-medium text-fg"><?php echo e($a->title); ?></span>
|
||||
<span class="shrink-0 text-sm text-muted">→</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if($terms->isNotEmpty()): ?>
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-10 bg-surface">
|
||||
<div class="max-w-8xl mx-auto grid gap-10 lg:grid-cols-3">
|
||||
<div class="lg:col-span-1">
|
||||
<h2 class="text-xl font-bold tracking-tight text-fg">术语库</h2>
|
||||
<p class="mt-3 text-sm text-muted">共 <?php echo e($terms->count()); ?> 条术语。</p>
|
||||
</div>
|
||||
<div class="lg:col-span-2">
|
||||
<div class="flex flex-wrap gap-2.5">
|
||||
<?php $__currentLoopData = $terms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $g): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<a href="<?php echo e(route('glossary.show', $g->slug)); ?>" class="rounded-full border border-line bg-surface px-4 py-1.5 text-sm text-fg transition-colors hover:border-primary/40 hover:text-primary">
|
||||
<?php echo e($g->term); ?>
|
||||
|
||||
</a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
<?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/sitemap.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
|
||||
|
||||
$__newAttributes = [];
|
||||
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['name', 'size' => 20, 'class' => '']));
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (in_array($__key, $__propNames)) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
} else {
|
||||
$__newAttributes[$__key] = $__value;
|
||||
}
|
||||
}
|
||||
|
||||
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
|
||||
|
||||
unset($__propNames);
|
||||
unset($__newAttributes);
|
||||
|
||||
foreach (array_filter((['name', 'size' => 20, 'class' => '']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
}
|
||||
|
||||
$__defined_vars = get_defined_vars();
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
||||
}
|
||||
|
||||
unset($__defined_vars, $__key, $__value); ?>
|
||||
|
||||
<?php
|
||||
$icons = [
|
||||
'home' => '<path d="M3 11.5 12 4l9 7.5"/><path d="M5 10v10h14V10"/>',
|
||||
'user' => '<circle cx="12" cy="8" r="4"/><path d="M4 20a8 8 0 0 1 16 0"/>',
|
||||
'mail' => '<rect x="3" y="6" width="18" height="12" rx="2"/><path d="M3 7l9 6 9-6"/>',
|
||||
'phone' => '<path d="M5 4h4l2 5-3 2a12 12 0 0 0 5 5l2-3 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z"/>',
|
||||
'search' => '<circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/>',
|
||||
'send' => '<path d="M3 11l18-8-8 18-2-8z"/>',
|
||||
'check' => '<path d="M5 13l4 4 10-10"/>',
|
||||
'alert' => '<path d="M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0z"/><path d="M12 9v4"/><path d="M12 17h.01"/>',
|
||||
'arrow' => '<path d="M5 12h14"/><path d="M13 6l6 6-6 6"/>',
|
||||
'shield' => '<path d="M12 3v18"/><path d="M5 7l7-4 7 4v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/>',
|
||||
'menu' => '<path d="M4 7h16"/><path d="M4 12h16"/><path d="M4 17h16"/>',
|
||||
'close' => '<path d="M6 6l12 12"/><path d="M18 6 6 18"/>',
|
||||
'box' => '<path d="M3 7l9-4 9 4v10l-9 4-9-4z"/><path d="M3 7l9 4 9-4"/><path d="M12 11v10"/>',
|
||||
'doc' => '<path d="M6 3h8l4 4v14H6z"/><path d="M14 3v4h4"/><path d="M9 12h6"/><path d="M9 16h6"/>',
|
||||
'book' => '<path d="M5 4h11a2 2 0 0 1 2 2v14H7a2 2 0 0 1-2-2z"/><path d="M5 4v14"/>',
|
||||
'chat' => '<path d="M4 5h16v11H9l-5 4z"/>',
|
||||
'pin' => '<path d="M12 21s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/>',
|
||||
'lock' => '<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/>',
|
||||
'grid' => '<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',
|
||||
'tag' => '<path d="M3 12V4h8l9 9-8 8z"/><circle cx="8" cy="8" r="1.5"/>',
|
||||
'users' => '<circle cx="9" cy="8" r="3.5"/><path d="M3 20a6 6 0 0 1 12 0"/><path d="M16 4a3.5 3.5 0 0 1 0 7"/><path d="M17 14a6 6 0 0 1 4 6"/>',
|
||||
'plus' => '<path d="M12 5v14"/><path d="M5 12h14"/>',
|
||||
'edit' => '<path d="M4 20h4L19 9l-4-4L4 16z"/><path d="M14 5l4 4"/>',
|
||||
'trash' => '<path d="M4 7h16"/><path d="M9 7V4h6v3"/><path d="M6 7l1 13h10l1-13"/>',
|
||||
'settings' => '<circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M19.1 4.9 17 7M7 17l-2.1 2.1"/>',
|
||||
'database' => '<ellipse cx="12" cy="5" rx="8" ry="3"/><path d="M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5"/><path d="M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3"/>',
|
||||
'compass' => '<circle cx="12" cy="12" r="9"/><path d="M15 9l-2.5 5L7 16.5 9.5 11z"/>',
|
||||
'newspaper' => '<path d="M4 4h13v16H6a2 2 0 0 1-2-2z"/><path d="M17 8h3v10a2 2 0 0 1-2 2"/><path d="M7 8h7M7 12h7M7 16h5"/>',
|
||||
'zap' => '<path d="M13 2 4 14h7l-1 8 9-12h-7z"/>',
|
||||
'cpu' => '<rect x="6" y="6" width="12" height="12" rx="2"/><path d="M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3"/>',
|
||||
'layers' => '<path d="M12 3 3 8l9 5 9-5z"/><path d="M3 13l9 5 9-5"/>',
|
||||
'globe' => '<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><path d="M12 3a14 14 0 0 1 0 18 14 14 0 0 1 0-18z"/>',
|
||||
'link' => '<path d="M9 12h6"/><path d="M10 8H7a4 4 0 0 0 0 8h3"/><path d="M14 8h3a4 4 0 0 1 0 8h-3"/>',
|
||||
'arrowUpRight' => '<path d="M7 17 17 7"/><path d="M8 7h9v9"/>',
|
||||
'wechat' => '<path d="M8 4C4.5 4 2 6.4 2 9.2c0 1.6.9 3 2.3 4L4 16l3.2-1.6c.6.2 1.3.3 2 .3"/><path d="M21 13.5c0-2.1-2-3.8-4.4-3.8s-4.4 1.7-4.4 3.8 2 3.8 4.4 3.8c.5 0 1-.1 1.5-.2L20 18l-.5-1.5c1.1-.7 1.5-1.7 1.5-3z"/>',
|
||||
'weibo' => '<circle cx="9" cy="14" r="5"/><path d="M16 6a4 4 0 0 1 4 4"/><path d="M15.5 3.5a6 6 0 0 1 6 6"/>',
|
||||
'linkedin' => '<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M7 10v7M7 7v.01M11 17v-4a2 2 0 0 1 4 0v4M11 10v7"/>',
|
||||
];
|
||||
$paths = $icons[$name] ?? $icons['home'];
|
||||
?>
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="<?php echo e($size); ?>" height="<?php echo e($size); ?>" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="<?php echo e($class); ?>" aria-hidden="true" role="img"><?php echo $paths; ?></svg>
|
||||
<?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/components/icon.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,84 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '技术论坛 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl">技术论坛</h1>
|
||||
<p class="mt-2 text-sm text-muted">与工程师交流选型、调试与量产经验。</p>
|
||||
</div>
|
||||
|
||||
<?php if(auth()->guard()->guest()): ?>
|
||||
<div class="mb-8 flex flex-col gap-4 rounded-lg border border-line bg-surface p-5 shadow-soft sm:flex-row sm:items-center sm:justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="inline-flex h-11 w-11 items-center justify-center rounded-lg bg-primary-soft 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' => 'chat','size' => 24]] + (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' => 'chat','size' => 24]); ?>
|
||||
<?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>
|
||||
<p class="text-lg text-fg">登录后即可参与版块讨论、发帖与回复。</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<a href="<?php echo e(url('/login')); ?>" class="inline-flex items-center justify-center rounded-lg border border-line px-6 py-2.5 text-lg font-semibold text-fg transition hover:border-primary hover:text-primary">登录</a>
|
||||
<a href="<?php echo e(url('/register')); ?>" class="inline-flex items-center justify-center rounded-lg bg-primary px-6 py-2.5 text-lg font-semibold text-white transition hover:bg-primary-hover">注册</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $boards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $board): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('forum.board', $board->slug)); ?>" class="group flex flex-col rounded-lg border border-line bg-surface p-6 shadow-soft transition hover:-translate-y-0.5 hover:border-primary hover:shadow-card">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'chat','size' => 22]] + (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' => 'chat','size' => 22]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($board->name); ?></h3>
|
||||
<p class="mt-2 line-clamp-2 text-sm text-muted"><?php echo e($board->description); ?></p>
|
||||
<p class="mt-4 text-xs text-muted"><?php echo e($board->threads_count); ?> 个帖子</p>
|
||||
</a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
||||
<p class="text-sm text-muted">版块即将开放,敬请期待。</p>
|
||||
<?php endif; ?>
|
||||
</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/forum/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '注册 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?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-md">
|
||||
<div class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg">注册</h1>
|
||||
<p class="mt-2 text-sm text-muted">创建账户,参与论坛交流并投稿技术文章。</p>
|
||||
|
||||
<form method="POST" action="<?php echo e(url('/register')); ?>" class="mt-6 space-y-5">
|
||||
<?php echo csrf_field(); ?>
|
||||
<div>
|
||||
<label for="name" class="mb-1.5 block text-sm font-medium text-fg">姓名</label>
|
||||
<input id="name" name="name" type="text" value="<?php echo e(old('name')); ?>" maxlength="40" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="email" class="mb-1.5 block text-sm font-medium text-fg">邮箱</label>
|
||||
<input id="email" name="email" type="email" value="<?php echo e(old('email')); ?>" maxlength="120" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="real_name" class="mb-1.5 block text-sm font-medium text-fg">真实姓名(选填)</label>
|
||||
<input id="real_name" name="real_name" type="text" value="<?php echo e(old('real_name')); ?>" maxlength="40" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="phone" class="mb-1.5 block text-sm font-medium text-fg">手机号(选填)</label>
|
||||
<input id="phone" name="phone" type="tel" value="<?php echo e(old('phone')); ?>" maxlength="30" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="company" class="mb-1.5 block text-sm font-medium text-fg">公司名称(选填)</label>
|
||||
<input id="company" name="company" type="text" value="<?php echo e(old('company')); ?>" maxlength="120" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="industry" class="mb-1.5 block text-sm font-medium text-fg">行业/领域(选填)</label>
|
||||
<input id="industry" name="industry" type="text" value="<?php echo e(old('industry')); ?>" maxlength="60" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="password" class="mb-1.5 block text-sm font-medium text-fg">密码(至少 8 位)</label>
|
||||
<input id="password" name="password" type="password" required autocomplete="new-password" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="password_confirmation" class="mb-1.5 block text-sm font-medium text-fg">确认密码</label>
|
||||
<input id="password_confirmation" name="password_confirmation" type="password" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<button type="submit" class="inline-flex w-full items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-primary-hover">
|
||||
注册
|
||||
</button>
|
||||
<p class="text-center text-sm text-muted">
|
||||
已有账号?<a href="<?php echo e(url('/login')); ?>" class="font-medium text-primary hover:text-primary-hover">去登录</a>
|
||||
</p>
|
||||
</form>
|
||||
</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/auth/register.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,124 @@
|
||||
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
|
||||
|
||||
$__newAttributes = [];
|
||||
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['name' => 'body', 'value' => '']));
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (in_array($__key, $__propNames)) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
} else {
|
||||
$__newAttributes[$__key] = $__value;
|
||||
}
|
||||
}
|
||||
|
||||
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
|
||||
|
||||
unset($__propNames);
|
||||
unset($__newAttributes);
|
||||
|
||||
foreach (array_filter((['name' => 'body', 'value' => '']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
}
|
||||
|
||||
$__defined_vars = get_defined_vars();
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
||||
}
|
||||
|
||||
unset($__defined_vars, $__key, $__value); ?>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="<?php echo e(asset('vendor/quill/quill.snow.css')); ?>">
|
||||
<div class="rich-editor">
|
||||
<div id="quill-<?php echo e($name); ?>"></div>
|
||||
</div>
|
||||
<textarea name="<?php echo e($name); ?>" id="quill-input-<?php echo e($name); ?>" hidden><?php echo e($value); ?></textarea>
|
||||
|
||||
<script src="<?php echo e(asset('vendor/quill/quill.js')); ?>"></script>
|
||||
<script>
|
||||
(function () {
|
||||
var FIELD = '<?php echo e($name); ?>';
|
||||
var input = document.getElementById('quill-input-' + FIELD);
|
||||
if (typeof Quill === 'undefined' || !input) return;
|
||||
|
||||
var quill = new Quill('#quill-' + FIELD, {
|
||||
theme: 'snow',
|
||||
placeholder: '在此撰写文章正文,支持标题、列表、引用、代码与插入图片…',
|
||||
modules: {
|
||||
toolbar: {
|
||||
container: [
|
||||
[{ header: [1, 2, 3, false] }],
|
||||
['bold', 'italic', 'underline', 'strike'],
|
||||
[{ list: 'ordered' }, { list: 'bullet' }],
|
||||
['blockquote', 'code-block'],
|
||||
['link', 'image'],
|
||||
['clean']
|
||||
],
|
||||
handlers: { image: imageHandler }
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
quill.root.innerHTML = input.value || '';
|
||||
|
||||
var form = input.closest('form');
|
||||
if (form) {
|
||||
form.addEventListener('submit', function () {
|
||||
input.value = quill.root.innerHTML;
|
||||
});
|
||||
}
|
||||
|
||||
function imageHandler() {
|
||||
var fileInput = document.createElement('input');
|
||||
fileInput.type = 'file';
|
||||
fileInput.accept = 'image/*';
|
||||
fileInput.click();
|
||||
fileInput.onchange = function () {
|
||||
if (!fileInput.files.length) return;
|
||||
var fd = new FormData();
|
||||
fd.append('file', fileInput.files[0]);
|
||||
var token = (document.querySelector('input[name=_token]') || {}).value || '';
|
||||
fetch('<?php echo e(route('upload')); ?>', {
|
||||
method: 'POST',
|
||||
headers: { 'X-CSRF-TOKEN': token },
|
||||
body: fd
|
||||
})
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (d) {
|
||||
if (d.url) {
|
||||
var range = quill.getSelection(true);
|
||||
quill.insertEmbed(range.index, 'image', d.url, 'user');
|
||||
} else if (d.errors && d.errors.file) {
|
||||
alert(d.errors.file[0]);
|
||||
} else {
|
||||
alert('图片上传失败,请重试');
|
||||
}
|
||||
})
|
||||
.catch(function () { alert('图片上传失败,请重试'); });
|
||||
};
|
||||
}
|
||||
|
||||
// 通用文件上传(封面图等),供表单内上传按钮 onclick="uploadFile('cover')" 调用
|
||||
window.uploadFile = function (field) {
|
||||
var fileInput = document.getElementById(field + '-file');
|
||||
if (!fileInput || !fileInput.files.length) { alert('请先选择文件'); return; }
|
||||
var fd = new FormData();
|
||||
fd.append('file', fileInput.files[0]);
|
||||
var token = (document.querySelector('input[name=_token]') || {}).value || '';
|
||||
fetch('<?php echo e(route('upload')); ?>', {
|
||||
method: 'POST',
|
||||
headers: { 'X-CSRF-TOKEN': token },
|
||||
body: fd
|
||||
})
|
||||
.then(function (r) { return r.json(); })
|
||||
.then(function (d) {
|
||||
if (d.url) { document.getElementById(field + '-url').value = d.url; }
|
||||
else if (d.errors && d.errors.file) { alert(d.errors.file[0]); }
|
||||
else { alert('上传失败,请重试'); }
|
||||
})
|
||||
.catch(function () { alert('上传失败,请重试'); });
|
||||
};
|
||||
})();
|
||||
</script>
|
||||
<?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/components/rich-editor.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php $__env->startSection('title', __('Not Found')); ?>
|
||||
<?php $__env->startSection('code', '404'); ?>
|
||||
<?php $__env->startSection('message', __('Not Found')); ?>
|
||||
|
||||
<?php echo $__env->make('errors::minimal', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /www/wwwroot/cloud-chip.cn/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/404.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,101 @@
|
||||
|
||||
|
||||
<?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">SOLUTIONS</p>
|
||||
<h1 class="mt-3 max-w-3xl text-3xl font-bold tracking-tight text-fg sm:text-4xl lg:text-5xl gradient-text">TypeC 快速充电解决方案</h1>
|
||||
<p class="mt-4 max-w-2xl text-base text-muted lg:text-lg">覆盖 22W–140W 多功率段,面向充电器、移动电源、车充与扩展坞场景,提供从协议芯片到高集成 SoC 的参考设计与选型支持。</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">
|
||||
<form method="GET" class="filter-bar mb-8">
|
||||
<select name="power" onchange="this.form.submit()" class="select">
|
||||
<option value="">全部功率段</option>
|
||||
<?php $__currentLoopData = App\Models\Solution::POWER_SEGMENTS; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($k); ?>" <?php if($power === $k): echo 'selected'; endif; ?>><?php echo e($v); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</select>
|
||||
<select name="application" onchange="this.form.submit()" class="select">
|
||||
<option value="">全部应用场景</option>
|
||||
<?php $__currentLoopData = App\Models\Solution::APPLICATIONS; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($k); ?>" <?php if($application === $k): echo 'selected'; endif; ?>><?php echo e($v); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</select>
|
||||
<select name="platform" onchange="this.form.submit()" class="select">
|
||||
<option value="">全部芯片平台</option>
|
||||
<?php $__currentLoopData = App\Models\Solution::CHIP_PLATFORMS; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($k); ?>" <?php if($platform === $k): echo 'selected'; endif; ?>><?php echo e($v); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</select>
|
||||
<a href="<?php echo e(url('/solutions')); ?>" class="btn btn-sm">重置</a>
|
||||
</form>
|
||||
|
||||
<div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $solutions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('solutions.show', $s->slug)); ?>" class="group glow-card rounded-xl border border-line bg-surface p-6 transition">
|
||||
<div class="flex items-center justify-between">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'compass','size' => 22]] + (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' => 'compass','size' => 22]); ?>
|
||||
<?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>
|
||||
<?php if($s->power): ?><span class="badge badge-primary"><?php echo e($s->power); ?></span><?php endif; ?>
|
||||
</div>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($s->name); ?></h3>
|
||||
<p class="mt-2 text-sm text-muted"><?php echo e($s->summary); ?></p>
|
||||
<div class="mt-4 flex flex-wrap gap-2 text-xs">
|
||||
<span class="badge"><?php echo e($s->powerSegmentLabel()); ?></span>
|
||||
<span class="badge"><?php echo e($s->applicationLabel()); ?></span>
|
||||
<span class="badge"><?php echo e($s->chipPlatformLabel()); ?></span>
|
||||
</div>
|
||||
<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>
|
||||
</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/solutions/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,153 @@
|
||||
<?php $__env->startSection('title', $board->name . ' - 论坛'); ?>
|
||||
|
||||
<?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(route('forum.index')); ?>" class="hover:text-primary">论坛</a>
|
||||
<span>/</span>
|
||||
<span class="text-fg"><?php echo e($board->name); ?></span>
|
||||
</nav>
|
||||
|
||||
<div class="mb-6 flex flex-wrap items-center justify-between gap-3">
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl"><?php echo e($board->name); ?></h1>
|
||||
<p class="mt-2 text-sm text-muted"><?php echo e($board->description); ?></p>
|
||||
</div>
|
||||
<?php if(auth()->guard()->check()): ?>
|
||||
<a href="#new-thread" class="inline-flex items-center gap-1.5 rounded-lg bg-primary px-4 py-2 text-sm font-semibold text-white transition hover:bg-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' => 'plus','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' => 'plus','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; ?> 发起帖子
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo e(route('login')); ?>" class="inline-flex items-center gap-1.5 rounded-lg bg-primary px-4 py-2 text-sm font-semibold text-white transition hover:bg-primary-hover">
|
||||
登录后发帖
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="space-y-4">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $threads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $thread): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('forum.thread', $thread)); ?>" class="group flex items-center justify-between gap-4 rounded-lg border border-line bg-surface p-5 shadow-soft transition hover:border-primary hover:shadow-card">
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold text-fg transition group-hover:text-primary">
|
||||
<?php if($thread->is_pinned): ?><?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'pin','size' => 14,'class' => 'text-warning']] + (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' => 'pin','size' => 14,'class' => 'text-warning']); ?>
|
||||
<?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; ?> <?php endif; ?>
|
||||
<?php echo e($thread->title); ?>
|
||||
|
||||
</h3>
|
||||
<p class="mt-1 text-xs text-muted"><?php echo e($thread->user->name); ?> · <?php echo e($thread->created_at->format('Y-m-d')); ?> · <?php echo e($thread->views); ?> 浏览</p>
|
||||
</div>
|
||||
<span class="shrink-0 text-muted transition group-hover: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' => 20]] + (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' => 20]); ?>
|
||||
<?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($threads->links('pagination::bootstrap-5')); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if(auth()->guard()->check()): ?>
|
||||
<div id="new-thread" class="mt-8 rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
|
||||
<h2 class="text-lg font-semibold text-fg">发起新帖</h2>
|
||||
<form method="POST" action="<?php echo e(route('forum.threads.store')); ?>" class="mt-5 space-y-5">
|
||||
<?php echo csrf_field(); ?>
|
||||
<input type="hidden" name="board_id" value="<?php echo e($board->id); ?>">
|
||||
<div>
|
||||
<label for="title" class="mb-1.5 block text-sm font-medium text-fg">标题</label>
|
||||
<input id="title" type="text" name="title" maxlength="120" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
<div>
|
||||
<label for="body" class="mb-1.5 block text-sm font-medium text-fg">内容</label>
|
||||
<textarea id="body" name="body" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]"></textarea>
|
||||
</div>
|
||||
<button type="submit" class="inline-flex items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-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' => 'send','size' => 18]] + (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' => 'send','size' => 18]); ?>
|
||||
<?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; ?> 发布
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</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/forum/board.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
|
||||
|
||||
$__newAttributes = [];
|
||||
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['user' => null]));
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (in_array($__key, $__propNames)) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
} else {
|
||||
$__newAttributes[$__key] = $__value;
|
||||
}
|
||||
}
|
||||
|
||||
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
|
||||
|
||||
unset($__propNames);
|
||||
unset($__newAttributes);
|
||||
|
||||
foreach (array_filter((['user' => null]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
}
|
||||
|
||||
$__defined_vars = get_defined_vars();
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
||||
}
|
||||
|
||||
unset($__defined_vars, $__key, $__value); ?>
|
||||
|
||||
<?php if($user): ?>
|
||||
<?php $l = $user->level(); ?>
|
||||
<span class="inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold <?php if($l <= 1): ?> bg-surface-2 text-muted <?php elseif($l === 2): ?> bg-info-soft text-info <?php elseif($l === 3): ?> bg-primary-soft text-primary <?php elseif($l === 4): ?> bg-warning-soft text-warning <?php else: ?> bg-danger-soft text-danger <?php endif; ?>" title="会员等级 L<?php echo e($l); ?>">
|
||||
L<?php echo e($l); ?> <?php echo e($user->levelName()); ?>
|
||||
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/components/level-badge.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,389 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
|
||||
<section class="relative overflow-hidden bg-gradient-to-br from-primary to-primary-hover text-white">
|
||||
<div class="max-w-8xl mx-auto px-4 sm:px-6 lg:px-8 py-20 lg:py-28">
|
||||
<?php if($heroSlides->isEmpty()): ?>
|
||||
<p class="text-white/80">尚未配置首页轮播内容,请到后台「首页轮播」添加。</p>
|
||||
<?php elseif($heroMode === 'single'): ?>
|
||||
<?php echo $__env->make('partials.hero-slide', ['slide' => $heroSlides->first()], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
|
||||
<?php else: ?>
|
||||
<div class="hero-carousel" data-hero>
|
||||
<div class="hero-track">
|
||||
<?php $__currentLoopData = $heroSlides; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<div class="hero-slide <?php if($loop->first): ?> is-active <?php endif; ?>" data-index="<?php echo e($loop->index); ?>">
|
||||
<?php echo $__env->make('partials.hero-slide', ['slide' => $slide], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
|
||||
</div>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
|
||||
<?php if($heroSlides->count() > 1): ?>
|
||||
<button type="button" class="hero-arrow hero-prev" aria-label="上一条" data-prev>‹</button>
|
||||
<button type="button" class="hero-arrow hero-next" aria-label="下一条" data-next>›</button>
|
||||
<div class="hero-dots">
|
||||
<?php $__currentLoopData = $heroSlides; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<button type="button" class="hero-dot <?php if($loop->first): ?> is-active <?php endif; ?>" data-dot="<?php echo e($loop->index); ?>" aria-label="第 <?php echo e($loop->index + 1); ?> 条"></button>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="flex flex-wrap items-end justify-between gap-4">
|
||||
<div>
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">核心产品</h2>
|
||||
<p class="mt-1 text-sm text-muted">覆盖多口 TypeC 接口、协议转换与同步整流控制芯片</p>
|
||||
</div>
|
||||
<a href="<?php echo e(url('/products')); ?>" class="text-sm font-medium text-primary hover:underline">查看全部产品 →</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('products.show', $product->slug)); ?>" class="group flex flex-col rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-block w-fit rounded bg-primary-soft px-2 py-1 font-mono text-xs font-medium text-primary"><?php echo e($product->model ?: $product->slug); ?></span>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($product->name); ?></h3>
|
||||
<p class="mt-2 line-clamp-3 text-sm text-muted"><?php echo e($product->summary ?: Str::limit(strip_tags($product->description), 90)); ?></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>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="flex flex-wrap items-end justify-between gap-4">
|
||||
<div>
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">解决方案</h2>
|
||||
<p class="mt-1 text-sm text-muted">覆盖 30W–140W 多功率段与多场景的快充参考设计</p>
|
||||
</div>
|
||||
<a href="<?php echo e(url('/solutions')); ?>" class="text-sm font-medium text-primary hover:underline">查看全部方案 →</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $solutions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $solution): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('solutions.show', $solution->slug)); ?>" class="group flex flex-col rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-block w-fit rounded bg-primary-soft px-2 py-1 font-mono text-xs font-medium text-primary"><?php echo e($solution->power); ?></span>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($solution->name); ?></h3>
|
||||
<p class="mt-2 line-clamp-3 text-sm text-muted"><?php echo e($solution->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>
|
||||
</section>
|
||||
|
||||
|
||||
<?php if($articles->isNotEmpty()): ?>
|
||||
<section class="border-t border-line bg-surface px-4 py-14 sm:px-6 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="flex flex-wrap items-center justify-between gap-4">
|
||||
<div>
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">技术文章</h2>
|
||||
<p class="mt-1 text-sm text-muted">设计指南、应用笔记与行业方案解读</p>
|
||||
</div>
|
||||
<a href="<?php echo e(url('/articles')); ?>" class="text-sm font-medium text-primary hover:underline">浏览全部文章 →</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<a href="<?php echo e(route('articles.show', $article->slug)); ?>" class="group flex flex-col rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'doc','size' => 22]] + (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' => 'doc','size' => 22]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($article->title); ?></h3>
|
||||
<p class="mt-2 line-clamp-3 text-sm text-muted"><?php echo e($article->summary ?: Str::limit(strip_tags($article->body), 90)); ?></p>
|
||||
<span class="mt-4 text-xs text-muted"><?php echo e($article->published_at?->format('Y-m-d')); ?></span>
|
||||
</a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if($news->isNotEmpty()): ?>
|
||||
<section class="border-t border-line bg-surface px-4 py-14 sm:px-6 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="flex flex-wrap items-center justify-between gap-4">
|
||||
<div>
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">新闻动态</h2>
|
||||
<p class="mt-1 text-sm text-muted">行业资讯、公司动态与展会活动</p>
|
||||
</div>
|
||||
<a href="<?php echo e(url('/news')); ?>" class="text-sm font-medium text-primary hover:underline">浏览全部新闻 →</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<a href="<?php echo e(route('news.show', $item->slug)); ?>" class="group flex flex-col rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-block w-fit rounded bg-primary-soft px-2 py-1 font-mono text-xs font-medium text-primary"><?php echo e($item->categoryLabel()); ?></span>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($item->title); ?></h3>
|
||||
<p class="mt-2 line-clamp-3 text-sm text-muted"><?php echo e($item->summary); ?></p>
|
||||
<span class="mt-4 text-xs text-muted"><?php echo e($item->published_at?->format('Y-m-d')); ?></span>
|
||||
</a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<h2 class="text-2xl font-bold tracking-tight text-fg">能力与资源</h2>
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
|
||||
<a href="<?php echo e(url('/products')); ?>" class="group rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'box','size' => 22]] + (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' => 'box','size' => 22]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">产品中心</h3>
|
||||
<p class="mt-1 text-sm text-muted">多口 TypeC 接口IC 完整选型。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/articles')); ?>" class="group rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'doc','size' => 22]] + (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' => 'doc','size' => 22]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">技术文章</h3>
|
||||
<p class="mt-1 text-sm text-muted">设计指南、应用笔记与方案解读。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/glossary')); ?>" class="group rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'book','size' => 22]] + (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' => 'book','size' => 22]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">术语库</h3>
|
||||
<p class="mt-1 text-sm text-muted">PD / PHY / 快充协议关键术语速查。</p>
|
||||
</a>
|
||||
<a href="<?php echo e(url('/forum')); ?>" class="group rounded-xl border border-line bg-surface p-6 shadow-card transition hover:-translate-y-0.5 hover:shadow-lg">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'chat','size' => 22]] + (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' => 'chat','size' => 22]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 font-semibold text-fg">技术论坛</h3>
|
||||
<p class="mt-1 text-sm text-muted">与工程师交流选型、调试与量产经验。</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="px-4 sm:px-6 lg:px-8 pb-16">
|
||||
<div class="max-w-8xl mx-auto rounded-2xl bg-surface-2 px-6 py-10 text-center sm:px-10">
|
||||
<h2 class="text-xl font-bold tracking-tight text-fg sm:text-2xl">需要选型支持或样品申请?</h2>
|
||||
<p class="mt-2 text-sm text-muted">我们的应用工程师可协助您完成方案评估与量产导入。</p>
|
||||
<a href="<?php echo e(url('/contact')); ?>" class="mt-6 inline-flex items-center gap-2 rounded-lg bg-primary px-6 py-3 text-sm font-semibold text-white transition hover:bg-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' => 18]] + (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' => 18]); ?>
|
||||
<?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>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
var carousels = document.querySelectorAll('[data-hero]');
|
||||
carousels.forEach(function (root) {
|
||||
var slides = Array.prototype.slice.call(root.querySelectorAll('.hero-slide'));
|
||||
var dots = Array.prototype.slice.call(root.querySelectorAll('.hero-dot'));
|
||||
if (slides.length < 2) return;
|
||||
|
||||
var current = 0;
|
||||
var timer = null;
|
||||
var INTERVAL = 6000;
|
||||
|
||||
function show(index) {
|
||||
current = (index + slides.length) % slides.length;
|
||||
slides.forEach(function (s, i) {
|
||||
s.classList.toggle('is-active', i === current);
|
||||
});
|
||||
dots.forEach(function (d, i) {
|
||||
d.classList.toggle('is-active', i === current);
|
||||
});
|
||||
}
|
||||
|
||||
function next() { show(current + 1); }
|
||||
function prev() { show(current - 1); }
|
||||
|
||||
function start() {
|
||||
stop();
|
||||
timer = setInterval(next, INTERVAL);
|
||||
}
|
||||
function stop() {
|
||||
if (timer) { clearInterval(timer); timer = null; }
|
||||
}
|
||||
|
||||
root.querySelector('[data-next]').addEventListener('click', function () { next(); start(); });
|
||||
root.querySelector('[data-prev]').addEventListener('click', function () { prev(); start(); });
|
||||
dots.forEach(function (d) {
|
||||
d.addEventListener('click', function () {
|
||||
show(parseInt(d.getAttribute('data-dot'), 10));
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
root.addEventListener('mouseenter', stop);
|
||||
root.addEventListener('mouseleave', start);
|
||||
|
||||
show(0);
|
||||
start();
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<?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/home.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
|
||||
<?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**/ ?>
|
||||
@@ -0,0 +1,117 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '产品中心 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl">产品中心</h1>
|
||||
<p class="mt-2 text-sm text-muted">多口 TypeC 接口 IC、协议转换与同步整流控制芯片完整选型。</p>
|
||||
</div>
|
||||
|
||||
<form method="GET" class="flex flex-wrap items-end gap-3">
|
||||
<div class="min-w-[220px] flex-1">
|
||||
<label class="mb-1.5 block text-sm font-medium text-fg">搜索</label>
|
||||
<div class="relative">
|
||||
<span class="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','size' => 18]] + (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' => 'search','size' => 18]); ?>
|
||||
<?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>
|
||||
<input type="text" name="q" value="<?php echo e($q); ?>" placeholder="搜索名称、型号..." class="w-full rounded-lg border border-line bg-surface py-2.5 pl-10 pr-3 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full sm:w-56">
|
||||
<label class="mb-1.5 block text-sm font-medium text-fg">分类</label>
|
||||
<select name="category" onchange="this.form.submit()" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<option value="">全部分类</option>
|
||||
<?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($c->id); ?>" <?php if((int) $categoryId === $c->id): echo 'selected'; endif; ?>><?php echo e($c->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="inline-flex items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-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' => 'search','size' => 18]] + (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' => 'search','size' => 18]); ?>
|
||||
<?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; ?> 查询
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('products.show', $product->slug)); ?>" class="group flex flex-col rounded-lg border border-line bg-surface p-6 shadow-soft transition hover:-translate-y-0.5 hover:border-primary hover:shadow-card">
|
||||
<span class="inline-block w-fit rounded bg-primary-soft px-2 py-1 font-mono text-xs font-medium text-primary"><?php echo e($product->model ?: $product->slug); ?></span>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($product->name); ?></h3>
|
||||
<p class="mt-2 line-clamp-3 text-sm text-muted"><?php echo e($product->summary ?: Str::limit(strip_tags($product->description), 90)); ?></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($products->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/products/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,96 @@
|
||||
|
||||
|
||||
<?php $siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司'); ?>
|
||||
<?php $__env->startSection('title', $solution->seoTitle() . ' - ' . $siteName); ?>
|
||||
<?php $__env->startSection('description', $solution->seoDescription()); ?>
|
||||
|
||||
<?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-14 lg:py-20">
|
||||
<nav class="mb-5 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('solutions.index')); ?>" class="hover:text-primary">解决方案</a><span>/</span>
|
||||
<span class="text-fg"><?php echo e($solution->name); ?></span>
|
||||
</nav>
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<?php if($solution->power): ?><span class="badge badge-primary"><?php echo e($solution->power); ?></span><?php endif; ?>
|
||||
<span class="badge"><?php echo e($solution->powerSegmentLabel()); ?></span>
|
||||
<span class="badge"><?php echo e($solution->applicationLabel()); ?></span>
|
||||
<span class="badge"><?php echo e($solution->chipPlatformLabel()); ?></span>
|
||||
</div>
|
||||
<h1 class="mt-4 max-w-3xl text-3xl font-bold tracking-tight text-fg sm:text-4xl gradient-text"><?php echo e($solution->name); ?></h1>
|
||||
<p class="mt-4 max-w-2xl text-base text-muted"><?php echo e($solution->summary); ?></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 grid gap-10 lg:grid-cols-3">
|
||||
<div class="lg:col-span-2 space-y-6">
|
||||
<?php if($solution->description): ?>
|
||||
<div class="prose text-fg"><?php echo nl2br(e($solution->description)); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($solution->advantagesList()): ?>
|
||||
<h2 class="text-xl font-bold text-fg">方案优势</h2>
|
||||
<div class="grid gap-4 sm:grid-cols-2">
|
||||
<?php $__currentLoopData = $solution->advantagesList(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<div class="flex items-start gap-3 rounded-lg border border-line bg-surface p-4">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'check','size' => 20,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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 class="text-sm text-fg"><?php echo e($a); ?></span>
|
||||
</div>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<aside class="lg:col-span-1">
|
||||
<div class="glass rounded-2xl p-6 lg:sticky lg:top-24">
|
||||
<h3 class="text-lg font-semibold text-fg">获取方案详情</h3>
|
||||
<p class="mt-2 text-sm text-muted">留下需求,我们的应用工程师将为您提供完整参考设计与选型支持。</p>
|
||||
<a href="<?php echo e(url('/contact')); ?>?subject=<?php echo e(urlencode($solution->name)); ?>" class="cta-glow mt-5 w-full justify-center rounded-lg px-5 py-3 text-sm font-semibold">联系获取方案 <?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' => 18]] + (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' => 18]); ?>
|
||||
<?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>
|
||||
</aside>
|
||||
</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/solutions/show.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php if($paginator->hasPages()): ?>
|
||||
<nav class="d-flex justify-items-center justify-content-between">
|
||||
<div class="d-flex justify-content-between flex-fill d-sm-none">
|
||||
<ul class="pagination">
|
||||
|
||||
<?php if($paginator->onFirstPage()): ?>
|
||||
<li class="page-item disabled" aria-disabled="true">
|
||||
<span class="page-link"><?php echo app('translator')->get('pagination.previous'); ?></span>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev"><?php echo app('translator')->get('pagination.previous'); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if($paginator->hasMorePages()): ?>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next"><?php echo app('translator')->get('pagination.next'); ?></a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="page-item disabled" aria-disabled="true">
|
||||
<span class="page-link"><?php echo app('translator')->get('pagination.next'); ?></span>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="d-none flex-sm-fill d-sm-flex align-items-sm-center justify-content-sm-between">
|
||||
<div>
|
||||
<p class="small text-muted">
|
||||
<?php echo __('Showing'); ?>
|
||||
|
||||
<span class="fw-semibold"><?php echo e($paginator->firstItem()); ?></span>
|
||||
<?php echo __('to'); ?>
|
||||
|
||||
<span class="fw-semibold"><?php echo e($paginator->lastItem()); ?></span>
|
||||
<?php echo __('of'); ?>
|
||||
|
||||
<span class="fw-semibold"><?php echo e($paginator->total()); ?></span>
|
||||
<?php echo __('results'); ?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul class="pagination">
|
||||
|
||||
<?php if($paginator->onFirstPage()): ?>
|
||||
<li class="page-item disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>">
|
||||
<span class="page-link" aria-hidden="true">‹</span>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev" aria-label="<?php echo app('translator')->get('pagination.previous'); ?>">‹</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
|
||||
<?php if(is_string($element)): ?>
|
||||
<li class="page-item disabled" aria-disabled="true"><span class="page-link"><?php echo e($element); ?></span></li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if(is_array($element)): ?>
|
||||
<?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php if($page == $paginator->currentPage()): ?>
|
||||
<li class="page-item active" aria-current="page"><span class="page-link"><?php echo e($page); ?></span></li>
|
||||
<?php else: ?>
|
||||
<li class="page-item"><a class="page-link" href="<?php echo e($url); ?>"><?php echo e($page); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
|
||||
|
||||
<?php if($paginator->hasMorePages()): ?>
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next" aria-label="<?php echo app('translator')->get('pagination.next'); ?>">›</a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="page-item disabled" aria-disabled="true" aria-label="<?php echo app('translator')->get('pagination.next'); ?>">
|
||||
<span class="page-link" aria-hidden="true">›</span>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /www/wwwroot/cloud-chip.cn/vendor/laravel/framework/src/Illuminate/Pagination/resources/views/bootstrap-5.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,124 @@
|
||||
<?php $__env->startSection('title', '站点设置'); ?>
|
||||
<?php $__env->startSection('page-title', '站点设置'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<form method="POST" action="<?php echo e(route('admin.settings.update')); ?>" class="form-card">
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php echo method_field('PUT'); ?>
|
||||
|
||||
<div class="field">
|
||||
<label>站点名称</label>
|
||||
<input name="site_name" class="input" value="<?php echo e(old('site_name', $settings['site_name'] ?? '')); ?>" required>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>站点描述(默认 description)</label>
|
||||
<input name="site_description" id="site_description" class="input" value="<?php echo e(old('site_description', $settings['site_description'] ?? '')); ?>">
|
||||
<p class="form-hint">搜索结果摘要,建议 ≤ 160 字符(超出会被截断)。<span class="char-count" id="cnt-site_description">0 / 160</span></p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>SEO 默认标题</label>
|
||||
<input name="seo_title_default" id="seo_title_default" class="input" value="<?php echo e(old('seo_title_default', $settings['seo_title_default'] ?? '')); ?>">
|
||||
<p class="form-hint">浏览器标签与搜索结果标题,建议 ≤ 60 字符(超出会被截断)。<span class="char-count" id="cnt-seo_title_default">0 / 60</span></p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>SEO 默认描述</label>
|
||||
<input name="seo_description_default" id="seo_description_default" class="input" value="<?php echo e(old('seo_description_default', $settings['seo_description_default'] ?? '')); ?>">
|
||||
<p class="form-hint">全站默认 meta description,建议 ≤ 160 字符。<span class="char-count" id="cnt-seo_description_default">0 / 160</span></p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>ICP 备案号</label>
|
||||
<input name="icp_no" class="input" value="<?php echo e(old('icp_no', $settings['icp_no'] ?? '')); ?>" placeholder="粤ICP备xxxxx号-x">
|
||||
<p class="form-hint">工信部备案号,将链接至 https://beian.miit.gov.cn/</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>公安网备号(联网备案)</label>
|
||||
<input name="security_filing_no" class="input" value="<?php echo e(old('security_filing_no', $settings['security_filing_no'] ?? '')); ?>" placeholder="粤公网安备XXXXXXXXXXXX号">
|
||||
<p class="form-hint">按公安局要求悬挂联网备案号,格式「X公网安备XXXXXXXXXXXX号」,将链接至 https://beian.mps.gov.cn/</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>Logo 地址(站内横版展示)</label>
|
||||
<input name="logo_url" class="input" value="<?php echo e(old('logo_url', $settings['logo_url'] ?? '')); ?>" placeholder="/images/logo-dark.png">
|
||||
<p class="form-hint">建议用 PNG,高度 56px(2x 高清屏适配),置于 public/images/ 下。</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>主题配色(前台)</label>
|
||||
<?php
|
||||
$themeSwatches = ['azure' => '#4a8af4', 'slate' => '#6e8cb0', 'indigo' => '#7b7ef0', 'teal' => '#2bb6a4', 'amber' => '#e8a13c'];
|
||||
$themeLabels = ['azure' => '沉稳蓝(默认)', 'slate' => '沉静灰蓝', 'indigo' => '蓝紫', 'teal' => '青绿', 'amber' => '暖琥珀'];
|
||||
$currentTheme = $settings['theme'] ?? 'azure';
|
||||
?>
|
||||
<div class="theme-options">
|
||||
<?php $__currentLoopData = $themeSwatches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<label class="theme-opt <?php if($currentTheme === $key): ?> active <?php endif; ?>">
|
||||
<input type="radio" name="theme" value="<?php echo e($key); ?>" <?php if($currentTheme === $key): ?> checked <?php endif; ?>>
|
||||
<span class="theme-swatch" style="background: <?php echo e($color); ?>;"></span>
|
||||
<span class="theme-label"><?php echo e($themeLabels[$key]); ?></span>
|
||||
</label>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</div>
|
||||
<p class="form-hint">切换后前台主色与辉光(Hero 极光、按钮、卡片高亮)整体跟随变化,保存并刷新即生效。</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>Favicon 地址(浏览器标签图标)</label>
|
||||
<input name="favicon_url" class="input" value="<?php echo e(old('favicon_url', $settings['favicon_url'] ?? '')); ?>" placeholder="/images/ccc-icon.ico">
|
||||
<p class="form-hint">建议用方形 ICO 或 32×32 PNG。</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>联系邮箱</label>
|
||||
<input name="contact_email" class="input" value="<?php echo e(old('contact_email', $settings['contact_email'] ?? '')); ?>">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>页脚自定义内容(富文本)</label>
|
||||
<?php if (isset($component)) { $__componentOriginal5ed719c1971b2710ce6f28e12185de56 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal5ed719c1971b2710ce6f28e12185de56 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.rich-editor','data' => ['name' => 'footer_content','value' => old('footer_content', $settings['footer_content'] ?? '')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('rich-editor'); ?>
|
||||
<?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' => 'footer_content','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old('footer_content', $settings['footer_content'] ?? ''))]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal5ed719c1971b2710ce6f28e12185de56)): ?>
|
||||
<?php $attributes = $__attributesOriginal5ed719c1971b2710ce6f28e12185de56; ?>
|
||||
<?php unset($__attributesOriginal5ed719c1971b2710ce6f28e12185de56); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal5ed719c1971b2710ce6f28e12185de56)): ?>
|
||||
<?php $component = $__componentOriginal5ed719c1971b2710ce6f28e12185de56; ?>
|
||||
<?php unset($__componentOriginal5ed719c1971b2710ce6f28e12185de56); ?>
|
||||
<?php endif; ?>
|
||||
<p class="form-hint">支持标题、列表、链接、图片等,用于自由排版页脚信息(如友情链接、资质说明、客服二维码)。留空则前台页脚不显示该区块。</p>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button class="btn btn-primary">保存设置</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
var limits = {
|
||||
'seo_title_default': 60,
|
||||
'seo_description_default': 160,
|
||||
'site_description': 160
|
||||
};
|
||||
Object.keys(limits).forEach(function (id) {
|
||||
var el = document.getElementById(id);
|
||||
var cnt = document.getElementById('cnt-' + id);
|
||||
if (!el || !cnt) return;
|
||||
var max = limits[id];
|
||||
function update() {
|
||||
var len = (el.value || '').length;
|
||||
cnt.textContent = len + ' / ' + max;
|
||||
cnt.classList.toggle('over', len > max);
|
||||
}
|
||||
el.addEventListener('input', update);
|
||||
update();
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/admin/settings.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,276 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '联系我们 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
|
||||
<section class="hero-aurora relative">
|
||||
<div class="max-w-8xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-24">
|
||||
<div class="reveal max-w-2xl">
|
||||
<span class="eyebrow">联系我们</span>
|
||||
<h1 class="mt-4 text-3xl font-extrabold tracking-tight gradient-text sm:text-4xl lg:text-5xl">携手共创 TypeC 快速充电未来</h1>
|
||||
<p class="mt-4 text-base leading-relaxed text-muted">无论是方案选型、样品申请还是技术合作,留下联系方式,我们的方案团队将在 1 个工作日内与你对接。</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="section px-4 sm:px-6 lg:px-8 -mt-10 lg:-mt-16">
|
||||
<div class="mx-auto max-w-6xl">
|
||||
<div class="grid gap-8 lg:grid-cols-5">
|
||||
<!-- 左栏:联络方式 -->
|
||||
<div class="reveal lg:col-span-2 glow-card rounded-2xl p-6 sm:p-8">
|
||||
<h2 class="text-lg font-semibold text-fg">我们的联络方式</h2>
|
||||
<p class="mt-1 text-sm text-muted">深圳市云创芯电子有限公司 · 专注于多口 TypeC 接口 IC。</p>
|
||||
|
||||
<ul class="mt-6 space-y-5">
|
||||
<li class="flex items-start gap-3">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'box','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'box','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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; ?>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-muted">公司名称</p>
|
||||
<p class="text-base font-semibold text-fg">深圳市云创芯电子有限公司</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="flex items-start gap-3">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'mail','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'mail','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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; ?>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-muted">电子邮箱</p>
|
||||
<a href="mailto:service@51chip.net" class="text-base font-semibold text-fg transition-colors hover:text-primary">service@51chip.net</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="flex items-start gap-3">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'phone','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'phone','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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; ?>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-muted">联系电话</p>
|
||||
<a href="tel:13510116819" class="text-base font-semibold text-fg transition-colors hover:text-primary">13510116819</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="flex items-start gap-3">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'pin','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']] + (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' => 'pin','size' => 22,'class' => 'mt-0.5 shrink-0 text-primary']); ?>
|
||||
<?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; ?>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-muted">地址</p>
|
||||
<p class="text-base font-semibold text-fg">深圳市南山区科技园</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 右栏:留言表单(服务端渲染,无需 JS 即可提交) -->
|
||||
<div class="reveal lg:col-span-3 glow-card rounded-2xl p-6 sm:p-8">
|
||||
<h2 class="text-lg font-semibold text-fg">商务合作表单</h2>
|
||||
<p class="mt-1 text-sm text-muted">提交后我们会在 1 个工作日内回复。</p>
|
||||
|
||||
<?php if(session('success')): ?>
|
||||
<div class="mt-6 rounded-lg border border-success bg-success-soft px-4 py-3 text-sm text-success">
|
||||
<?php echo e(session('success')); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(url('/contact')); ?>" class="mt-6 space-y-4" novalidate>
|
||||
<?php echo csrf_field(); ?>
|
||||
|
||||
<div class="grid gap-4 sm:grid-cols-2">
|
||||
<div>
|
||||
<label for="name" class="mb-1.5 block text-sm font-medium text-fg">姓名 <span class="text-danger">*</span></label>
|
||||
<input id="name" name="name" type="text" maxlength="40" value="<?php echo e(old('name')); ?>" required
|
||||
class="w-full rounded-lg border <?php echo e($errors->has('name') ? 'border-danger' : 'border-line'); ?> bg-surface-2 px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<?php $__errorArgs = ['name'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<p class="mt-1 text-sm text-danger"><?php echo e($message); ?></p>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div>
|
||||
<label for="company" class="mb-1.5 block text-sm font-medium text-fg">公司</label>
|
||||
<input id="company" name="company" type="text" maxlength="120" value="<?php echo e(old('company')); ?>"
|
||||
class="w-full rounded-lg border <?php echo e($errors->has('company') ? 'border-danger' : 'border-line'); ?> bg-surface-2 px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<?php $__errorArgs = ['company'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<p class="mt-1 text-sm text-danger"><?php echo e($message); ?></p>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-4 sm:grid-cols-2">
|
||||
<div>
|
||||
<label for="phone" class="mb-1.5 block text-sm font-medium text-fg">电话</label>
|
||||
<input id="phone" name="phone" type="text" maxlength="20" value="<?php echo e(old('phone')); ?>"
|
||||
class="w-full rounded-lg border <?php echo e($errors->has('phone') ? 'border-danger' : 'border-line'); ?> bg-surface-2 px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<?php $__errorArgs = ['phone'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<p class="mt-1 text-sm text-danger"><?php echo e($message); ?></p>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
<div>
|
||||
<label for="email" class="mb-1.5 block text-sm font-medium text-fg">邮箱 <span class="text-danger">*</span></label>
|
||||
<input id="email" name="email" type="email" maxlength="120" value="<?php echo e(old('email')); ?>" required
|
||||
class="w-full rounded-lg border <?php echo e($errors->has('email') ? 'border-danger' : 'border-line'); ?> bg-surface-2 px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<?php $__errorArgs = ['email'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<p class="mt-1 text-sm text-danger"><?php echo e($message); ?></p>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="subject" class="mb-1.5 block text-sm font-medium text-fg">主题 <span class="text-danger">*</span></label>
|
||||
<input id="subject" name="subject" type="text" maxlength="80" value="<?php echo e(old('subject')); ?>" required
|
||||
class="w-full rounded-lg border <?php echo e($errors->has('subject') ? 'border-danger' : 'border-line'); ?> bg-surface-2 px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<?php $__errorArgs = ['subject'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<p class="mt-1 text-sm text-danger"><?php echo e($message); ?></p>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="message" class="mb-1.5 block text-sm font-medium text-fg">需求描述 <span class="text-danger">*</span></label>
|
||||
<textarea id="message" name="message" maxlength="1000" rows="4" required
|
||||
class="w-full rounded-lg border <?php echo e($errors->has('message') ? 'border-danger' : 'border-line'); ?> bg-surface-2 px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]"><?php echo e(old('message')); ?></textarea>
|
||||
<?php $__errorArgs = ['message'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?>
|
||||
<p class="mt-1 text-sm text-danger"><?php echo e($message); ?></p>
|
||||
<?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="cta-glow inline-flex w-full items-center justify-center gap-2 rounded-lg px-5 py-3 text-sm font-semibold">
|
||||
提交需求 <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'send','size' => 18]] + (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' => 'send','size' => 18]); ?>
|
||||
<?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; ?>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</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/contact.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,82 @@
|
||||
|
||||
|
||||
<?php $siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司'); ?>
|
||||
<?php $__env->startSection('title', $article->seoTitle() . ' - ' . $siteName); ?>
|
||||
<?php $__env->startSection('description', $article->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('articles.index')); ?>" class="hover:text-primary">技术文章</a>
|
||||
<span>/</span>
|
||||
<span class="text-fg"><?php echo e($article->title); ?></span>
|
||||
</nav>
|
||||
|
||||
<?php if($article->template === 'feature' && $article->cover): ?>
|
||||
<div class="mb-6 overflow-hidden rounded-lg border border-line">
|
||||
<img src="<?php echo e($article->cover); ?>" alt="<?php echo e($article->title); ?>" class="max-h-96 w-full object-cover">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<article class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl"><?php echo e($article->title); ?></h1>
|
||||
<p class="mt-3 text-sm text-muted">
|
||||
<?php echo e($article->published_at?->format('Y-m-d')); ?> · <?php echo e($article->author ?: '云创芯'); ?>
|
||||
|
||||
<?php if($article->template === 'tech'): ?> <span class="ml-2 rounded bg-primary-soft px-2 py-0.5 text-xs font-medium text-primary">技术文档</span> <?php endif; ?>
|
||||
<?php if($article->template === 'feature'): ?> <span class="ml-2 rounded bg-primary-soft px-2 py-0.5 text-xs font-medium text-primary">专题报道</span> <?php endif; ?>
|
||||
</p>
|
||||
<?php if($article->category): ?>
|
||||
<p class="mt-2 text-sm text-muted">分类:<?php echo e($article->category->name); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if($article->template === 'feature' && $article->summary): ?>
|
||||
<p class="lead mt-5 text-base text-muted"><?php echo e($article->summary); ?></p>
|
||||
<?php elseif($article->summary): ?>
|
||||
<p class="mt-5 text-base text-muted"><?php echo e($article->summary); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if($article->body): ?>
|
||||
<div class="prose mt-6 text-fg">
|
||||
|
||||
<?php if(preg_match('/<[a-z][a-z0-9]*[\s>]/i', $article->body)): ?>
|
||||
<?php echo $article->body; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<?php echo nl2br(e($article->body)); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</article>
|
||||
|
||||
<div class="mt-6">
|
||||
<a href="<?php echo e(route('articles.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/articles/show.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php $__env->startSection('title', $glossaryTerm->term . ' - 云创芯术语库'); ?>
|
||||
|
||||
<?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('glossary.index')); ?>" class="hover:text-primary">术语库</a>
|
||||
<span>/</span>
|
||||
<span class="text-fg"><?php echo e($glossaryTerm->term); ?></span>
|
||||
</nav>
|
||||
|
||||
<article class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl"><?php echo e($glossaryTerm->term); ?></h1>
|
||||
<?php if($glossaryTerm->category): ?>
|
||||
<p class="mt-2 text-sm text-muted">分类:<?php echo e($glossaryTerm->category); ?></p>
|
||||
<?php endif; ?>
|
||||
<div class="prose mt-5 text-fg">
|
||||
<?php echo nl2br(e($glossaryTerm->definition)); ?>
|
||||
|
||||
</div>
|
||||
<?php if($glossaryTerm->aliases): ?>
|
||||
<p class="mt-4 text-sm text-muted">别名:<?php echo e($glossaryTerm->aliases); ?></p>
|
||||
<?php endif; ?>
|
||||
</article>
|
||||
|
||||
<div class="mt-6">
|
||||
<a href="<?php echo e(route('glossary.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/glossary/show.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,109 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '术语库 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl">术语库</h1>
|
||||
<p class="mt-2 text-sm text-muted">PD / PHY / 快充协议关键术语速查。</p>
|
||||
</div>
|
||||
|
||||
<form method="GET" class="flex flex-wrap items-end gap-3">
|
||||
<div class="min-w-[220px] flex-1">
|
||||
<label class="mb-1.5 block text-sm font-medium text-fg">搜索</label>
|
||||
<div class="relative">
|
||||
<span class="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','size' => 18]] + (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' => 'search','size' => 18]); ?>
|
||||
<?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>
|
||||
<input type="text" name="q" value="<?php echo e($q); ?>" placeholder="搜索术语、定义..." class="w-full rounded-lg border border-line bg-surface py-2.5 pl-10 pr-3 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="inline-flex items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-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' => 'search','size' => 18]] + (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' => 'search','size' => 18]); ?>
|
||||
<?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; ?> 查询
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="mt-8 space-y-4">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $terms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $term): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('glossary.show', $term->slug)); ?>" class="group flex items-center justify-between gap-4 rounded-lg border border-line bg-surface p-5 shadow-soft transition hover:border-primary hover:shadow-card">
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($term->term); ?></h3>
|
||||
<p class="mt-1 line-clamp-2 text-sm text-muted"><?php echo e(Str::limit($term->definition, 90)); ?></p>
|
||||
</div>
|
||||
<span class="shrink-0 text-muted transition group-hover: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' => 20]] + (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' => 20]); ?>
|
||||
<?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($terms->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/glossary/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,119 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '技术文章 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl">技术文章</h1>
|
||||
<p class="mt-2 text-sm text-muted">设计指南、应用笔记与行业方案解读。</p>
|
||||
</div>
|
||||
|
||||
<form method="GET" class="flex flex-wrap items-end gap-3">
|
||||
<div class="min-w-[220px] flex-1">
|
||||
<label class="mb-1.5 block text-sm font-medium text-fg">搜索</label>
|
||||
<div class="relative">
|
||||
<span class="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','size' => 18]] + (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' => 'search','size' => 18]); ?>
|
||||
<?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>
|
||||
<input type="text" name="q" value="<?php echo e($q); ?>" placeholder="搜索标题、摘要..." class="w-full rounded-lg border border-line bg-surface py-2.5 pl-10 pr-3 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full sm:w-56">
|
||||
<label class="mb-1.5 block text-sm font-medium text-fg">分类</label>
|
||||
<select name="category" onchange="this.form.submit()" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
<option value="">全部分类</option>
|
||||
<?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($c->id); ?>" <?php if((int) $categoryId === $c->id): echo 'selected'; endif; ?>><?php echo e($c->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="inline-flex items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-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' => 'search','size' => 18]] + (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' => 'search','size' => 18]); ?>
|
||||
<?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; ?> 查询
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="mt-8 space-y-4">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('articles.show', $article->slug)); ?>" class="group flex items-center justify-between gap-4 rounded-lg border border-line bg-surface p-5 shadow-soft transition hover:border-primary hover:shadow-card">
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($article->title); ?></h3>
|
||||
<p class="mt-1 line-clamp-2 text-sm text-muted"><?php echo e($article->summary ?: Str::limit(strip_tags($article->body), 120)); ?></p>
|
||||
<p class="mt-2 text-xs text-muted"><?php echo e($article->published_at?->format('Y-m-d')); ?> · <?php echo e($article->author ?: '云创芯'); ?></p>
|
||||
</div>
|
||||
<span class="shrink-0 text-muted transition group-hover: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' => 20]] + (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' => 20]); ?>
|
||||
<?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($articles->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/articles/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
$ctaHref = $slide->cta_url
|
||||
? (Str::startsWith($slide->cta_url, ['http://', 'https://']) ? $slide->cta_url : url($slide->cta_url))
|
||||
: null;
|
||||
$cta2Href = $slide->cta2_url
|
||||
? (Str::startsWith($slide->cta2_url, ['http://', 'https://']) ? $slide->cta2_url : url($slide->cta2_url))
|
||||
: null;
|
||||
?>
|
||||
|
||||
<div class="hero-slide-inner">
|
||||
<div class="hero-slide-content rich-content rich-content--on-dark">
|
||||
<?php echo \Purifier::clean($slide->content, 'article'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if($ctaHref): ?>
|
||||
<div class="mt-8 flex flex-wrap justify-center gap-4">
|
||||
<a href="<?php echo e($ctaHref); ?>" class="inline-flex items-center gap-2 rounded-lg bg-surface px-5 py-3 text-sm font-semibold text-primary transition hover:bg-surface/90">
|
||||
<?php echo e($slide->cta_text); ?>
|
||||
|
||||
<?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' => 18]] + (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' => 18]); ?>
|
||||
<?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>
|
||||
<?php if($cta2Href): ?>
|
||||
<a href="<?php echo e($cta2Href); ?>" class="inline-flex items-center gap-2 rounded-lg border border-white/40 px-5 py-3 text-sm font-semibold text-white transition hover:bg-surface/10">
|
||||
<?php echo e($slide->cta2_text); ?>
|
||||
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/partials/hero-slide.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,474 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
|
||||
<?php
|
||||
$siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司');
|
||||
$seoTitleDefault = App\Models\Setting::get('seo_title_default', $siteName . ' - 多口 TypeC 接口IC');
|
||||
$seoDescDefault = App\Models\Setting::get('seo_description_default', '深圳市云创芯电子有限公司提供多口 TypeC 接口IC。');
|
||||
$logoUrl = '/images/logo-dark.png'; // 固定品牌 logo,直接指向深色版,不依赖数据库设置(避免服务器库未同步导致回退旧 logo)
|
||||
$faviconUrl = App\Models\Setting::get('favicon_url', '/images/ccc-icon.ico');
|
||||
$icpNo = App\Models\Setting::get('icp_no', '');
|
||||
$securityFilingNo = App\Models\Setting::get('security_filing_no', '粤公网安备44030002015390号');
|
||||
|
||||
// 主题配色:后台「站点设置」可切换;默认 azure(沉稳蓝)
|
||||
$themes = [
|
||||
'azure' => ['primary' => '#4a8af4', 'hover' => '#76a9f7', 'accent' => '#6fa8f7', 'info' => '#4a8af4', 'rgb' => '74,138,244'],
|
||||
'slate' => ['primary' => '#6e8cb0', 'hover' => '#8aa6c6', 'accent' => '#7d98ba', 'info' => '#6e8cb0', 'rgb' => '110,140,176'],
|
||||
'indigo' => ['primary' => '#7b7ef0', 'hover' => '#9b9df6', 'accent' => '#8f86f2', 'info' => '#7b7ef0', 'rgb' => '123,126,240'],
|
||||
'teal' => ['primary' => '#2bb6a4', 'hover' => '#4fd0bd', 'accent' => '#34c0ad', 'info' => '#2bb6a4', 'rgb' => '43,182,164'],
|
||||
'amber' => ['primary' => '#e8a13c', 'hover' => '#f2b765', 'accent' => '#ecae52', 'info' => '#e8a13c', 'rgb' => '232,161,60'],
|
||||
];
|
||||
$themeKey = App\Models\Setting::get('theme', 'azure');
|
||||
$theme = $themes[$themeKey] ?? $themes['azure'];
|
||||
?>
|
||||
<title><?php echo $__env->yieldContent('title', $seoTitleDefault); ?></title>
|
||||
<meta name="description" content="<?php echo $__env->yieldContent('description', $seoDescDefault); ?>">
|
||||
<link rel="canonical" href="<?php echo e(url()->current()); ?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="<?php echo e($siteName); ?>">
|
||||
<meta property="og:title" content="<?php echo $__env->yieldContent('title', $seoTitleDefault); ?>">
|
||||
<meta property="og:description" content="<?php echo $__env->yieldContent('description', $seoDescDefault); ?>">
|
||||
<meta property="og:url" content="<?php echo e(url()->current()); ?>">
|
||||
<meta property="og:image" content="<?php echo e(asset($logoUrl)); ?>">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="<?php echo $__env->yieldContent('title', $seoTitleDefault); ?>">
|
||||
<meta name="twitter:description" content="<?php echo $__env->yieldContent('description', $seoDescDefault); ?>">
|
||||
<meta name="twitter:image" content="<?php echo e(asset($logoUrl)); ?>">
|
||||
<link rel="icon" href="<?php echo e(asset($faviconUrl)); ?>" sizes="any">
|
||||
<link rel="stylesheet" href="<?php echo e(asset('css/app.css')); ?>?v=<?php echo e(filemtime(public_path('css/app.css'))); ?>">
|
||||
<!-- 主题配色覆盖:由后台「站点设置 → 主题」选择,注入后覆盖 app.css 默认 :root 变量(主色 + 光晕同步联动) -->
|
||||
<style id="theme-override">
|
||||
:root {
|
||||
--color-primary: <?php echo e($theme['primary']); ?>;
|
||||
--color-primary-hover: <?php echo e($theme['hover']); ?>;
|
||||
--color-accent: <?php echo e($theme['accent']); ?>;
|
||||
--color-info: <?php echo e($theme['info']); ?>;
|
||||
--glow-color: <?php echo e($theme['rgb']); ?>;
|
||||
}
|
||||
</style>
|
||||
<!-- Tailwind Play CDN(零构建);颜色全部映射到 :root CSS 变量,源码不硬编码颜色 -->
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
primary: 'var(--color-primary)',
|
||||
'primary-hover': 'var(--color-primary-hover)',
|
||||
'primary-soft': 'var(--color-primary-soft)',
|
||||
surface: 'var(--color-surface)',
|
||||
'surface-2': 'var(--color-surface-2)',
|
||||
line: 'var(--color-border)',
|
||||
fg: 'var(--color-text)',
|
||||
muted: 'var(--color-text-muted)',
|
||||
danger: 'var(--color-danger)',
|
||||
'danger-hover': 'var(--color-danger-hover)',
|
||||
'danger-soft': 'var(--color-danger-soft)',
|
||||
success: 'var(--color-success)',
|
||||
'success-soft': 'var(--color-success-soft)',
|
||||
warning: 'var(--color-warning)',
|
||||
'warning-soft': 'var(--color-warning-soft)',
|
||||
info: 'var(--color-info)',
|
||||
'info-soft': 'var(--color-info-soft)',
|
||||
bg: 'var(--color-bg)',
|
||||
accent: 'var(--color-accent)',
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ['Inter', 'Noto Sans SC', 'system-ui', '-apple-system', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'PingFang SC', 'Microsoft YaHei', 'sans-serif'],
|
||||
},
|
||||
borderRadius: {
|
||||
sm: 'var(--radius-sm)',
|
||||
DEFAULT: 'var(--radius)',
|
||||
lg: 'var(--radius-lg)',
|
||||
},
|
||||
boxShadow: {
|
||||
soft: '0 1px 2px rgba(15, 23, 42, 0.06)',
|
||||
card: '0 4px 14px rgba(15, 23, 42, 0.08)',
|
||||
},
|
||||
maxWidth: {
|
||||
'8xl': '80rem',
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="<?php echo e(asset('js/vendor/vue.global.prod.js')); ?>" defer></script>
|
||||
<script src="<?php echo e(asset('js/app.js')); ?>?v=<?php echo e(filemtime(public_path('js/app.js'))); ?>" defer></script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
"name": <?php echo json_encode($siteName, JSON_UNESCAPED_UNICODE); ?>,
|
||||
"url": <?php echo json_encode(url('/'), JSON_UNESCAPED_UNICODE); ?>,
|
||||
"logo": <?php echo json_encode(asset($logoUrl), JSON_UNESCAPED_UNICODE); ?>,
|
||||
"description": <?php echo json_encode($seoDescDefault, JSON_UNESCAPED_UNICODE); ?>
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body class="font-sans text-fg bg-surface antialiased">
|
||||
|
||||
<?php
|
||||
// 前台顶部导航菜单(后台「导航菜单」可全权管理:显示/隐藏 + 排序)
|
||||
$navMenus = \App\Models\NavigationMenu::visible()->ordered()->get();
|
||||
?>
|
||||
|
||||
<!-- 顶部导航:TI 企业蓝风格,sticky + 留白 + 清晰层级 -->
|
||||
<header class="sticky top-0 z-50 bg-surface/90 backdrop-blur border-b border-line">
|
||||
<div class="max-w-8xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div class="flex items-center justify-between h-14 lg:h-[68px]">
|
||||
<a class="flex items-center gap-3 shrink-0" href="<?php echo e(url('/')); ?>" aria-label="<?php echo e($siteName); ?>">
|
||||
<img src="<?php echo e(asset($logoUrl)); ?>" alt="<?php echo e($siteName); ?>" class="h-12 w-auto lg:h-14 drop-shadow-sm">
|
||||
</a>
|
||||
|
||||
<nav class="hidden lg:flex items-center gap-7">
|
||||
<?php $__currentLoopData = $navMenus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<a href="<?php echo e(Str::startsWith($m->url, ['http://', 'https://']) ? $m->url : url($m->url)); ?>" class="text-lg lg:text-xl font-medium text-muted hover:text-primary transition-colors"><?php echo e($m->label); ?></a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</nav>
|
||||
|
||||
<div class="hidden lg:flex items-center gap-5">
|
||||
<!-- 全站搜索 -->
|
||||
<form action="<?php echo e(url('/search')); ?>" method="GET" class="relative">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','size' => 20,'class' => 'absolute left-3 top-1/2 -translate-y-1/2 text-muted pointer-events-none']] + (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' => 'search','size' => 20,'class' => 'absolute left-3 top-1/2 -translate-y-1/2 text-muted pointer-events-none']); ?>
|
||||
<?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; ?>
|
||||
<input type="search" name="q" value="<?php echo e(request('q', '')); ?>" placeholder="搜索产品、文章、术语…" class="w-56 rounded-lg border border-line bg-surface-2 pl-10 pr-3 py-2.5 text-lg text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</form>
|
||||
|
||||
<?php if(auth()->guard()->check()): ?>
|
||||
<?php if(Auth::user()->role !== 'user'): ?>
|
||||
<a href="<?php echo e(url('/admin')); ?>" class="text-lg lg:text-xl font-medium text-muted hover:text-primary transition-colors">后台</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo e(route('articles.submit')); ?>" class="text-lg lg:text-xl font-medium text-muted hover:text-primary transition-colors">投稿</a>
|
||||
<?php if (isset($component)) { $__componentOriginal39b43b49f7859249b8d0a5c82f915292 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal39b43b49f7859249b8d0a5c82f915292 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.level-badge','data' => ['user' => Auth::user()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('level-badge'); ?>
|
||||
<?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(['user' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(Auth::user())]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal39b43b49f7859249b8d0a5c82f915292)): ?>
|
||||
<?php $attributes = $__attributesOriginal39b43b49f7859249b8d0a5c82f915292; ?>
|
||||
<?php unset($__attributesOriginal39b43b49f7859249b8d0a5c82f915292); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal39b43b49f7859249b8d0a5c82f915292)): ?>
|
||||
<?php $component = $__componentOriginal39b43b49f7859249b8d0a5c82f915292; ?>
|
||||
<?php unset($__componentOriginal39b43b49f7859249b8d0a5c82f915292); ?>
|
||||
<?php endif; ?>
|
||||
<span class="text-lg lg:text-xl text-muted"><?php echo e(Auth::user()->name); ?></span>
|
||||
<a href="<?php echo e(route('auth.settings')); ?>" class="text-lg lg:text-xl font-medium text-muted hover:text-primary transition-colors">设置</a>
|
||||
<form method="POST" action="<?php echo e(url('/logout')); ?>" class="inline">
|
||||
<?php echo csrf_field(); ?>
|
||||
<button type="submit" class="text-lg lg:text-xl font-medium text-muted hover:text-danger transition-colors">退出</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- 移动端菜单按钮 -->
|
||||
<button id="nav-toggle" type="button" class="lg:hidden inline-flex items-center justify-center p-2 rounded-lg text-muted hover:bg-surface-2" aria-label="菜单">
|
||||
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M4 6h16M4 12h16M4 18h16"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 移动端展开菜单 -->
|
||||
<div id="nav-menu" class="lg:hidden hidden border-t border-line bg-surface">
|
||||
<div class="max-w-8xl mx-auto px-4 py-3 space-y-1">
|
||||
<form action="<?php echo e(url('/search')); ?>" method="GET" class="relative mb-2">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','size' => 20,'class' => 'absolute left-3 top-1/2 -translate-y-1/2 text-muted pointer-events-none']] + (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' => 'search','size' => 20,'class' => 'absolute left-3 top-1/2 -translate-y-1/2 text-muted pointer-events-none']); ?>
|
||||
<?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; ?>
|
||||
<input type="search" name="q" value="<?php echo e(request('q', '')); ?>" placeholder="搜索产品、文章、术语…" class="w-full rounded-lg border border-line bg-surface-2 pl-10 pr-3 py-2.5 text-lg text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</form>
|
||||
<?php $__currentLoopData = $navMenus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<a href="<?php echo e(Str::startsWith($m->url, ['http://', 'https://']) ? $m->url : url($m->url)); ?>" class="block px-3 py-2.5 rounded-lg text-lg font-medium text-muted hover:bg-surface-2 hover:text-primary"><?php echo e($m->label); ?></a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php if(auth()->guard()->check()): ?>
|
||||
<?php if(Auth::user()->role !== 'user'): ?>
|
||||
<a href="<?php echo e(url('/admin')); ?>" class="block px-3 py-2.5 rounded-lg text-lg font-medium text-muted hover:bg-surface-2 hover:text-primary">后台</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo e(route('articles.submit')); ?>" class="block px-3 py-2.5 rounded-lg text-lg font-medium text-muted hover:bg-surface-2 hover:text-primary">投稿</a>
|
||||
<div class="px-3 py-2.5"><?php if (isset($component)) { $__componentOriginal39b43b49f7859249b8d0a5c82f915292 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal39b43b49f7859249b8d0a5c82f915292 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.level-badge','data' => ['user' => Auth::user()]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('level-badge'); ?>
|
||||
<?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(['user' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(Auth::user())]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal39b43b49f7859249b8d0a5c82f915292)): ?>
|
||||
<?php $attributes = $__attributesOriginal39b43b49f7859249b8d0a5c82f915292; ?>
|
||||
<?php unset($__attributesOriginal39b43b49f7859249b8d0a5c82f915292); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal39b43b49f7859249b8d0a5c82f915292)): ?>
|
||||
<?php $component = $__componentOriginal39b43b49f7859249b8d0a5c82f915292; ?>
|
||||
<?php unset($__componentOriginal39b43b49f7859249b8d0a5c82f915292); ?>
|
||||
<?php endif; ?></div>
|
||||
<a href="<?php echo e(route('auth.settings')); ?>" class="block px-3 py-2.5 rounded-lg text-lg font-medium text-muted hover:bg-surface-2 hover:text-primary">设置</a>
|
||||
<form method="POST" action="<?php echo e(url('/logout')); ?>" class="block">
|
||||
<?php echo csrf_field(); ?>
|
||||
<button type="submit" class="w-full text-left px-3 py-2.5 rounded-lg text-lg font-medium text-muted hover:bg-surface-2 hover:text-danger">退出(<?php echo e(Auth::user()->name); ?>)</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="min-h-[60vh]">
|
||||
<div class="max-w-8xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<?php if(session('success')): ?>
|
||||
<div class="flex items-center gap-2 my-6 rounded-lg border border-success/30 bg-success-soft px-4 py-3 text-sm text-success">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','size' => 18]] + (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' => 'check','size' => 18]); ?>
|
||||
<?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><?php echo e(session('success')); ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if($errors?->any()): ?>
|
||||
<div class="flex items-center gap-2 my-6 rounded-lg border border-danger/30 bg-danger-soft px-4 py-3 text-sm text-danger">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'alert','size' => 18]] + (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' => 'alert','size' => 18]); ?>
|
||||
<?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><?php echo e($errors->first() ?: '表单填写有误,请检查后重试。'); ?></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php echo $__env->yieldContent('content'); ?>
|
||||
</main>
|
||||
|
||||
<footer class="mt-16 border-t border-line bg-surface">
|
||||
<div class="max-w-8xl mx-auto px-4 sm:px-6 lg:px-8 py-10">
|
||||
<div class="grid gap-8 md:grid-cols-4">
|
||||
<div class="md:col-span-2">
|
||||
<div class="flex items-center gap-3 mb-3">
|
||||
<img src="<?php echo e(asset($logoUrl)); ?>" alt="<?php echo e($siteName); ?>" class="h-12 w-auto drop-shadow-sm">
|
||||
</div>
|
||||
<p class="text-sm text-muted max-w-md">TypeC 产品顾问|多口 TypeC 接口IC 方案提供商,专注协议转换与同步整流控制芯片,面向充电与外设厂商。</p>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="text-sm font-semibold text-fg mb-3">产品与资源</h4>
|
||||
<ul class="space-y-2 text-sm text-muted">
|
||||
<li><a href="<?php echo e(url('/products')); ?>" class="hover:text-primary transition-colors">产品中心</a></li>
|
||||
<li><a href="<?php echo e(url('/solutions')); ?>" class="hover:text-primary transition-colors">解决方案</a></li>
|
||||
<li><a href="<?php echo e(url('/about')); ?>" class="hover:text-primary transition-colors">关于我们</a></li>
|
||||
<li><a href="<?php echo e(url('/articles')); ?>" class="hover:text-primary transition-colors">技术文章</a></li>
|
||||
<li><a href="<?php echo e(url('/news')); ?>" class="hover:text-primary transition-colors">新闻动态</a></li>
|
||||
<li><a href="<?php echo e(url('/glossary')); ?>" class="hover:text-primary transition-colors">术语库</a></li>
|
||||
<li><a href="<?php echo e(url('/forum')); ?>" class="hover:text-primary transition-colors">技术论坛</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="text-sm font-semibold text-fg mb-3">联系我们</h4>
|
||||
<ul class="space-y-2.5 text-sm text-muted">
|
||||
<li class="flex items-start gap-2">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'box','size' => 16,'class' => 'mt-0.5 shrink-0 text-muted']] + (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' => 'box','size' => 16,'class' => 'mt-0.5 shrink-0 text-muted']); ?>
|
||||
<?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>深圳市云创芯电子有限公司</span>
|
||||
</li>
|
||||
<li class="flex items-center gap-2">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'mail','size' => 16,'class' => 'shrink-0 text-muted']] + (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' => 'mail','size' => 16,'class' => 'shrink-0 text-muted']); ?>
|
||||
<?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 href="mailto:service@51chip.net" class="hover:text-primary transition-colors">service@51chip.net</a>
|
||||
</li>
|
||||
<li class="flex items-center gap-2">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'phone','size' => 16,'class' => 'shrink-0 text-muted']] + (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' => 'phone','size' => 16,'class' => 'shrink-0 text-muted']); ?>
|
||||
<?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 href="tel:13510116819" class="hover:text-primary transition-colors">13510116819</a>
|
||||
</li>
|
||||
<li><a href="<?php echo e(url('/contact')); ?>" class="hover:text-primary transition-colors">更多联络方式</a></li>
|
||||
<?php if(auth()->guard()->check()): ?>
|
||||
<?php if(Auth::user()->role !== 'user'): ?>
|
||||
<li><a href="<?php echo e(url('/admin')); ?>" class="hover:text-primary transition-colors">管理后台</a></li>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php $footerContent = App\Models\Setting::get('footer_content'); ?>
|
||||
<?php if($footerContent): ?>
|
||||
<div class="mt-8 footer-rich">
|
||||
<?php echo \Purifier::clean($footerContent, 'article'); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="mt-8 pt-6 border-t border-line text-sm text-muted">
|
||||
<p class="flex flex-wrap items-center gap-x-3 gap-y-1">
|
||||
<span>© <?php echo e(date('Y')); ?> <?php echo e($siteName); ?>. 保留所有权利。</span>
|
||||
<a href="<?php echo e(url('/sitemap')); ?>" class="hover:text-primary transition-colors">网站地图</a>
|
||||
<?php if($icpNo): ?>
|
||||
<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener noreferrer" class="icp-link"><?php echo e($icpNo); ?></a>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
// 公安网备号:优先取后台「站点设置」值,缺省内置粤公网安备44030002015390号
|
||||
$secRaw = trim($securityFilingNo);
|
||||
if ($secRaw === '') {
|
||||
$secRaw = '粤公网安备44030002015390号';
|
||||
}
|
||||
// 提取数字编号,用于公安网备核验深链
|
||||
preg_match('/\d{6,}/', $secRaw, $secMatch);
|
||||
$secCode = $secMatch[0] ?? '44030002015390';
|
||||
// 规范显示文案:缺「粤公网安备」前缀时自动补上并加「号」
|
||||
if (!preg_match('/粤公网安备/', $secRaw)) {
|
||||
$secRaw = '粤公网安备' . preg_replace('/\D/', '', $secRaw) . '号';
|
||||
}
|
||||
?>
|
||||
<a href="https://beian.mps.gov.cn/#/query/webSearch?code=<?php echo e($secCode); ?>" target="_blank" rel="nofollow noopener noreferrer" class="icp-link inline-flex items-center gap-1">
|
||||
<img src="<?php echo e(asset('images/gongan_badge.png')); ?>" width="16" height="17" alt="公安网备" loading="lazy" class="inline-block align-middle" onerror="this.onerror=null;this.outerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 24 24"><path d="M12 2l8 3v6c0 5-4 9-8 11-4-2-8-6-8-11V5l8-3z" fill="#1a3a8f" stroke="#d4af37" stroke-width="1"/><polygon points="12,7 13.5,10.5 17,10.5 14,12.8 15,16.5 12,14.5 9,16.5 10,12.8 7,10.5 10.5,10.5" fill="#ffffff"/></svg>'">
|
||||
<?php echo e($secRaw); ?>
|
||||
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
var btn = document.getElementById('nav-toggle');
|
||||
var menu = document.getElementById('nav-menu');
|
||||
if (btn && menu) {
|
||||
btn.addEventListener('click', function () {
|
||||
menu.classList.toggle('hidden');
|
||||
});
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/layouts/app.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user