new design with nice layout

This commit is contained in:
Mark Gregory
2026-11-20 07:19:23 +00:00
parent 1e7b41ae2d
commit 37bb7354fa
18 changed files with 381 additions and 141 deletions
@@ -4,26 +4,46 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void {
return new class extends Migration
{
public function up(): void
{
Schema::table('users', fn (Blueprint $table) => $table->boolean('is_admin')->default(false));
Schema::create('site_sections', function (Blueprint $table) {
$table->id(); $table->string('key')->unique(); $table->string('eyebrow')->nullable();
$table->string('title'); $table->text('body')->nullable(); $table->string('button_label')->nullable();
$table->string('button_url')->nullable(); $table->boolean('is_visible')->default(true);
$table->unsignedInteger('sort_order')->default(0); $table->timestamps();
$table->id();
$table->string('key')->unique();
$table->string('eyebrow')->nullable();
$table->string('title');
$table->text('body')->nullable();
$table->string('button_label')->nullable();
$table->string('button_url')->nullable();
$table->boolean('is_visible')->default(true);
$table->unsignedInteger('sort_order')->default(0);
$table->timestamps();
});
Schema::create('site_settings', function (Blueprint $table) {
$table->id(); $table->string('key')->unique(); $table->text('value')->nullable(); $table->timestamps();
$table->id();
$table->string('key')->unique();
$table->text('value')->nullable();
$table->timestamps();
});
Schema::create('contact_enquiries', function (Blueprint $table) {
$table->id(); $table->string('name'); $table->string('email'); $table->string('company')->nullable();
$table->string('service')->nullable(); $table->text('message'); $table->boolean('is_read')->default(false);
$table->id();
$table->string('name');
$table->string('email');
$table->string('company')->nullable();
$table->string('service')->nullable();
$table->text('message');
$table->boolean('is_read')->default(false);
$table->timestamps();
});
}
public function down(): void {
Schema::dropIfExists('contact_enquiries'); Schema::dropIfExists('site_settings');
Schema::dropIfExists('site_sections'); Schema::table('users', fn (Blueprint $table) => $table->dropColumn('is_admin'));
public function down(): void
{
Schema::dropIfExists('contact_enquiries');
Schema::dropIfExists('site_settings');
Schema::dropIfExists('site_sections');
Schema::table('users', fn (Blueprint $table) => $table->dropColumn('is_admin'));
}
};