@extends('layout.app') @section('title') Blogs Detail @endsection @section('content')
@php $date = Carbon\Carbon::createFromFormat('Y-m-d', $blog->publish_date);@endphp
{{$date->format('j M, Y')}}

{{$blog->title}}

{!!$blog->description!!}

Recent Posts

@foreach(App\Models\NewsAndUpdate::where('id','!=',$blog->first()->id)->where('status','1')->get() as $recent)
@php $date = Carbon\Carbon::createFromFormat('Y-m-d', $recent->publish_date);@endphp
{{$date->format('j M, Y')}}
2 min read

{{$recent->title}}

@endforeach
slug"; ?>
@endsection