@extends('layouts.app') @section('title', __('news.page_title')) @section('meta_description', __('news.meta_description')) @section('content')
@forelse($news as $item) @php $thumb = $item->image_list_url ?: asset('assets/images/no-photo.png'); $detailUrl = route('news.show', ['slug' => $item->slug]); @endphp
@if($item->is_currently_important)
{{ __('news.category_important') }}
@endif
{{ $item->title }}
  • {{ optional($item->published_at)->locale(app()->getLocale())->isoFormat('LL') }}
@if($item->summary)

{{ Str::limit(strip_tags($item->summary), 180) }}

@endif
@empty
{{ __('news.empty') }}
@endforelse {{ $news->withQueryString()->links('layouts.custom-pagination', ['paginationUlClass' => 'edu-pagination top-space-30 justify-content-start']) }}
@include('news.partials.sidebar', ['latestSidebar' => $latestSidebar])
@endsection