@extends('layouts.app') @section('title', $news->title . ' - Berita Bidang Dakwah Masjid Salman ITB') @section('meta_description', Str::limit($news->excerpt, 160)) @section('og_title', $news->title . ' - Berita Bidang Dakwah Masjid Salman ITB') @section('og_description', Str::limit($news->excerpt, 200)) @section('og_image', 'https://bidangdakwah.salmanitb.com/storage/' . $news->featured_image) @section('content')
{{ $news->category->name }} {{ $news->published_at->format('d F Y') }}

{{ $news->title }}

{{ $news->author->name }}

{{ $news->author->name }}

{{ $news->author->title ?? 'Staff' }}

@if ($news->event_date || $news->location)
@if ($news->event_date)

Date & Time

{{ $news->event_date->format('d F Y, H:i') }}

@endif @if ($news->location)

Location

{{ $news->location }}

@endif
@endif

{{ $news->excerpt }}

{!! $news->content !!} @if ($news->tags->count() > 0)
@foreach ($news->tags as $tag) #{{ $tag->name }} @endforeach
@endif
{{ $news->author->name }}

{{ $news->author->name }}

{{ $news->author->bio ?? 'Staff at Salman ITB' }}

@if ($news->author->twitter) Twitter @endif @if ($news->author->linkedin) LinkedIn @endif @if ($news->author->website) Website @endif
@if ($relatedNews->count() > 0)

Related News

@foreach ($relatedNews as $relatedItem)
{{ $relatedItem->title }}
{{ $relatedItem->category->name }} {{ $relatedItem->published_at->format('d F Y') }}

{{ $relatedItem->title }}

{{ Str::limit($relatedItem->excerpt, 100) }}

Read More →
@endforeach
@endif
@endsection