<?php

use Illuminate\Database\Seeder;

class CurrenciesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
      $currencies = [
        'AUD'=>'Australian Dollar',
        'BRL'=>'Brazilian Real',
        'CAD'=>'Canadian Dollar',
        'CZK'=>'Czech Koruna',
        'DKK'=>'Danish Krone',
        'EUR'=>'Euro',
        'HKD'=>'Hong Kong Dollar',
        'HUF'=>'Hungarian Forint',
        'IDR'=>'Indonesian Rupiah',
        'ILS'=>'Israeli New Sheqel',
        'JPY'=>'Japanese Yen',
        'MYR'=>'Malaysian Ringgit',
        'MXN'=>'Mexican Peso',
        'NOK'=>'Norwegian Krone',
        'NZD'=>'New Zealand Dollar',
        'PHP'=>'Philippine Peso',
        'PLN'=>'Polish Zloty',
        'GBP'=>'Pound Sterling',
        'SGD'=>'Singapore Dollar',
        'SEK'=>'Swedish Krona',
        'CHF'=>'Swiss Franc',
        'TWD'=>'Taiwan New Dollar',
        'THB'=>'Thai Baht',
        'USD'=>'U.S. Dollar',
      ];

      foreach ($currencies as $key => $value) {
        DB::table('currencies')->insert([
            'currency_name' => $value,
            'currency_code' => $key,
        ]);
      }
    }
}
