@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), '#'=> __lang('Student Forum') ]]) @endsection @section('content')
@if(false) {{ formElement($select) }} @endif
 
@php foreach($topics as $row): @endphp @php $topic = \App\ForumTopic::find($row->id); @endphp @php endforeach; @endphp
{{ __lang('Topic') }} {{ __lang('Session/Course') }} {{ __lang('Created By') }} {{ __lang('Added On') }} {{ __lang('Replies') }} {{ __lang('Last Reply') }}
{{ $row->title }} {{$row->course_name}} {{ $topic->user->name }} {{showDate('d/M/Y',$row->created_at)}} {{($topic->forumPosts->count()-1) }} @php if($topic->forumPosts->count()-1 > 0): @endphp {{showDate('D, d M Y g:i a',$topic->forumPosts()->orderBy('id','desc')->first()->created_at) }} @php endif; @endphp
@php // add at the end of the file after the table echo paginationControl( // the paginator object $topics, // the scrolling style 'sliding', // the partial to use to render the control null, // the route to link to when a user clicks a control link array( 'route' => 'admin/default', 'controller'=>'forum', 'action'=>'index' ) ); @endphp
@endsection