<?php

use Illuminate\Database\Seeder;

class PolicyDescriptionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $policy = factory(\App\Policy::class)->create();

//        foreach (languages() as $language) {
        factory(\App\PolicyDescription::class)->create([
            'terms_condition_title' => 'الشروط والأحكام',
            'disclaimer_title' => 'إخلاء مسؤولية',
            'disclaimer_description' => 'في حالة عدم توفر غرف سيتم ارجاع المبلغ للعميل في مدة لا تتراوح من 10 الي 14 يوم حد اقصي',
            'policy_id' => $policy->id,
            'language_id' => 1,
        ]);
        factory(\App\PolicyDescription::class)->create([
            'terms_condition_title' => 'Terms & Conditions',
            'disclaimer_title' => 'Disclaimer',
            'disclaimer_description' => 'In the event that rooms are not available, the amount will be returned to the customer within a period not ranging from 10 to 14 days, as a maximum',
            'policy_id' => 1,
            'language_id' => 2,
        ]);
//        }
    }
}
