@extends('front.layout.app') @section('main_content')

{{ $sub_category_data->sub_category_name }}

@if(count($post_data)) @foreach($post_data as $item)
{{ $sub_category_data->sub_category_name }}

{{ $item->post_title }}

@if($item->author_id==0) @php $user_data = \App\Models\Admin::where('id',$item->admin_id)->first(); @endphp @else @php $user_data = \App\Models\Author::where('id',$item->author_id)->first(); @endphp @endif {{ $user_data->name }}
@php $ts = strtotime($item->updated_at); $updated_date = date('d F, Y',$ts); @endphp {{ $updated_date }}
@endforeach @else {{ NO_POST_FOUND }} @endif
{{ $post_data->links() }}
@endsection