94 lines
4.4 KiB
PHP
94 lines
4.4 KiB
PHP
|
|
@extends('layouts.site')
|
||
|
|
|
||
|
|
@section('page_class', 'page-models')
|
||
|
|
@section('title', $item->seo_title ?: $item->name.' - AI模型详情')
|
||
|
|
@section('meta_description', $item->seo_description ?: $item->summary)
|
||
|
|
@section('canonical', $item->canonical_url ?: route('models.show', $item->slug))
|
||
|
|
|
||
|
|
@section('head')
|
||
|
|
<script type="application/ld+json">
|
||
|
|
{!! json_encode([
|
||
|
|
'@context' => 'https://schema.org',
|
||
|
|
'@type' => 'SoftwareApplication',
|
||
|
|
'name' => $item->name,
|
||
|
|
'description' => $item->summary,
|
||
|
|
'applicationCategory' => 'AI Model',
|
||
|
|
], JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT) !!}
|
||
|
|
</script>
|
||
|
|
@endsection
|
||
|
|
|
||
|
|
@section('content')
|
||
|
|
<section class="module-hero">
|
||
|
|
<div class="position-relative">
|
||
|
|
<span class="hero-chip mb-2">{{ $item->provider ?: '模型推荐' }}</span>
|
||
|
|
<h1 class="h2 fw-bold mb-2">{{ $item->h1 ?: $item->name }}</h1>
|
||
|
|
<p class="hero-subtext">{{ $item->summary }}</p>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
@if($showRiskNotice)
|
||
|
|
<div class="alert alert-warning" role="alert">免责声明:高风险领域内容仅供学习参考,不构成专业建议。</div>
|
||
|
|
@endif
|
||
|
|
|
||
|
|
<div class="module-grid">
|
||
|
|
<div>
|
||
|
|
<section class="surface-card p-3 p-lg-4 mb-3">
|
||
|
|
<div class="d-flex justify-content-between align-items-center mb-2">
|
||
|
|
<h2 class="section-title mb-0"><i class="bi bi-card-text text-primary"></i> 模型介绍</h2>
|
||
|
|
<span class="chip">总分 {{ $item->total_score }}</span>
|
||
|
|
</div>
|
||
|
|
<div class="md-content">{{ $item->description ?: $item->summary }}</div>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<section class="surface-card p-3 p-lg-4 mb-3">
|
||
|
|
<h2 class="section-title mb-3"><i class="bi bi-bar-chart-line text-primary"></i> 评分维度</h2>
|
||
|
|
<div class="mb-2 small">效果 {{ $item->effectiveness_score }}</div>
|
||
|
|
<div class="metric-bar mb-2"><div class="metric-fill bg-primary" style="width:{{ $item->effectiveness_score }}%"></div></div>
|
||
|
|
<div class="mb-2 small">价格 {{ $item->price_score }}</div>
|
||
|
|
<div class="metric-bar mb-2"><div class="metric-fill bg-success" style="width:{{ $item->price_score }}%"></div></div>
|
||
|
|
<div class="mb-2 small">速度 {{ $item->speed_score }}</div>
|
||
|
|
<div class="metric-bar"><div class="metric-fill bg-warning" style="width:{{ $item->speed_score }}%"></div></div>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
@if($relatedModels->isNotEmpty())
|
||
|
|
<section class="surface-card p-3 p-lg-4">
|
||
|
|
<h2 class="section-title mb-3"><i class="bi bi-diagram-3 text-primary"></i> 同类模型</h2>
|
||
|
|
<div class="row g-3">
|
||
|
|
@foreach($relatedModels as $model)
|
||
|
|
<div class="col-md-6">
|
||
|
|
<article class="entry-item h-100">
|
||
|
|
<a class="fw-semibold text-decoration-none" href="{{ route('models.show', $model->slug) }}">{{ $model->name }}</a>
|
||
|
|
<p class="small text-muted-soft line-clamp-2 mb-2">{{ $model->summary }}</p>
|
||
|
|
<span class="chip">总分 {{ $model->total_score }}</span>
|
||
|
|
</article>
|
||
|
|
</div>
|
||
|
|
@endforeach
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
@endif
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<aside>
|
||
|
|
<section class="surface-card p-3 p-lg-4 mb-3">
|
||
|
|
<h3 class="section-title mb-3">模型信息</h3>
|
||
|
|
<ul class="list-unstyled small mb-0">
|
||
|
|
<li class="mb-2">提供方:<strong>{{ $item->provider ?: '未知' }}</strong></li>
|
||
|
|
<li class="mb-2">模态:<strong>{{ $item->modality }}</strong></li>
|
||
|
|
<li class="mb-2">部署:<strong>{{ $item->deployment_mode }}</strong></li>
|
||
|
|
<li class="mb-2">来源可信度:<strong>{{ $item->source_level?->label() ?? '未知' }}</strong></li>
|
||
|
|
<li>最后校验:<strong>{{ $item->last_verified_at?->format('Y-m-d') ?? '未记录' }}</strong></li>
|
||
|
|
</ul>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
@if($item->is_stale)
|
||
|
|
<div class="alert alert-warning mb-3">
|
||
|
|
该模型信息可能过期。
|
||
|
|
@if($item->alternative)
|
||
|
|
可参考替代模型:<a href="{{ route('models.show', $item->alternative->slug) }}">{{ $item->alternative->name }}</a>
|
||
|
|
@endif
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
</aside>
|
||
|
|
</div>
|
||
|
|
@endsection
|