@extends('frontend.layouts.app') @section('title', $news->title . ' — Musyawara') @section('page-style') @endsection @section('content')
{{-- Back Button --}}
{{-- Article Content --}}
{{-- Category & Date --}}
@if($news->category) {{ $news->category->name }} @endif Diterbitkan: {{ $news->published_at?->format('d M Y') }}
{{-- Title --}}

{{ $news->title }}

{{-- Author/Creator --}}
{{ strtoupper(substr($news->creator?->name ?? 'M', 0, 1)) }}
{{ $news->creator?->name ?? 'Admin Musyawara' }}
Penulis
{{-- Featured Image --}} @if($news->featured_image)
{{ $news->title }}
@endif {{-- Excerpt --}} @if($news->excerpt)

{{ $news->excerpt }}

@endif {{-- Body --}}
{!! $news->body !!}
{{-- Tags --}} @if($news->tags->isNotEmpty())
Tag Terkait
@foreach($news->tags as $tag) #{{ $tag->name }} @endforeach
@endif
{{-- Sidebar Widgets --}}
{{-- Categories Widget --}}

Kategori

    @foreach($categories as $category) @if($category->news_count > 0)
  • {{ $category->name }} {{ $category->news_count }}
  • @endif @endforeach
{{-- Popular Tags Widget --}}

Tag Populer

@foreach($tags as $tag) #{{ $tag->name }} @endforeach
@endsection