<?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('custom_offers', function (Blueprint $table) {
            $table->string('tagline')->nullable()->after('name');
            $table->string('side_banner')->nullable()->after('banner');
            $table->string('banner_side')->default('right')->after('side_banner');
            $table->boolean('show_timer')->default(false)->after('end_date');
            $table->string('bg_color')->nullable()->after('color');
            $table->string('text_color')->nullable()->after('bg_color');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('custom_offers', function (Blueprint $table) {
            $table->dropColumn(['tagline', 'side_banner', 'banner_side', 'show_timer', 'bg_color', 'text_color']);
        });
    }
};
