@extends('frontend.layouts.template') @section('content')
NEWS @if (!Request::exists('tag'))
ALL @if ($category) @foreach ($category as $item) {{ $item->name }} @endforeach @endif
@endif
@if ($news) @foreach ($news as $item)
{{ $item->subject }}
{!! $item->description !!}
{{ date('d-m-Y', strtotime( $item->created_at) ) }} | {{ $item->viewed }} views
@php $color = @json_decode($item->news_category->description); @endphp {{ $item->news_category->name }}
@endforeach @endif
EVENT
@endsection @section('stylesheet') @php if( $category ){ echo ''; } @endphp @endsection @section('javascript') @endsection