<?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('settings', function (Blueprint $table) {
            $table->longText('footer_about_text')->nullable();
            $table->string('footer_column2_title')->default('روابط سريعة');
            $table->longText('footer_column2_links')->nullable();
            $table->string('footer_column3_title')->default('خدماتنا');
            $table->longText('footer_column3_links')->nullable();
            $table->string('social_facebook')->nullable();
            $table->string('social_instagram')->nullable();
            $table->string('social_twitter')->nullable();
            $table->string('social_snapchat')->nullable();
            $table->string('social_tiktok')->nullable();
            $table->string('social_youtube')->nullable();
            $table->string('social_whatsapp')->nullable();
            $table->string('footer_copyright_text')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('settings', function (Blueprint $table) {
            $table->dropColumn([
                'footer_about_text',
                'footer_column2_title',
                'footer_column2_links',
                'footer_column3_title',
                'footer_column3_links',
                'social_facebook',
                'social_instagram',
                'social_twitter',
                'social_snapchat',
                'social_tiktok',
                'social_youtube',
                'social_whatsapp',
                'footer_copyright_text'
            ]);
        });
    }
};
