@extends('layout.master') @section('content')
@if(count($posts) == 0)

No content

@endif @foreach($posts as $post)
{{ explode(' ', $post->create_at)[0] }} @if(isset($_SESSION['is_auth']) && $post->author == $_SESSION['username']) Edit Delete @endif

{!! isset($keyword) ? preg_replace('/' . preg_quote(e($keyword)) . '/i', '$0', e($post->title)) : e($post->title) !!}

@endforeach
@endsection @section('sidebar') @include('layout.sidebar') @endsection