<?php

namespace Beo\Career\Seeders;

use DB;
use Illuminate\Database\Seeder;

class ProfileTableSeeder extends Seeder
{
    public function run()
    {
        DB::table('profiles')->insert([
            
        ]);

        DB::table('permissions')->insert([
            [
                'slug'      => 'career.profile.view',
                'name'      => 'View Profile',
            ],
            [
                'slug'      => 'career.profile.create',
                'name'      => 'Create Profile',
            ],
            [
                'slug'      => 'career.profile.edit',
                'name'      => 'Update Profile',
            ],
            [
                'slug'      => 'career.profile.delete',
                'name'      => 'Delete Profile',
            ],
            
            
        ]);

        DB::table('menus')->insert([
        
            // Admin menu
            [
                'parent_id'   => 1,
                'key'         => null,
                'url'         => 'admin/career/profile',
                'name'        => 'Profile',
                'description' => null,
                'icon'        => 'fa fa-newspaper-o',
                'target'      => null,
                'order'       => 190,
                'status'      => 1,
            ],
            
            // User menu.
            [
                'parent_id'   => 2,
                'key'         => null,
                'url'         => 'user/career/profile',
                'name'        => 'Profile',
                'description' => null,
                'icon'        => 'icon-book-open',
                'target'      => null,
                'order'       => 190,
                'status'      => 1,
            ],

            // Public menu.
            [
                'parent_id'   => 3,
                'key'         => null,
                'url'         => 'profile',
                'name'        => 'Profile',
                'description' => null,
                'icon'        => null,
                'target'      => null,
                'order'       => 190,
                'status'      => 1,
            ],

        ]);

        DB::table('settings')->insert([
            // Uncomment  and edit this section for entering value to settings table.
            /*
            [
                'pacakge'   => 'Career',
                'module'    => 'Profile',
                'user_type' => null,
                'user_id'   => null,
                'key'       => 'career.profile.key',
                'name'      => 'Some name',
                'value'     => 'Some value',
                'type'      => 'Default',
                'control'   => 'text',
            ],
            */
        ]);
    }
}