<?php

use Illuminate\Database\Seeder;

class RoomsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $rooms = [
            array('name' => 'A0-1', 'capacity' => 30),
            array('name' => 'A0-11', 'capacity' => 24),
            array('name' => 'A0-12', 'capacity' => 24),
            array('name' => 'A0-3', 'capacity' => 13),
            array('name' => 'A0-5', 'capacity' => 13),
            array('name' => 'A1-14/15', 'capacity' => 25),
            array('name' => 'A1-16/17', 'capacity' => 25),
            array('name' => 'A1-18', 'capacity' => 13),
            array('name' => 'A1-20', 'capacity' => 13),
            array('name' => 'A1-22/23', 'capacity' => 25),
            array('name' => 'A1-24/25', 'capacity' => 25),
            array('name' => 'A1-33 (Sala RW)', 'capacity' => 64),
            array('name' => 'A2-1', 'capacity' => 24),
            array('name' => 'A2-10', 'capacity' => 34),
            array('name' => 'A2-11', 'capacity' => 34),
            array('name' => 'A2-12', 'capacity' => 34),
            array('name' => 'A2-14', 'capacity' => 48),
            array('name' => 'A2-19', 'capacity' => 48),
            array('name' => 'A2-2', 'capacity' => 34),
            array('name' => 'A2-20', 'capacity' => 32),
            array('name' => 'A2-21', 'capacity' => 48),
            array('name' => 'A2-22', 'capacity' => 48),
            array('name' => 'A2-23', 'capacity' => 48),
            array('name' => 'A2-24', 'capacity' => 48),
            array('name' => 'A2-3', 'capacity' => 24),
            array('name' => 'A2-4', 'capacity' => 24),
            array('name' => 'A2-5', 'capacity' => 24),
            array('name' => 'A2-8', 'capacity' => 24),
            array('name' => 'A2-9', 'capacity' => 34),
            array('name' => 'Aula A', 'capacity' => 196),
            array('name' => 'Aula B', 'capacity' => 117),
            array('name' => 'Aula C', 'capacity' => 117),
            array('name' => 'B1-06', 'capacity' => 4),
            array('name' => 'B1-07/08', 'capacity' => 16),
            array('name' => 'B1-37', 'capacity' => 18),
            array('name' => 'B1-38', 'capacity' => 12),
            array('name' => 'B2-08/09', 'capacity' => 16),
            array('name' => 'B2-38', 'capacity' => 15),
            array('name' => 'B2-39', 'capacity' => 12),
            array('name' => 'B2-44', 'capacity' => 4),
            array('name' => 'B3-08/09', 'capacity' => 16),
            array('name' => 'B3-38', 'capacity' => 18),
            array('name' => 'B3-39', 'capacity' => 18),
            array('name' => 'B3-49', 'capacity' => 12),
            array('name' => 'C2-3', 'capacity' => 1),
            array('name' => 'D-1', 'capacity' => 22),
            array('name' => 'D-2', 'capacity' => 21),
            array('name' => 'D-3', 'capacity' => 22),
            array('name' => 'Klub Profesorski', 'capacity' => '')
        ];
        foreach ($rooms as $room) {
            DB::table('rooms')->insert([
                'name' => $room['name'],
                'capacity' => $room['capacity'],
                'arrangement' => ''
            ]);
        }
    }
}