@extends('layout.front.master') @section('title', $pageTitle) @section('meta_description', trans('News archive for :period', ['period' => $month ? $startDate->format('F Y') : $year])) @section('content')

{{ $month ? $startDate->format('F Y') : $year }}

{{ trans('Found :count articles', ['count' => $news->count()]) }}

@if($news && $news->count() > 0)
@foreach($news as $article)
{{ $article->created_at->format('d') }}
{{ $article->created_at->format('M') }}
{{ $article->created_at->format('Y') }}

{{ $article->title }}

{{ $article->created_at->format('g:i A') }} @if($article->user) {{ $article->user->name }} @endif

{{ Str::limit(strip_tags($article->content), 200) }}

{{ trans('Read Article') }}
@endforeach
@else

{{ trans('No Articles Found') }}

{{ trans('No news articles were published in :period.', ['period' => $month ? $startDate->format('F Y') : $year]) }}

{{ trans('Browse Latest News') }}
@endif
@endsection