<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('hero_slides', function (Blueprint $table) {
            $table->id();
            $table->string('eyebrow')->nullable();
            $table->string('heading', 500);
            $table->text('subheading')->nullable();
            $table->text('support_line')->nullable();
            $table->string('primary_btn_text', 100)->nullable();
            $table->string('primary_btn_url')->nullable();
            $table->string('secondary_btn_text', 100)->nullable();
            $table->string('secondary_btn_url')->nullable();
            $table->enum('background_type', ['gradient', 'image'])->default('gradient');
            $table->string('image')->nullable();
            $table->tinyInteger('is_active')->default(1);
            $table->integer('sort_order')->default(0);
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('hero_slides');
    }
};
