<?php

use Illuminate\Database\Seeder;

class PageSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        factory(\App\Page::class)->create(
//            [
//            'images' => [
//                'assets/web/images/categ-1.png',
//                'assets/web/images/categ-2.png',
//            ],
//        ]
        ); // Sections page
        factory(\App\Page::class)->create([
            'images' => [
                'assets/web/images/about-1.png',
            ],
            'meta' => [
                'titles' => [
                    'ar' => [
                        'Proud to be a Saudi Brand.',
                        'Contribute at our best efforts toward an Eco Friendly & Healthy environment with our packaging and operations requirements.',
                        'Dedicate 1% of our annual profits to cancer treatment & research.',
                    ],
                    'en' => [
                        'Proud to be a Saudi Brand.',
                        'Contribute at our best efforts toward an Eco Friendly & Healthy environment with our packaging and operations requirements.',
                        'Dedicate 1% of our annual profits to cancer treatment & research.',
                    ],
                ],
            ],
        ]); // Why us page
        factory(\App\Page::class)->create([
            'images' => [
                'assets/web/images/header-2.svg',
            ],
        ]); // Products page
//        factory(\App\Page::class)->create([
//            'images' => [
//                'assets/web/images/banner-1.png',
//            ],
//        ]); // Products description page
//        factory(\App\Page::class)->create([
//            'images' => [
//                'assets/web/images/header-4.png',
//            ],
//        ]); // About us page
        factory(\App\Page::class)->create([
            'images' => [
                'assets/web/images/img-1.png',
            ],
            'meta' => [
                'titles' => [
                    'ar' => [
                        'We value people over profits',
                        'Growth over revenues',
                        'Insist on business ethics, mutual respect and a healthy innovative work environment.',
                    ],
                    'en' => [
                        'We value people over profits',
                        'Growth over revenues',
                        'Insist on business ethics, mutual respect and a healthy innovative work environment.',
                    ],
                ],
            ],
        ]); // Vision page
//        factory(\App\Page::class)->create([
//            'images' => [
//                'assets/web/images/banner-2.png',
//            ],
//        ]); // Brief banner in about us
//        factory(\App\Page::class)->create([
//            'images' => [
//                'assets/web/images/header-5.png',
//            ],
//        ]); // Contact us page
        factory(\App\Page::class, 3)->create(); // Accessibility Statement, Privacy Policy, Terms of us




        foreach (languages() as $language) {
            factory(\App\PageDescription::class)->create([
                'page_title' => 'صفحة الأقسام',
                'title' => null,
                'description' => 'We are elevating the soft Ice cream quality & presentation, engaging with customers experience offering soft Ice creams flavors to be classified, timeless & divine to our customers.',
                'page_id' => 1,
                'language_id' => $language->id,
            ]);
            factory(\App\PageDescription::class)->create([
                'page_title' => 'لماذا نحن',
                'title' => 'Why Cup N’Cone?',
                'description' => null,
                'page_id' => 2,
                'language_id' => $language->id,
            ]);
            factory(\App\PageDescription::class)->create([
                'page_title' => 'صفحة المنتجات',
                'title' => 'PRODUCTS',
                'description' => null,
                'page_id' => 3,
                'language_id' => $language->id,
            ]);
//            factory(\App\PageDescription::class)->create([
//                'page_title' => 'بانر وصف صفحة المنتجات',
//                'title' => 'Our recipes are produced with',
//                'description' => 'HIGH QUALITY INGREDIENTS',
//                'page_id' => 4,
//                'language_id' => $language->id,
//            ]);
//            factory(\App\PageDescription::class)->create([
//                'page_title' => 'بانر صفحة من نحن',
//                'title' => 'WHO WE ARE',
//                'description' => null,
//                'page_id' => 5,
//                'language_id' => $language->id,
//            ]);
            factory(\App\PageDescription::class)->create([
                'page_title' => 'صفحة رؤيتنا',
                'title' => 'Our Vision',
                'description' => null,
                'page_id' => 4,
                'language_id' => $language->id,
            ]);
//            factory(\App\PageDescription::class)->create([
//                'page_title' => 'بانر النبذة في صفحة من نحن',
//                'title' => null,
//                'description' => '“We strive to create a welcoming atmosphere that shows our customers that they are a part of our family just as we are a part of theirs. In doing so we hope to leave them with a smile, a full heart and a memory that they will never forget”.',
//                'page_id' => 7,
//                'language_id' => $language->id,
//            ]);
//            factory(\App\PageDescription::class)->create([
//                'page_title' => 'بانر ابق على تواصل معنا',
//                'title' => 'REACH US',
//                'description' => null,
//                'page_id' => 8,
//                'language_id' => $language->id,
//            ]);

            factory(\App\PageDescription::class)->create([
                'page_title' => 'Accessibility Statement',
                'title' => 'Accessibility Statement',
                'description' => 'Accessibility Statement',
                'page_id' => 5,
                'language_id' => $language->id,
            ]);
            factory(\App\PageDescription::class)->create([
                'page_title' => 'Privacy Policy',
                'title' => 'Privacy Policy',
                'description' => 'Privacy Policy',
                'page_id' => 6,
                'language_id' => $language->id,
            ]);
            factory(\App\PageDescription::class)->create([
                'page_title' => 'Terms of us',
                'title' => 'Terms of us',
                'description' => 'Terms of us',
                'page_id' => 7,
                'language_id' => $language->id,
            ]);
        }
    }
}
