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

{{ __('blog') }}

@if($categories->isNotEmpty())
{{ __('all') }} @foreach($categories as $category) {{ $category->name }} @endforeach
@endif
@foreach($posts as $post)
@if($post->image) {{ $post->title }} @endif
@if($post->category) {{ $post->category->name }} @endif

{{ $post->title }}

{{ \Illuminate\Support\Str::limit(strip_tags($post->excerpt ?: $post->content), 140) }}

{{ __('read_more') }}
@endforeach
{{ $posts->links() }}
@endsection