diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 4dcd243..41f00f2 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -112,9 +112,9 @@
- @if (getArticlesBYCate(28,8)->isNotEmpty()) - @foreach (getArticlesBYCate(28,8) as $article) - @if($loop->index < 3) + @if (getArticlesBYCate(28,30)->isNotEmpty()) + @foreach (getArticlesBYCate(28,30) as $article) + @if($loop->odd)
{{ $article->title }} {{ $article->description }} @@ -128,9 +128,9 @@
- @if (getArticlesBYCate(28,8)->isNotEmpty()) - @foreach (getArticlesBYCate(28,8) as $article) - @if($loop->index >= 3) + @if (getArticlesBYCate(28,30)->isNotEmpty()) + @foreach (getArticlesBYCate(28,30) as $article) + @if($loop->even)
{{ $article->title }} {{ $article->description }}