@extends('front.layouts.master') @section('main_content') {{ $global_page_item->blog_search_page_title }} {{ $search_by }} {{ __('Home') }} / {{ $search_by }} @forelse($posts as $post) {{ $post->created_at->format('d') }} {{ $post->created_at->format('M') }} {{ __('by') }} {{ $admin_data->name }} {{ $post->post_category->name }} {{ $post->title }} {!! nl2br($post->short_description) !!} @empty {{ __('No posts found') }} @endforelse @if($posts->hasPages()) @php $current = $posts->currentPage(); $last = $posts->lastPage(); @endphp @if(!$posts->onFirstPage()) @endif @for($page=1;$page<=$last;$page++) @if($page === $current) {{ sprintf('%02d', $page) }} @else {{ sprintf('%02d', $page) }} @endif @endfor @if($posts->hasMorePages()) @endif @endif @endsection
{!! nl2br($post->short_description) !!}