@extends('layouts.site') @section('content')
@isset($latestPost)
{{ $latestPost->category->name }}

{{ $latestPost->title }}

{{ $latestPost->short_description }}

{{ \Carbon\Carbon::parse($latestPost->created_at)->format('M j, Y') }}.

{{ $latestPost->read_time }} min read

{{ $latestPost->author->name }}
@endisset
@isset($recentBlogs)

Recent articles

@foreach ($recentBlogs as $recentBlog)
{{ $recentBlog->category->name }}
{{ \Carbon\Carbon::parse($recentBlog->created_at)->format('M j, Y') }}.

{{ $recentBlog->read_time }} min read

{{ $recentBlog->title }}

{{ $recentBlog->author->name }}
@endforeach
@endisset
{{--

A Guide to Going Cashless in the Virtual Age

Read More
--}}
Choose Category
@foreach ($categories as $category) @endforeach
{{-- @dd($posts->currentPage()) --}} @foreach ($posts as $post)
{{ $post->category->name }}
{{ \Carbon\Carbon::parse($post->created_at)->format('M j, Y') }} .

{{ $post->read_time }} min read

{{ $post->title }}

{{ $post->author->name }}
@endforeach
@endsection @push('scripts') @endpush