@extends('layouts.app') @section('title', '首页') @section('content')
{{ getOneCategory(7,'title') }} / {{ getOneCategory(7,'description') }}
查看更多
@if (getArticlesBYCate(7,5)->isNotEmpty())
{{ getArticlesBYCate(7,5)->first()->title }}
{{ getArticlesBYCate(7,5)->first()->description }}
{{ getArticlesBYCate(7,5)->first()->created_at->format('Y-m-d') }}
    @foreach (getArticlesBYCate(7,5) as $article) @if ($loop->iteration>1)
  • {{ $article->title }}

    {{ $article->created_at->format('Y-m-d') }}
  • @endif @endforeach
@endif
{{ getOneCategory(6,'title') }}
查看更多
    @if (getArticlesBYCate(6,5)->isNotEmpty()) @foreach (getArticlesBYCate(6,5) as $article)
  • {{ $article->title }}

    {{ $article->created_at->format('Y-m-d') }}
  • @endforeach @endif
@if (getArticlesBYCate(24,4)->isNotEmpty())
{{ getOneCategory(24,'title') }}/ {{ getOneCategory(24,'description') }}
查看更多
@endif
{{ getOneCategory(20,'title') }}
更多 +
@if (getArticlesBYCate(20,5)->isNotEmpty())
{{ getArticlesBYCate(20,5)->first()->title }}
{{ getArticlesBYCate(20,5)->first()->description }}
@endif
    @if (getArticlesBYCate(20,5)->isNotEmpty()) @foreach (getArticlesBYCate(20,5) as $article) @if ($loop->iteration>1)
  • {{ $article->title }}

    {{ $article->created_at->format('Y-m-d') }}
  • @endif @endforeach @endif
{{ getOneCategory(21,'title') }}
更多 +
@if (getArticlesBYCate(21,5)->isNotEmpty())
{{ getArticlesBYCate(21,5)->first()->title }}
{{ getArticlesBYCate(21,5)->first()->description }}
@endif
    @if (getArticlesBYCate(21,5)->isNotEmpty()) @foreach (getArticlesBYCate(21,5) as $article) @if ($loop->iteration>1)
  • {{ $article->title }}

    {{ $article->created_at->format('Y-m-d') }}
  • @endif @endforeach @endif
@if (getArticlesBYCate(8,4)->isNotEmpty())
{{ getOneCategory(8,'title') }}/ {{ getOneCategory(8,'description') }}
@foreach (getArticlesBYCate(8,4) as $article)
{{ $article->title }}
{{ $article->description }}
查看详情
@endforeach
>
<
@endif @endsection @push('script') @endpush