@extends('user.layouts.app') @section('content')

{{$data['parent_cat_name']}}

@if(count($data['forum_sub_category_list'])>0)
@foreach($data['forum_sub_category_list'] as $subcat) @php $img_url = empty(get_url('forum-photo/'.$subcat->id.'/crop/'.$subcat->banner_image)) ? url("assets/images/noimage.png") : get_url('forum-photo/'.$subcat->id.'/crop/'.$subcat->banner_image); $topic_url = route('subcategory',$subcat->slug); @endphp
@if($subcat->banner_image!="") {{ ucfirst($subcat->title) }} @endif

{!! Str::limit($subcat->description, 500, " more..") !!}

{{ $subcat->topic_total }} discussions {{ $subcat->comment_total }} comments
@if($subcat->ft_title!='') Most recent topic: {{ $subcat->ft_title }} by {{ ucfirst($subcat->user_name) }} - {{ dateformat($subcat->ft_created_at,"F d") }} @endif
@endforeach {{ $data['forum_sub_category_list']->links() }}
@else

No sub category found inside this parent category. Please click here to choose another category.

@endif
@include('user/includes/forumSidebar')
@endsection @section('scripts') @stop