<?php

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

class UpdateDataToSiteConfig extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $profileRateMapping = <<<EOT
{"dashboard_section":{"general":{"title":"General","icon":"/img/hede.jpeg","description":"Here you can enter general information such as title, type, contact information, address and location of the property.","menus":[{"id":null,"name":"Information","type":0,"icon":"","alias":"Property.Information.Update","url":"/general-information"},{"id":null,"name":"Location","type":0,"icon":"","alias":"Property.Contact.List","url":"/location"},{"id":null,"name":"Facility","type":0,"icon":"","alias":"Property.Contact.List","url":"/facility-contact"},{"id":null,"name":"Contact","type":0,"icon":"","alias":"Property.Executive.List","url":"/executive-contact"},{"id":null,"name":"Brand","type":0,"icon":"","alias":"Property.Brand.Get","url":"/brand"}]},"amenities":{"title":"Amenities","icon":"","description":"Otel iç mekan , dış mekan , oda tipleri gibi bir çok içeriği buradan güncellemeye başkayabilirsin."},"facility":{"title":"Facility","icon":"","description":"Tesisin ödeme şekli, konaklama tipi, ulaşım hizmetleri, ortak kullanım alanları gibi genel tesis özelliklerini buradan seçebilirsin"},"room":{"title":"Room","icon":"","description":"Enter and edit room and common amenities of rooms details here"}}}
EOT;

        $profileHint = <<<EOT
[{"title":"Lorem ipsum dolor sit amet, consectetur adipiscing elit","content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tellus ex, posuere vitae lectus tempus","icon":"icon","url":null},{"title":"Lorem ipsum dolor sit amet, consectetur adipiscing elit","content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tellus ex, posuere vitae lectus tempus","icon":"icon","url":null},{"title":"Lorem ipsum dolor sit amet, consectetur adipiscing elit","content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tellus ex, posuere vitae lectus tempus","icon":"icon","url":null},{"title":"Lorem ipsum dolor sit amet, consectetur adipiscing elit","content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tellus ex, posuere vitae lectus tempus","icon":"icon","url":null},{"title":"Lorem ipsum dolor sit amet, consectetur adipiscing elit","content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tellus ex, posuere vitae lectus tempus","icon":"icon","url":null}]
EOT;

        DB::table('site_config')->where('config_key' , 'profile_rate_mapping')->update(['config_value_json' => $profileRateMapping]);
        DB::table('site_config')->where('config_key' , 'hint_list')->update(['config_value_json' => $profileHint]);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
}
