@extends('layouts.frontend.master') @section('title') {{ env('APP_NAME') . ' - Blogs' }} @endsection @push('css') {{-- --}} @endpush @section('content')
Category
@foreach($categories as $category)
@endforeach
Featured
{{--
--}}
{{-- @if(auth()->check())--}} {{-- @endif--}}
LATEST Blogs
@foreach($latestBlogs as $blog)
{{ $blog->name }}
{{ $blog->createdBy ? $blog->createdBy->name : 'Unknown User' }}
{{ \Carbon\Carbon::parse($blog->created_at)->format('M d, Y') }}
{{ \Illuminate\Support\Str::limit($blog->name, 30) }}
{!! \Illuminate\Support\Str::limit(strip_tags($blog->description), 110) !!}
@if(!empty($blog->slug)) Read More {{-- @else--}} {{-- Slug missing--}} @endif {{-- Read More--}}
@endforeach
All Blogs
@include('frontend.blog.partials.blog_cards')
@endsection @push('js') @endpush