@extends('admin.layouts.app')
@push('libraries_top')
@endpush
@section('content')
{{ $pageTitle }}
@foreach($noticeboards as $noticeboard)
{{ trans('admin/main.title') }}
@if(!empty($isCourseNotice) and $isCourseNotice)
{{ trans('admin/main.course') }}
@endif
{{ trans('notification.sender') }}
{{ trans('site.message') }}
@if(!empty($isCourseNotice) and $isCourseNotice)
{{ trans('update.color') }}
@else
{{ trans('admin/main.type') }}
@endif
{{ trans('admin/main.created_at') }}
{{ trans('admin/main.actions') }}
@endforeach
{{ $noticeboard->title }}
@if(!empty($isCourseNotice) and !empty($noticeboard->webinar))
@if(!empty($noticeboard->webinar))
{{ $noticeboard->webinar->id }}-{{ truncate($noticeboard->webinar->title,32) }}
@endif
@endif
@if(!empty($isCourseNotice))
{{ $noticeboard->creator ? $noticeboard->creator->full_name : '-' }}
@else
{{ $noticeboard->sender }}
@endif
@if(!empty($isCourseNotice) and $isCourseNotice)
{{ trans('update.course_noticeboard_color_'.$noticeboard->color) }}
@else
{{ trans('admin/main.notification_'.$noticeboard->type) }}
@endif
{{ dateTimeFormat($noticeboard->created_at,'j M Y | H:i') }}
@can('admin_noticeboards_edit')
@endcan
@can('admin_notifications_delete')
@if(!empty($isCourseNotice))
@include('admin.includes.delete_button',['url' => getAdminPanelUrl("/course-noticeboards/{$noticeboard->id}/delete"),'btnClass' => ''])
@else
@include('admin.includes.delete_button',['url' => getAdminPanelUrl("/noticeboards/{$noticeboard->id}/delete"),'btnClass' => ''])
@endif
@endcan