<?php

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

class ConsumableSettingsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        
        $Permissionitems = [
            [
                'name' => 'GangsawMouldSettings',
                'description' => 'GangsawMouldSettings',
                'alias' => 'Gangsaw Mould Cost',
                'type' => 'MOULD',
                'qty' => 72,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'BoxMouldSettings',
                'description' => 'BoxMouldSettings',
                'alias' => 'Box Mould Cost',
                'type' => 'MOULD',
                'qty' => 36,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'MShapeMouldSettings',
                'description' => 'MShapeMouldSettings',
                'alias' => 'MShape Mould Cost',
                'type' => 'MOULD',
                'qty' => 36,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'DressingMouldSettings',
                'description' => 'DressingMouldSettings',
                'alias' => 'Dressing Mould Cost',
                'type' => 'MOULD',
                'qty' => 48,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'IpaAcetoneGenericBinderSettings',
                'description' => 'IpaAcetoneGenericBinderSettings',
                'alias' => 'Binder Cost',
                'type' => 'BINDER',
                'qty' => 8,
                'qty_type' => 'PERCENTAGE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'IpaAcetoneBoxGenericBinderSettings',
                'description' => 'IpaAcetoneGenericBinderSettings',
                'alias' => 'Binder Cost',
                'type' => 'BINDER',
                'qty' => 10,
                'qty_type' => 'PERCENTAGE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'GangsawDieSettings',
                'description' => 'GangsawDieSettings',
                'alias' => 'Gangsaw Die Cost',
                'type' => 'COLDPRESS_DIE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'BoxDieSettings',
                'description' => 'BoxDieSettings',
                'alias' => 'Box Die Cost',
                'type' => 'COLDPRESS_DIE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'DressingDieSettings',
                'description' => 'DressingDieSettings',
                'alias' => 'Dressing Die Cost',
                'type' => 'COLDPRESS_DIE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'MShapeDieSettings',
                'description' => 'MShapeDieSettings',
                'alias' => 'MShape Die Cost',
                'type' => 'COLDPRESS_DIE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'GangsawGrindingWheelSettings',
                'description' => 'GangsawGrindingWheelSettings',
                'alias' => 'GrindingWheel Cost',
                'type' => 'GRINDING',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'BoxGrindingWheelSettings',
                'description' => 'BoxGrindingWheelSettings',
                'alias' => 'GrindingWheel Cost',
                'type' => 'GRINDING',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'MShapeGrindingWheelSettings',
                'description' => 'MShapeGrindingWheelSettings',
                'alias' => 'GrindingWheel Cost',
                'type' => 'GRINDING',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'DressingGrindingWheelSettings',
                'description' => 'DressingGrindingWheelSettings',
                'alias' => 'GrindingWheel Cost',
                'type' => 'GRINDING',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'GangsawPolythenePackingSettings',
                'description' => 'GangsawPolythenePackingSettings',
                'alias' => 'Gangsaw Polythene Packing Cost',
                'type' => 'PACKING',
                'qty' => 800,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'GangsawPouchPackingSettings',
                'description' => 'GangsawPouchPackingSettings',
                'alias' => 'Gangsaw Pouch Packing Cost',
                'type' => 'PACKING',
                'qty' => 800,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'BoxPouchPackingSettings',
                'description' => 'BoxPouchPackingSettings',
                'alias' => 'Box Pouch Packing Cost',
                'type' => 'PACKING',
                'qty' => 90,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'DressingPouchPackingSettings',
                'description' => 'DressingPouchPackingSettings',
                'alias' => 'Dressing Pouch Packing Cost',
                'type' => 'PACKING',
                'qty' => 33,
                'qty_type' => 'UNIT',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'GangsawThermocoupleSettings',
                'description' => 'GangsawThermocoupleSettings',
                'alias' => 'Gangsaw Thermocouple Cost',
                'type' => 'THERMOCOUPLE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'DressingThermocoupleSettings',
                'description' => 'DressingThermocoupleSettings',
                'alias' => 'Dressing Thermocouple Cost',
                'type' => 'THERMOCOUPLE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'BoxThermocoupleSettings',
                'description' => 'BoxThermocoupleSettings',
                'alias' => 'Box Thermocouple Cost',
                'type' => 'THERMOCOUPLE',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'NaturalSandFinisingSettings',
                'description' => 'NaturalSandFinisingSettings',
                'alias' => 'Sand Finising',
                'type' => 'FINISHING',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'SandBlasingFinisingSettings',
                'description' => 'SandBlasingFinisingSettings',
                'alias' => 'Sand Blasting Finising',
                'type' => 'FINISHING',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'EletroplatingFinisingSettings',
                'description' => 'EletroplatingFinisingSettings',
                'alias' => 'Electroplating Finising',
                'type' => 'FINISHING',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'GangsawPattiSettings-23mm',
                'description' => 'GangsawPattiSettings-23mm',
                'alias' => 'Gangsaw-Patti-23mm',
                'type' => 'PATTI',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'BoxPattiSettings-23mm',
                'description' => 'BoxPattiSettings-23mm',
                'alias' => 'Box-Patti-23mm',
                'type' => 'PATTI',
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],

        ];

        /*
         * Add Permission Items
         *
         */
        foreach ($Permissionitems as $Permissionitem) {
            //if ($newPermissionitem === null) {
                DB::table('consumable_settings')->insert($Permissionitem);
            //}
        }
    }
}
