@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('content') @php $this->headTitle($pageTitle) @endphp @php if($lecture): @endphp

{{ __lang('lecture') }}: {{$lecture->lecture_title}}

@php endif; @endphp
Add Topic
@php foreach($topics as $row): @endphp @php endforeach; @endphp
{{ __lang('topic') }} {{ __lang('created-by') }} {{ __lang('added-on') }} {{ __lang('replies') }} {{ __lang('last-reply') }}
{{ $row->topic_title }} {{ forumUser($row->topic_owner,$row->topic_owner_type)['name'] }} {{date('d/M/Y',$row->created_on)}} {{($row->forumPosts->count()-1) }} @php if($row->forumPosts->count()-1 > 0): @endphp {{date('D, d M Y g:i a',$row->forumPosts()->orderBy('forum_post_id','desc')->first()->post_created_on) }} @php endif; @endphp {{ __lang('view') }}
@php // add at the end of the file after the table echo $topics->links(); @endphp
@endsection