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

{{ ALL_POSTS_OF }} {{ $updated_date }}

@if(count($post_data_archive)) @foreach($post_data_archive as $item)
{{ $item->rSubCategory->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_archive->links() }}
@endsection