<?php

namespace Database\Seeders;

use App\Models\TiposSecciones;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class TiposSeccionesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    private $data = [
        [
            //cabecera de https://shreethemes.in/techwind/layouts/page-aboutus.html
            'id' => 1,
            'titulo' => 'Titulo de Cabecera',
            'orden' => 1,
            'opciones' => false,
            'limite_opciones' => null,
            'texto_enriquecido' => false,
            'imagen_upload' => true
        ],
        [
            'id' => 2,
            'titulo' => 'Texto Enriquecido',
            'orden' => 2,
            'opciones' => false,
            'limite_opciones' => null,
            'texto_enriquecido' => true,
            'imagen_upload' => false
        ],/*
        [
            'id' => 3,
            'titulo' => 'Texto con Galeria',
            'orden' => 3,
            'opciones' => false,
            'limite_opciones' => null,
            'texto_enriquecido' => false,
            'imagen_upload' => true,
            'multiple_imagen' => true
        ],
        [
            'id' => 4,
            'titulo' => 'Banner intermedio',
            'orden' => 4,
            'opciones' => false,
            'limite_opciones' => null,
            'texto_enriquecido' => false,
            'imagen_upload' => true,
            'multiple_imagen' => false
        ]*/
    ];

    public function run()
    {
        foreach ($this->data as $item) {
            TiposSecciones::createOrUpdate($item);
        }
    }
}
