@extends('layouts.app') @section('content')

Blog

@if(canAccess(['blog create'])) Create Blog @endif
@if (!empty($info) && $info->isNotEmpty()) @foreach ($info as $row) @endforeach @endif
Date & Time Title Image User Action
{{-- {{ !empty($row->created) ? date('M d, Y', strtotime($row->created)) : date('M d, Y') }}
--}} {{ \Carbon\Carbon::parse($row->created_at)->diffForhumans() }}
{{ $row->read_time }} min Read
{{ !empty($row->title) ? $row->title : '' }} @if(!empty($row->featured_image)) {{ !empty($row->title) ? $row->title : '' }} @else
@endif
Featured Image {{ !empty($row->userList->name) ? $row->userList->name : '' }}
@if(canAccess(['blog edit'])) @endif @if(canAccess(['blog destroy'])) @endif
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush