@extends('layouts.frontend.master') @section('content') @php $anim = 1; @endphp Utama Artikel @php $anim = 1; @endphp Artikel Daftar artikel dan informasi lainnya @php $anim = 1; @endphp @foreach ($articles as $a) @if ($a->categories->count() > 0) categories[0]->slug}") }}" class="blogCard__category" title="Kategori {{ $a->categories[0]->nama }}"> {{ $a->categories[0]->nama }} @elseif ($a->tags->count() > 0) tags[0]->slug}") }}" class="blogCard__category" title="tag {{ $a->tags[0]->nama }}"> {{ $a->tags[0]->nama }} @endif {{ $a->nama }} {{ $a->dateFormat() }} @endforeach {!! $articles->links() !!} Kategori @foreach ($categories as $kategori) @php $is_active = $kategori_selected ? $kategori_selected->slug == $kategori->slug : false; $rQuery = unsetByKey($request->query(), ['kategori']); @endphp {{ $kategori->nama }} ({{ $kategori->artikel }}) @endforeach Tag @foreach ($tags as $tag) @php $is_active = $tag_selected ? $tag_selected->slug == $tag->slug : false; $rQuery = unsetByKey($request->query(), ['tag']); @endphp {{ $tag->nama }} @endforeach @endsection
Daftar artikel dan informasi lainnya