<?php
namespace Sartoric\ModularCms\Seeds;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;


class MenuitemsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('sys_menuitems')->insert(
            array(
                [
                    'id' => 1,
                    'name' => 'home',
                    'label' => 'dashboard',
                    'link' => 'home',
                    'position' => 1,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 1,
                    'ico' => 'icon-home',
                    'separator' => 0
                ],
                [
                    'id' => 2,
                    'name' => 'profile',
                    'label' => 'profilo utente',
                    'link' => 'profile',
                    'position' => 1,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 0,
                    'ico' => null,
                    'separator' => 0
                ],
                [
                    'id' => 3,
                    'name' => 'amministrazione',
                    'label' => 'amministrazione',
                    'link' => '',
                    'position' => 80,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 1,
                    'ico' => 'icon-wrench',
                    'separator' => 0
                ],
                [
                    'id' => 4,
                    'name' => 'users',
                    'label' => 'gestione utenti',
                    'link' => 'users',
                    'position' => 1,
                    'parent' => 3,
                    'active' => 1,
                    'menu' => 1,
                    'ico' => 'icon-users',
                    'separator' => 0
                ],
                [
                    'id' => 5,
                    'name' => 'separator',
                    'label' => 'ADMIN OPTIONS',
                    'link' => null,
                    'position' => 90,
                    'parent' => 0,
                    'active' => 1,
                    'ico' => null,
                    'menu' => 1,
                    'separator' => 1
                ],
                [
                    'id' => 6,
                    'name' => 'changepassword',
                    'label' => 'Cambia Password',
                    'link' => 'change-password',
                    'position' => 100,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 0,
                    'ico' => null,
                    'separator' => 0
                ],
                [
                    'id' => 7,
                    'name' => 'appset',
                    'label' => 'App settings',
                    'link' => 'settings',
                    'position' => 101,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 1,
                    'ico' => 'icon-settings',
                    'separator' => 0
                ],
                [
                    'id' => 8,
                    'name' => 'menuitem',
                    'label' => 'gestione menu',
                    'link' => 'menuitem',
                    'position' => 110,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 1,
                    'ico' => 'icon-list',
                    'separator' => 0
                ],
                [
                    'id' => 9,
                    'name' => 'permission',
                    'label' => 'Permessi',
                    'link' => 'permissions',
                    'position' => 120,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 1,
                    'ico' => 'fa fa-key',
                    'separator' => 0
                ],
                [
                    'id' => 10,
                    'name' => 'roles',
                    'label' => 'Ruoli',
                    'link' => 'roles',
                    'position' => 130,
                    'parent' => 0,
                    'active' => 1,
                    'menu' => 1,
                    'ico' => 'icon-layers',
                    'separator' => 0
                ]
            )
        );
    }
}
