{{ __('app.portal.communication.notices.title') }}

{{ __('app.portal.communication.notices.desc') }}

@can('notices.create') @if (! $showForm) {{ __('app.portal.communication.notices.create') }} @endif @endcan
@if ($notice) {{ $notice }} @endif @if ($showForm)
@foreach ($types as $option) @endforeach @foreach ($audiences as $option) @endforeach @if (\App\Enums\NoticeAudience::tryFrom($audience)?->requiresClass()) @foreach ($classes as $option) @endforeach @endif @if (\App\Enums\NoticeAudience::tryFrom($audience)?->requiresSection() && $sections->isNotEmpty()) @foreach ($sections as $option) @endforeach @endif

{{ __('app.portal.communication.notices.fields.attachment_hint', ['max' => number_format((int) config('portals.files.max_kb', 10240) / 1024)]) }}

@error('attachment')

{{ $message }}

@enderror
{{ __('app.portal.common.uploading') }}
@if ($editingRecord?->hasAttachment())
{{ $editingRecord->attachment_name }}
@endif
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($records as $record) @empty @endforelse
{{ __('app.portal.communication.notices.fields.title_en') }} {{ __('app.portal.communication.notices.fields.audience') }} {{ __('app.portal.communication.common.published') }} {{ __('app.portal.communication.notices.fields.expires_at') }} {{ __('app.portal.common.status') }} {{ __('app.portal.common.actions') }}
{{ $record->localizedTitle() }} {{ $record->type->label() }} @if ($record->hasAttachment()) · {{ $record->attachment_name }} @endif {{ $record->audience->label() }} @if ($record->academicClass) {{ $record->academicClass->localizedName() }} @if ($record->section) · {{ $record->section->localizedName() }} @endif @endif {{ $record->published_at?->translatedFormat('d M Y') ?? '—' }} {{ $record->expires_at?->translatedFormat('d M Y') ?? '—' }} @if ($record->isPublished() && ! $record->isExpired()) {{ __('app.portal.common.published') }} @elseif ($record->isExpired()) {{ __('app.portal.communication.notices.expired') }} @else {{ __('app.portal.common.draft') }} @endif
@if ($record->is_published) @else @endif
{{ $records->links() }}