<?php

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

class ProductionStatusSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        /*
         * Permission Types
         *
         */
        $Permissionitems = [
            [
                'name'        => 'READY FOR PRODUCTION',
                'tag' => 'READY_FOR_PRODUCTION'
            ],
            [
                'name'        => 'STARTED',
                'tag' => 'STARTED'
            ],
            [
                'name'        => 'STOPPED',
                'tag' => 'STOPPED'
            ],
            [
                'name'        => 'COMPLETED',
                'tag' => 'COMPLETED'
            ],
        ];

        /*
         * Add Permission Items
         *
         */
        foreach ($Permissionitems as $Permissionitem) {
            //if ($newPermissionitem === null) {
                DB::table('production_status')->insert([
                    'name' => $Permissionitem['name'],
                    'tag'=> $Permissionitem['tag'],
                    'created_at' =>Carbon::now()
                ]);
            //}
        }
    }
}
