{{-- resources/views/wiki/index.blade.php --}} @extends('library.wiki.layouts.app') @section('title', 'WikiPāli · 巴利佛典百科') @section('wiki-content') {{-- 搜索框组件 --}}
{{-- 今日条目 --}} @isset($today)
今日条目
{{ $today['meaning'] }}({{ $today['word'] }})
{!! Str::limit(strip_tags($today['content']), 120) !!}
阅读完整条目 →
@endisset {{-- 精选条目 --}} @if(isset($featured) && is_array($featured) && count($featured)>0)
精选条目
@endif @if(isset($subs) && is_array($subs) && count($subs) > 0) {{-- 取一级分类名称作为标题 --}} @php $catLabel = collect(config('taxonomy'))->firstWhere('id', $category)['label'] ?? $category; @endphp
{{ $catLabel }} 浏览全部
@foreach ($subs as $sub) @endforeach
@endif @endsection @section('wiki-sidebar')
统计
条目总数 {{ number_format($stats['total']) }}
本月新增 {{ $stats['this_month'] }}
贡献者 {{ $stats['contributors'] }}
质量等级
@endsection