{{-- お知らせ - 一覧ページ(旧サイト aepmizukankyou2024/public_html/news/sample_index.html より移行) --}} @extends('layouts.front.base') @section('title', 'お知らせ | 水環境プランニング') @section('description', '水環境プランニングに関するお知らせや採用情報がご覧いただけます。') @section('root_class', 'news-root') @push('styles') @endpush @push('head') {{-- json-LD内の@は2つにしてエスケープする --}} @endpush @section('content')

News

{{-- カテゴリ絞り込み --}}
すべて @foreach ($lists['categories'] as $category) @php $asideClass = str_replace('tag--', 'tag-', config('site.news_tag_classes.' . $category->slug, config('site.news_tag_classes.info'))); @endphp {{ $category->name }} @endforeach
{{-- ページネーション(現在のページの前後2ページ、最大5件) --}} @if ($articles->lastPage() > 1) @php $currentPage = $articles->currentPage(); $lastPage = $articles->lastPage(); $firstShown = max(1, min($currentPage - 2, $lastPage - 4)); $lastShown = min($lastPage, $firstShown + 4); @endphp @endif
@endsection