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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user