<?php

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

class StateListSeeder extends Seeder
{
    private $tableName;

    public function __construct()
    {
        $this->tableName = 'state_list';
    }

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $Permissionitems = [
            [
                'id' => 1,                                
                'name' => 'JAMMU AND KASHMIR',
                'code' => '01'                            
            ],
            [
                'id' => 2,                                
                'name' => 'HIMACHAL PRADESH',
                'code' => '02'                            
            ],
            [
                'id' => 3,                                
                'name' => 'PUNJAB',
                'code' => '03'                            
            ],
            [
                'id' => 4,                                
                'name' => 'CHANDIGARH',
                'code' => '04'                            
            ],

            [
                'id' => 5,                                
                'name' => 'UTTARAKHAND',
                'code' => '05'                            
            ],

            [
                'id' => 6,                                
                'name' => 'HARYANA',
                'code' => '06'                            
            ],

            [
                'id' => 7,                                
                'name' => 'DELHI',
                'code' => '07'                            
            ],

            [
                'id' => 8,                                
                'name' => 'RAJASTHAN',
                'code' => '08'                            
            ],

            [
                'id' => 9,                                
                'name' => 'UTTAR PRADESH',
                'code' => '09'                            
            ],

            [
                'id' => 10,                                
                'name' => 'BIHAR',
                'code' => '10'                            
            ],

            [
                'id' => 11,                                
                'name' => 'SIKKIM',
                'code' => '11'                            
            ],


            [
                'id' => 12,                                
                'name' => 'ARUNACHAL PRADESH',
                'code' => '12'                            
            ],
            [
                'id' => 13,                                
                'name' => 'NAGALAND',
                'code' => '13'                            
            ],
            [
                'id' => 14,                                
                'name' => 'MANIPUR',
                'code' => '14'                            
            ],
            [
                'id' => 15,                                
                'name' => 'MIZORAM',
                'code' => '15'                            
            ],
            [
                'id' => 16,                                
                'name' => 'TRIPURA',
                'code' => '16'                            
            ],


            [
                'id' => 17,                                
                'name' => 'MEGHLAYA',
                'code' => '17'                            
            ],

            [
                'id' => 18,                                
                'name' => 'ASSAM',
                'code' => '18'                            
            ],
            [
                'id' => 19,                                
                'name' => 'WEST BENGAL',
                'code' => '19'                            
            ],
            [
                'id' => 20,                                
                'name' => 'JHARKHAND',
                'code' => '20'                            
            ],
            [
                'id' => 21,                                
                'name' => 'ODISHA',
                'code' => '21'                            
            ],
            [
                'id' => 22,                                
                'name' => 'CHATTISGARH',
                'code' => '12'                            
            ],

            [
                'id' => 23,                                
                'name' => 'MADHYA PRADESH',
                'code' => '23'                            
            ],
            [
                'id' => 24,                                
                'name' => 'GUJARAT',
                'code' => '24'                            
            ],
            [
                'id' => 25,                                
                'name' => 'DAMAN AND DIU',
                'code' => '25'                            
            ],
            [
                'id' => 26,                                
                'name' => 'DADRA AND NAGAR HAVELI',
                'code' => '26'                            
            ],
            [
                'id' => 27,                                
                'name' => 'MAHARASHTRA',
                'code' => '27'                            
            ],
            [
                'id' => 28,                                
                'name' => 'ANDHRA PRADESH',
                'code' => '28'                            
            ],

            [
                'id' => 29,                                
                'name' => 'KARNATAKA',
                'code' => '29'                            
            ],
            [
                'id' => 30,                                
                'name' => 'GOA',
                'code' => '30'                            
            ],
            [
                'id' => 31,                                
                'name' => 'LAKSHWADEEP',
                'code' => '31'                            
            ],
            [
                'id' => 32,                                
                'name' => 'KERALA',
                'code' => '32'                            
            ],
            

            [
                'id' => 33,                                
                'name' => 'TAMIL NADU',
                'code' => '33'                            
            ],
            [
                'id' => 34,                                
                'name' => 'PUDUCHERRY',
                'code' => '34'                            
            ],
            [
                'id' => 35,                                
                'name' => 'ANDAMAN AND NICOBAR ISLANDS',
                'code' => '35'                            
            ],
            [
                'id' => 36,                                
                'name' => 'TELANGANA',
                'code' => '36'                            
            ],
            
            
        ];

        foreach ($Permissionitems as $item) {
            DB::table($this->tableName)->insert($item);
        }
        

        
    }
}
