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
@@ -0,0 +1,15 @@
@extends('layouts.site')
@section('content')
@php $blocks = $sections ?? []; @endphp
@if(is_array($blocks))
@foreach($blocks as $block)
@php $type = $block['type'] ?? null; @endphp
@if($type && view()->exists("components.templates.$type"))
@include("components.templates.$type", ['data' => $block['props'] ?? $block])
@endif
@endforeach
@endif
@endsection