{{-- Nuheter (DESIGN.md Page patterns 2, list page; #2957 slice 6e, card #3020). Same data and query parameters as before the reskin: NoticeController@index pages the company's published notices plus the global ones, "isUnread" (default 1) shows only the unread ones (Notice::scopeSearch). "Markera som läst" POSTs to notice.markAsRead (#3086). The "Visa även lästa" toggle sends isUnread=0, as the old "Visa: Alla" select did; left unchecked it sends nothing and the controller falls back to unread only, as before. Rows are in partials/list. Admins list notices on notice/adminIndex (old layout). --}} @extends('layouts.nuhet') @php $showRead = request('isUnread') == '0'; @endphp @section('_pageTitle', __('notice.index.pageTitle')) @section('pagename', __('notice.notices')) @section('page')

{{ __('notice.notices') }}

{{ __('notice.nh.lead') }}

@push('scripts') @endpush @if ($notices->isEmpty()) @if ($showRead) {{ __('notice.nh.emptyAllText') }} @else {{ __('notice.nh.emptyUnreadText') }} {{ __('notice.show_all_notices') }} @endif @else @include('notice.partials.list', ['data' => $notices, 'showRead' => $showRead]) @endif @endsection