@if($lecture)

{{ __lang('Lecture') }}: {{$lecture->title}}

@endif
@php foreach($topics as $row): @endphp @php endforeach; @endphp
{{ __lang('Topic') }} {{ __lang('Created By') }} {{ __lang('Added On') }} {{ __lang('Replies') }} {{ __lang('Last Reply') }}
{{ $row->title }} {{ $row->user->name }} {{ showDate('d/M/Y',$row->created_at) }} {{ ($row->forumPosts->count()-1) }} @php if($row->forumPosts->count()-1 > 0): @endphp {{ showDate('D, d M Y g:i a',$row->forumPosts()->orderBy('id','desc')->first()->created_at) }} @php endif; @endphp {{ __lang('View') }} @if(\Illuminate\Support\Facades\Auth::user()->id==$row->user_id) {{ __lang('Delete Topic') }} @endif
@php // add at the end of the file after the table echo $topics->links(); @endphp