<?php

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

class BondDesignTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        
        $Permissionitems = [
            [
                'name' => 'Gangsaw-4.0-4.5mm',
                'size_specification' => '23/20X19X20mm',
                'size_print' => '4.5mm',
                'weight1_lower' => 1.82,
                'weight1_upper' => 1.90,
                'weight1_average' => 1.86,
                'weight1_name' => 'Powder Patti Weight',
                'weight1_nos' => 7.20,
                'taper' => 0.5,
                'shape' => 'V-SHAPE',
                'weight1_nos' => 3,
                'width' => 4.50,
                'consumable_setting_1' => 25,
                'created_by' => 1,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'Gangsaw-4.5-5.0mm',
                'size_specification' => '23/20X19X20mm',
                'size_print' => '5.0mm',
                'weight1_lower' => 2.13,
                'weight1_upper' => 2.19,
                'weight1_name' => 'Powder Patti Weight',
                'piece_net_weight' => 7.20,
                'taper' => 0.5,
                'shape' => 'V-SHAPE',
                'weight1_nos' => 3,
                'width' => 5.0,
                'created_by' => 1,
                'consumable_setting_1' => 25,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'Gangsaw-3.5-4.0mm',
                'size_specification' => '23/20X19X20mm',
                'size_print' => '4.0mm',
                'weight1_lower' => 1.62,
                'weight1_upper' => 1.67,
                'weight1_name' => 'Powder Patti Weight',
                'piece_net_weight' => 7.20,
                'taper' => 0.5,
                'shape' => 'V-SHAPE',
                'weight1_nos' => 3,
                'width' => 4.0,
                'created_by' => 1,
                'consumable_setting_1' => 25,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'Box-24X8.5mm',
                'size_specification' => '24X15X8.5mm',
                'size_print' => '8.5mm',
                'weight1_lower' => 1.82,
                'weight1_upper' => 1.87,
                'weight1_name' => 'Powder Patti Weight',
                'piece_net_weight' => 7.20,
                'shape' => 'BOX-SHAPE',
                'taper' => 0,
                'weight1_nos' => 4,
                'width' => 18,
                'created_by' => 1,
                'consumable_setting_1' => 26,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'Box-23X8.5mm',
                'size_specification' => '23X15X8.5mm',
                'size_print' => '8.5mm',
                'weight1_lower' => 1.82,
                'weight1_upper' => 1.87,
                'weight1_name' => 'Powder Patti Weight',
                'piece_net_weight' => 7.20,
                'shape' => 'BOX-SHAPE',
                'taper' => 0,
                'weight1_nos' => 4,
                'width' => 18,
                'created_by' => 1,
                'consumable_setting_1' => 26,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'MShape-8.5mm',
                'size_specification' => '24X15X7.5/8.5mm',
                'size_print' => '8.5mm',
                'weight1_lower' => 1.82,
                'weight1_upper' => 1.87,
                'weight1_name' => 'Powder Patti Weight',
                'piece_net_weight' => 7.20,
                'taper' => 0.5,
                'shape' => 'M-SHAPE',
                'weight1_nos' => 4,
                'width' => 18,
                'created_by' => 1,
                'consumable_setting_1' => 26,
                'created_at' =>Carbon::now()
            ],
            [
                'name' => 'MShape-10.5mm',
                'size_specification' => '24X15X9.5/10.5mm',
                'size_print' => '8.5mm',
                'weight1_lower' => 1.82,
                'weight1_upper' => 1.87,
                'weight1_name' => 'Powder Patti Weight',
                'piece_net_weight' => 7.20,
                'taper' => 0.5,
                'shape' => 'M-SHAPE',
                'weight1_nos' => 4,
                'width' => 18,
                'created_by' => 1,
                'consumable_setting_1' => 26,
                'created_at' =>Carbon::now()
            ],
           
        ];

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