@include('layout/backend/_header') @include('layout/backend/_navbar')
@include('layout/backend/_sidebar')

@if ( isset($_GET['s_t']) || isset($_GET['t_d']) ) @endif

@if(Session::has('success'))
× {!! session('success') !!}
@endif
{{ csrf_field() }} @php $ctr = 0 @endphp @if( isset($discussions) && count($discussions) > 0 ) @foreach($discussions as $k => $v) @endforeach @endif
S.no. Title Description Category Actions
{{ ( ( ( isset($_GET['page']) && $_GET['page'] ) ? $_GET['page'] : 1) -1) * 10 + $k + 1 }} {{ ( ( strlen($v['title']) > 50 ) ? ucfirst( substr($v['title'], 0, 48) ).'...' : ucfirst($v['title']) ) }} {!! ( ( strlen($v['description']) > 50 ) ? ucfirst( substr($v['description'], 0, 48) ).'...' : ucfirst($v['description']) ) !!} {{ $v['discussion_category']}} {{ count($v['forum_replies']) }}  |     |  
@if( count($discussions)==0 )
No records found
@endif
@if(count($discussions) > 0) {{ $discussions->links() }} @endif
@include('layout/backend/_footer')