@extends('index') @section('title', Helper::getSiteTitle($article->title)) @section('content')
@if(!empty($article->image)) {{ $article->title }} @endif @php $tags = DB::table('tags') ->join('news_tags', 'news_tags.tag_id', '=', 'tags.id') ->where('news_tags.news_id', $article->id) ->where('tags.active', 1) ->groupBy('tags.id') ->select('tags.*') ->get(); @endphp @if(!$tags->isEmpty()) @endif
{!! $article->content !!}
@if(!$news->isEmpty()) @endif @endsection