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

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

@else
@foreach ($blogs as $blog) @endforeach
{{ __('Title') }} {{ __('Category') }} {{ __('Author') }} {{ __('Publish Date') }} {{ __('Serial Number') }} {{ __('Actions') }}
{{ $blog->title }} {{ $blog->categoryName }} {{ $blog->author }} @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