{{-- One notice (notice.show for customers, admin.notice.show for admins; #2957 slice 6e, card #3020): reading layout, the notice body in one card. NoticeController@show marks the notice read. The title is escaped (the old list escaped it too); the body is printed unescaped exactly as before (admin-written HTML). The body is in partials/show. On admin.notice.show (#2957 slice 13, card #3099) the page wears the admin chrome: the "Admin" back link above the head and the InnehÄll tabs under it instead of "Visa alla nuheter". --}} @extends('layouts.nuhet') @section('_pageTitle', $notice['title']) @section('pagename', __('notice.notices')) @section('page') @php($nhAdminNotice = Route::currentRouteName() === 'admin.notice.show') @if ($nhAdminNotice) @include('partials.nh-admin-back') @else

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

@endif

{{ $notice->title }}

{{ __('notice.nh.published', ['time' => $notice->start_time->diffForHumans()]) }}

@can('noticeEdit')
{{ __('notice.edit_notices') }}
@endcan
@if ($nhAdminNotice) @endif @include('notice.partials.show', ['data' => $notice]) @endsection