@extends('layouts.app') @section('title', $BlogDetail->title ?? $Title) @section('content')
{{-- Feature Image --}}
@if(!empty($BlogDetail->image)) {{-- assuming image path stored relative to storage: storage/app/public/... --}} {{ $BlogDetail->title }} @else {{ $BlogDetail->title ?? 'Blog image' }} @endif
{{-- Meta: category + date + author (if available) --}}
@if(!empty($BlogDetail->category) && !empty($BlogDetail->category->name)) {{ $BlogDetail->category->name }} @endif @if(!empty($BlogDetail->created_at)) {{ \Carbon\Carbon::parse($BlogDetail->created_at)->format('F j, Y') }} @endif @if(!empty($BlogDetail->author)) • By {{ $BlogDetail->author }} @endif
{{-- Title --}}

{{ $BlogDetail->title }}

{{-- Intro / excerpt (if exists) --}} @if(!empty($BlogDetail->excerpt))

{{ $BlogDetail->excerpt }}

@endif {{-- Body content (allow HTML) --}}
{!! $BlogDetail->content !!}
{{-- Optional in-content images (if stored as json or relation) - simple fallback omitted --}} {{-- Blockquote: use author/quote fields if available --}} @if(!empty($BlogDetail->quote) || !empty($BlogDetail->quote_author))

{{ $BlogDetail->quote }}

@if(!empty($BlogDetail->quote_author))

By {{ $BlogDetail->quote_author }}

@endif
@endif {{-- Suggested small tips list (if you have structured data) - fallback static from DB fields --}} @if(!empty($BlogDetail->tips) && is_array($BlogDetail->tips))

Tips

    @foreach($BlogDetail->tips as $tip)
  • {{ $tip['title'] ?? '' }}: {{ $tip['text'] ?? '' }}

  • @endforeach
@endif {{-- Conclusion (if provided) --}} @if(!empty($BlogDetail->conclusion))

Conclusion

{{ $BlogDetail->conclusion }}

@endif
Recommended for You
@forelse($Blogs as $b)
@if(!empty($b->image)) {{ $b->title }} @else {{ $b->title }} @endif @if(!empty($b->category) && !empty($b->category->name)) {{ $b->category->name }} @endif
{{ Str::limit($b->title, 70) }}
@if(!empty($b->created_at)) {{ \Carbon\Carbon::parse($b->created_at)->format('M d, Y') }} @endif
@empty

No related posts found.

@endforelse
@endsection