@extends('theme::layouts.app') @section('theme::title', __('seo.news.archive')) @section('theme::content')

{{ __('news.title') }}

@forelse($archive as $key => $newsGroup)

{{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s',$newsGroup[$loop->index]->published_at)->format('Y-m') }}

@foreach($newsGroup as $news)
{{ $news->title }}
{{ \Carbon\Carbon::createFromFormat('Y-m-d H:i:s',$news->published_at)->format('Y-m-d') }}
{{ \Illuminate\Support\Str::words(strip_tags($news->body), 15, $end='...') }}
@endforeach
@empty {{ __('news.no-news') }} @endforelse
@endsection