<?php

namespace Renfos;

use DB;
use Illuminate\Database\Seeder;

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

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

        DB::table('menus')->insert([

            [
                'parent_id'   => 1,
                'key'         => null,
                'url'         => 'admin/timesheet/task',
                'name'        => 'Task',
                'description' => null,
                'icon'        => 'fa fa-newspaper-o',
                'target'      => null,
                'order'       => 190,
                'status'      => 1,
            ],

            [
                'parent_id'   => 2,
                'key'         => null,
                'url'         => 'user/timesheet/task',
                'name'        => 'Task',
                'description' => null,
                'icon'        => 'icon-book-open',
                'target'      => null,
                'order'       => 190,
                'status'      => 1,
            ],

            [
                'parent_id'   => 3,
                'key'         => null,
                'url'         => 'task',
                'name'        => 'Task',
                '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'   => 'Timesheet',
                'module'    => 'Task',
                'user_type' => null,
                'user_id'   => null,
                'key'       => 'timesheet.task.key',
                'name'      => 'Some name',
                'value'     => 'Some value',
                'type'      => 'Default',
                'control'   => 'text',
            ],
            */
        ]);
    }
}