{{ trans('panel.noticeboard') }}

{{-- User Message --}} @if(!empty($unreadNoticeboards) and count($unreadNoticeboards))
@foreach($unreadNoticeboards as $unreadNoticeboard)
{!! truncate($unreadNoticeboard->title, 25) !!}
{!! truncate(strip_tags($unreadNoticeboard->message), 150) !!}
@if($unreadNoticeboard->sender_type = 'platform')
@else @php $senderAvatar = !empty($unreadNoticeboard->senderUser) ? $unreadNoticeboard->senderUser->getAvatar(40) : getDefaultAvatarPath(); @endphp
@endif
{{ ($unreadNoticeboard->sender_type = 'platform') ? trans('update.platform') : $unreadNoticeboard->sender }} {{ dateTimeFormat($unreadNoticeboard->created_at, 'j M Y H:i') }}
@endforeach
@else {{-- Empty --}}
{{ trans('update.no_notice!') }}
{{ trans('update.you_don’t_have_any_notices_from_the_administrator_at_this_moment') }}
@endif
@push('scripts_bottom') @endpush