@foreach($fields as $field) @endforeach {{-- --}} @forelse ($posts as $post) {{----}} @empty @endforelse
{{ trans('admin.posts.table.columns.'.$field) }}{{ trans('admin.posts.table.columns.title') }} {{ trans('admin.posts.table.columns.description') }} {{ trans('admin.posts.table.columns.content') }} {{ trans('admin.posts.table.columns.author') }} {{ trans('db_display.created_at') }}{{ trans('db_display.actions') }}
{{ $post->title }} @if(strlen($post->description) != 0) @if(strlen($post->description) > 20) {{ substr($post->description, 0, 20).'...' }} @else {{ substr($post->description, 0, 20) }} @endif @endif {{ substr($post->content, 0, 20).'...' }} {{ $post->author->name }} {{ \Carbon\Carbon::parse($post->created_at)->format('Y-m-d') }} @include('livewire.post.table.actions')

{{ trans('db_display.no_showing_registers') }}

{{ $posts->links('layouts.partials.pagination.paginator') }}