{{ trans('update.forum_topics') }}
@if(!empty($topics)) @foreach($topics as $topic) @endforeach @endif
{{ trans('public.topic') }} {{ trans('admin/main.category') }} {{ trans('site.posts') }} {{ trans('admin/main.created_at') }} {{ trans('admin/main.updated_at') }} {{ trans('admin/main.actions') }}
{{ $topic->title }} {{ $topic->forum->title }} {{ $topic->posts_count }} {{ dateTimeFormat($topic->created_at,'j M Y | H:i') }} {{ (!empty($topic->posts) and count($topic->posts)) ? dateTimeFormat($topic->posts->first()->created_at,'j M Y | H:i') : '-' }} @can('admin_forum_topics_lists') @if(!$topic->close) @include('admin.includes.delete_button',[ 'url' => "/admin/forums/{$topic->forum_id}/topics/{$topic->id}/close", 'tooltip' => trans('public.close'), 'btnClass' => 'mr-1', 'btnIcon' => 'fa-lock' ]) @else @include('admin.includes.delete_button',[ 'url' => "/admin/forums/{$topic->forum_id}/topics/{$topic->id}/open", 'tooltip' => trans('public.open'), 'btnClass' => 'mr-1', 'btnIcon' => 'fa-unlock' ]) @endif @endcan @can('admin_forum_topics_posts') @endcan @can('admin_enrollment_block_access') @include('admin.includes.delete_button',[ 'url' => "/admin/forums/{$topic->forum_id}/topics/{$topic->id}/delete?no_redirect=true", ]) @endcan