<?php

use Illuminate\Database\Seeder;

class ServiceDescriptionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        factory(\App\Service::class)->create([
            'image' => 'assets/web/images/about-5.svg',
            'descriptions' => [
                [
                    'desc_ar' => 'تقارير شاملة',
                    'desc_en' => 'Comprehensive Reports',
                    'icon' => 'assets/web/images/icons/services/1.png',
                ],
                [
                    'desc_ar' => 'إدارة مخزون',
                    'desc_en' => 'stock management',
                    'icon' => 'assets/web/images/icons/services/2.png',
                ],
                [
                    'desc_ar' => ' إدارة فروع',
                    'desc_en' => '  Branch management',
                    'icon' => 'assets/web/images/icons/services/3.png',
                ],
                [
                    'desc_ar' => 'الدعم الفني',
                    'desc_en' => 'Technical support',
                    'icon' => 'assets/web/images/icons/services/4.png',
                ],
                [
                    'desc_ar' => ' نظام المحاسبة مالية متكامل',
                    'desc_en' => '  Integrated financial accounting system',
                    'icon' => 'assets/web/images/icons/services/3.png',
                ],
                [
                    'desc_ar' => 'إدارة مندوبي التوصيل ومسؤولي تجهيز الطلبات في المخازن',
                    'desc_en' => 'Managing delivery representatives and order processing officials in warehouses',
                    'icon' => 'assets/web/images/icons/services/1.png',
                ],
            ],
        ]);
        factory(\App\Service::class)->create([
            'image' => 'assets/web/images/about-6.svg',
            'descriptions' => [
                [
                    'desc_ar' => 'متاح لجميع أجهزة الكاشير',
                    'desc_en' => 'Available for all cashier devices',
                    'icon' => 'assets/web/images/icons/services/1.png',
                ],
                [
                    'desc_ar' => 'مناسب لأي جهاز ذكي',
                    'desc_en' => 'Suitable for any smart device',
                    'icon' => 'assets/web/images/icons/services/2.png',
                ],
                [
                    'desc_ar' => ' الوصول من أي مكان',
                    'desc_en' => '  Access from anywhere',
                    'icon' => 'assets/web/images/icons/services/3.png',
                ],
                [
                    'desc_ar' => ' التخزين أول بأول',
                    'desc_en' => '  Storage first',
                    'icon' => 'assets/web/images/icons/services/4.png',
                ],
                [
                    'desc_ar' => ' أمان عالي',
                    'desc_en' => '  high security',
                    'icon' => 'assets/web/images/icons/services/5.png',
                ],
                [
                    'desc_ar' => ' يقدم تطبيقات التجارة الالكترونية بنظامي Android- ios',
                    'desc_en' => '  Offers e-commerce applications for Android-ios',
                    'icon' => 'assets/web/images/icons/services/6.png',
                ],
                [
                    'desc_ar' => 'يعمل مع أو بدون شبكة إنترنت',
                    'desc_en' => 'Works with or without internet',
                    'icon' => 'assets/web/images/icons/services/7.png',
                ],
                [
                    'desc_ar' => 'ربط غير محدود مع تطبيقات الطرف الثالث',
                    'desc_en' => 'Unlimited connectivity with third-party apps',
                    'icon' => 'assets/web/images/icons/services/8.png',
                ],
                [
                    'desc_ar' => ' الربط مع الدفع الالكتروني',
                    'desc_en' => '  Connection with electronic payment',
                    'icon' => 'assets/web/images/icons/services/9.png',
                ],
            ],
        ]);

        foreach (languages() as $language) {
            factory(\App\ServiceDescription::class)->create([
                'title' => 'خدمات ماركتزي',
                'service_id' => 1,
                'language_id' => $language->id,
            ]);
            factory(\App\ServiceDescription::class)->create([
                'title' => 'مزايا ماركتزي',
                'service_id' => 2,
                'language_id' => $language->id,
            ]);
        }


    }
}
