@php $aTutorialBanner = isset($oCategory) && $oCategory->oParent?->sSlug === config('tutorials.beginner_slug') ? config('tutorials.category_banners.' . $oCategory->sSlug) : null; @endphp
@if(isset($oCategory) && $oCategory->sSlug === 'news')

{{ $oCategory->sName }}

@endif @if ($aTutorialBanner || (isset($oCategory) && in_array($oCategory->sSlug, ['client', 'advanced']))) @if ($oCategory->sSlug === 'client')

{{ $oCategory->sName }}

@endif @endif @if (count($oArticles) == 0) {{-- Empty State --}}

{{ isset($oCategory) && $oCategory->sSlug === 'news' ? '还没有资讯,稍后再来看看。' : '看起来这里没有任何东西…' }}

@else
@if (@$aTag['name'])

{{@$aTag['name']}}{{@$aTag['count']}}

@endif @if ($aTutorialBanner)

{{ $aTutorialBanner['title'] }}{{ $iArticleCount ?? count($oArticles) }}

@elseif (isset($oCategory->aBanner) && !in_array($oCategory->sSlug, ['client', 'advanced'])) @php $sBannerPath = '/sites/' . config('app.site_code_short') . '/images/banner/' . $oCategory->aBanner['img_file']; @endphp

{{ in_array($oCategory->sSlug, ['client', 'advanced']) ? $oCategory->sName : $oCategory->sSlug }}{{ $iArticleCount ?? count($oArticles) }}

@endif
@foreach ($oArticles as $oArticle) @endforeach
@endif