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

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

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