<?php
namespace Leadlion\CategorySliders\Setup;

use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Eav\Setup\EavSetupFactory;

class InstallData implements InstallDataInterface
{

	private $eavSetupFactory;

	public function __construct(EavSetupFactory $eavSetupFactory)
	{
		$this->eavSetupFactory = $eavSetupFactory;
	}

	public function install(
		ModuleDataSetupInterface $setup,
		ModuleContextInterface $context
	)
	{
		$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);

		$eavSetup->addAttribute(
			\Magento\Catalog\Model\Category::ENTITY,
			'product_sliders_block_section_one',
			[
				'type'         => 'varchar',
				'label'        => 'Products sliders block section one',
				'input'        => 'text',
				'sort_order'   => 100,
				'source'       => '',
				'global'       => 1,
				'visible'      => true,
				'required'     => false,
				'user_defined' => false,
				'default'      => null,
				'group'        => '',
				'backend'      => ''
			]
		);
                $eavSetup->addAttribute(
                \Magento\Catalog\Model\Category::ENTITY,
                'product_sliders_block_section_two',
                [
                        'type'         => 'varchar',
                        'label'        => 'Products Usp Block section two',
                        'input'        => 'text',
                        'sort_order'   => 100,
                        'source'       => '',
                        'global'       => 1,
                        'visible'      => true,
                        'required'     => false,
                        'user_defined' => false,
                        'default'      => null,
                        'group'        => '',
                        'backend'      => ''
                ]
		);
	}
}