@extends('backend.layout') @section('content')
{{ __('All Posts') }}
@includeIf('backend.partials.languages')
{{ __('Add Post') }}
@if (count($posts) == 0)

{{ __('NO POST FOUND') . '!' }}

@else
@foreach ($posts as $post) @endforeach
{{ __('Title') }} {{ __('Category') }} {{ __('Publish Date') }} {{ __('Serial Number') }} {{ __('Actions') }}
{{ strlen($post->title) > 75 ? mb_substr($post->title, 0, 75, 'UTF-8') . '...' : $post->title }} {{ $post->categoryName }} @php // first, convert the string into date object $date = Carbon\Carbon::parse($post->created_at); @endphp {{ date_format($date, 'M d, Y') }} {{ $post->serial_number }}
@csrf
@endif
@endsection