<?php

namespace Database\Seeders;

use App\Models\CollectionParameter;
use Illuminate\Database\Seeder;

class CollectionParameterTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $DataList = [
            [
                'id' => 1,
                'collection_id' => 1,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => null,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 2,
                'collection_id' => 2,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => null,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 3,
                'collection_id' => 3,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => null,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 4,
                'collection_id' => 4,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 5,
                'collection_id' => 1,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 6,
                'collection_id' => 3,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 0,
                'default_value' => 10,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 7,
                'collection_id' => 5,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 0,
                'default_value' => 10,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 8,
                'collection_id' => 6,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 0,
                'default_value' => 10,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 9,
                'collection_id' => 7,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 10,
                'collection_id' => 7,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 11,
                'collection_id' => 8,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 12,
                'collection_id' => 8,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 13,
                'collection_id' => 3,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 14,
                'collection_id' => 4,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 15,
                'collection_id' => 1,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 16,
                'collection_id' => 2,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 17,
                'collection_id' => 9,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 18,
                'collection_id' => 9,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 19,
                'collection_id' => 9,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 20,
                'collection_id' => 10,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 21,
                'collection_id' => 10,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 22,
                'collection_id' => 10,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 23,
                'collection_id' => 11,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 24,
                'collection_id' => 11,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 25,
                'collection_id' => 11,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 26,
                'collection_id' => 12,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 27,
                'collection_id' => 12,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 28,
                'collection_id' => 12,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 29,
                'collection_id' => 13,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 30,
                'collection_id' => 13,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 31,
                'collection_id' => 13,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 32,
                'collection_id' => 14,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 33,
                'collection_id' => 14,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 34,
                'collection_id' => 14,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 35,
                'collection_id' => 15,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 36,
                'collection_id' => 15,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 37,
                'collection_id' => 15,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 38,
                'collection_id' => 16,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 39,
                'collection_id' => 16,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 40,
                'collection_id' => 16,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 41,
                'collection_id' => 17,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 42,
                'collection_id' => 17,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 43,
                'collection_id' => 17,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 44,
                'collection_id' => 18,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 45,
                'collection_id' => 18,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 46,
                'collection_id' => 18,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 47,
                'collection_id' => 19,
                'label' => 'Start Date',
                'placeholder' => null,
                'name' => 'start_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
            [
                'id' => 48,
                'collection_id' => 19,
                'label' => 'End Date',
                'placeholder' => null,
                'name' => 'end_date',
                'type' => 5,
                'is_required' => 0,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ], [
                'id' => 49,
                'collection_id' => 19,
                'label' => 'Per Page Max',
                'placeholder' => null,
                'name' => 'max_per_page',
                'type' => 1,
                'is_required' => 1,
                'default_value' => null,
                'options' => null,
                'status' => 1,
            ],
        ];

        foreach ($DataList as $key => $value) {
            if (!CollectionParameter::where('id', $value['id'])->exists()) {
                CollectionParameter::create($value);
            }
        }
    }
}
