<?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('settings', function (Blueprint $table) {
            $table->charset = 'utf8mb4';
            $table->collation = 'utf8mb4_unicode_ci';
            $table->id();
            $table->string('website_name_en')->nullable();
            $table->string('website_name_ar')->nullable();
            $table->string('website_tagline_en')->nullable();
            $table->string('website_tagline_ar')->nullable();
            $table->string('logo')->nullable();
            $table->string('footer_logo')->nullable();
            $table->string('favicon')->nullable();
            $table->string('default_share_image')->nullable();
            $table->string('phone')->nullable();
            $table->string('phone_display_en')->nullable();
            $table->string('phone_display_ar')->nullable();
            $table->string('whatsapp')->nullable();
            $table->string('whatsapp_display_en')->nullable();
            $table->string('whatsapp_display_ar')->nullable();
            $table->string('email')->nullable();
            $table->string('opening_time_en')->nullable();
            $table->string('opening_time_ar')->nullable();
            $table->string('address_line_en')->nullable();
            $table->string('address_line_ar')->nullable();
            $table->text('google_map_url')->nullable();
            $table->text('footer_about_en')->nullable();
            $table->text('footer_about_ar')->nullable();
            $table->text('subfooter_text_en')->nullable();
            $table->text('subfooter_text_ar')->nullable();
            $table->string('copyright_text_en')->nullable();
            $table->string('copyright_text_ar')->nullable();
            $table->string('facebook_url')->nullable();
            $table->string('instagram_url')->nullable();
            $table->string('linkedin_url')->nullable();
            $table->string('tiktok_url')->nullable();
            $table->string('youtube_url')->nullable();
            $table->string('x_url')->nullable();
            $table->string('telegram_url')->nullable();
            $table->string('snapchat_url')->nullable();
            $table->text('whatsapp_default_text_en')->nullable();
            $table->text('whatsapp_default_text_ar')->nullable();
            $table->string('default_meta_author_en')->nullable();
            $table->string('default_meta_author_ar')->nullable();
            $table->string('default_meta_robots')->default('index,follow')->nullable();
            $table->string('default_meta_locale')->default('en_US')->nullable();
            $table->string('default_meta_locale_ar')->default('ar_AE')->nullable();
            $table->string('google_analytics_id')->nullable();
            $table->longText('google_tag_manager_head')->nullable();
            $table->longText('google_tag_manager_body')->nullable();
            $table->string('google_ads_id')->nullable();
            $table->string('google_site_verification')->nullable();
            $table->string('bing_site_verification')->nullable();
            $table->string('yandex_site_verification')->nullable();
            $table->string('pinterest_site_verification')->nullable();
            $table->longText('schema_organization_json')->nullable();
            $table->longText('head_code')->nullable();
            $table->longText('body_start_code')->nullable();
            $table->longText('body_end_code')->nullable();
            $table->timestamps();
        });
    }

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