@extends('layouts.app') @section('title', $news->title . ' - News') @section('content')
@if($news->featured_image) {{ $news->title }} @endif
{{ $news->category }} @if($news->is_featured) Featured @endif

{{ $news->title }}

By {{ $news->author ?? 'Admin' }}
{{ $news->published_at->format('F j, Y') }}
{{ $news->reading_time }} min read
{!! nl2br(e($news->content)) !!}
@if($relatedNews->count() > 0)
Related News
@foreach($relatedNews as $related)
@if($related->featured_image) {{ $related->title }} @else
@endif
{{ \Illuminate\Support\Str::limit($related->title, 50) }}
{{ $related->published_at->diffForHumans() }}
@endforeach
@endif
Article Info
Category

{{ $news->category }}

Author

{{ $news->author ?? 'Admin' }}

Published

{{ $news->published_at->format('M j, Y') }}

Reading Time

{{ $news->reading_time }} minutes

@push('styles') @endpush @endsection