Add Custom Header and Footer Blade Selection: Implemented options for selecting custom Blade files for header and footer templates in the Page settings. Enhanced the PageController to render these templates dynamically, improving modularity and user experience. Updated relevant views to support this new functionality, ensuring better localization and flexibility in template management.

This commit is contained in:
Ümit Tunç
2026-01-01 10:54:38 +03:00
parent 10f2e9c9bb
commit 12441517f6
20 changed files with 587 additions and 256 deletions
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('pages', function (Blueprint $table) {
$table->string('custom_header_blade')->nullable()->after('header_data');
$table->string('custom_footer_blade')->nullable()->after('footer_data');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pages', function (Blueprint $table) {
$table->dropColumn(['custom_header_blade', 'custom_footer_blade']);
});
}
};