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

{{ __('NO BLOG FOUND') }}

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