Add Blog functionality: Created BlogController with index and show methods, added blog views, and integrated localization for meta tags. Updated routes to include blog paths.

This commit is contained in:
Ümit Tunç
2025-10-30 15:26:11 -03:00
parent 1cd55f4a1d
commit 08e07a9e63
21 changed files with 732 additions and 27 deletions
+17
View File
@@ -0,0 +1,17 @@
@extends('layouts.site')
@section('content')
<article class="post">
<div class="container">
<h1>{{ method_exists($post, 'translate') ? $post->translate('title') : $post->title }}</h1>
@if(!empty($post->featured_image))
<img src="{{ asset($post->featured_image) }}" alt="{{ method_exists($post, 'translate') ? $post->translate('title') : $post->title }}">
@endif
<div class="post-content">
{!! method_exists($post, 'translate') ? $post->translate('content') : ($post->content ?? '') !!}
</div>
</div>
</article>
@endsection