@php $heading = $heading ?? __('app.portal.notices.title'); $description = $description ?? __('app.portal.notices.desc'); @endphp

{{ $heading }}

{{ $description }}

@if ($records->isEmpty()) @else
@foreach ($records as $record)
{{ $record->type->label() }} {{ $record->audience->label() }} @if ($record->academicClass) {{ $record->academicClass->localizedName() }} @if ($record->section) · {{ $record->section->localizedName() }} @endif @endif

{{ $record->localizedTitle() }}

{{ __('app.portal.notices.published_at') }}: {{ $record->published_at?->translatedFormat('d M Y, H:i') }} @if ($record->expires_at) · {{ __('app.portal.notices.expires_on') }}: {{ $record->expires_at->translatedFormat('d M Y') }} @endif

{{ \Illuminate\Support\Str::limit(strip_tags($record->localizedBody()), 260) }}

{{ __('app.portal.common.read_more') }} @if ($record->hasAttachment()) {{ __('app.portal.common.attachment') }} @endif
@endforeach
{{ $records->links() }}
@endif