<?php

namespace Database\Seeders;

use App\Models\Course;
use App\Models\Event;
use Carbon\Carbon;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class CourseSeed extends Seeder
{

    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        if (Course::count() == 0) {
            Course::create([
                'name_ar' => 'دورة التخاطب',
                'name_en' => 'Speech course',
                'short_description_ar' => 'افضل الطرق لتنمية مهارات الاطفال اللغوية',
                'short_description_en' => 'The best ways to develop childrens language skills',
                'price'=>100,
                'from_time'=>Carbon::now()->format('H:i'),
                'to_time'=>Carbon::now()->format('H:i'),
                'status'=>1,
                'image'=>'course.png',
                'category_id'=>3,
                'admin_id'=>1,
            ]);
            Course::create([
                'name_ar' => 'دورة التخاطب',
                'name_en' => 'Speech course',
                'short_description_ar' => 'افضل الطرق لتنمية مهارات الاطفال اللغوية',
                'short_description_en' => 'The best ways to develop childrens language skills',
                'price'=>100,
                'from_time'=>Carbon::now()->format('H:i'),
                'to_time'=>Carbon::now()->format('H:i'),
                'status'=>1,
                'image'=>'course.png',
                'category_id'=>3,
                'admin_id'=>1,
            ]);
            Course::create([
                'name_ar' => 'دورة التخاطب',
                'name_en' => 'Speech course',
                'short_description_ar' => 'افضل الطرق لتنمية مهارات الاطفال اللغوية',
                'short_description_en' => 'The best ways to develop childrens language skills',
                'price'=>100,
                'from_time'=>Carbon::now()->format('H:i'),
                'to_time'=>Carbon::now()->format('H:i'),
                'status'=>1,
                'image'=>'course.png',
                'category_id'=>3,
                'admin_id'=>1,
            ]);
            Course::create([
                'name_ar' => 'دورة التخاطب',
                'name_en' => 'Speech course',
                'short_description_ar' => 'افضل الطرق لتنمية مهارات الاطفال اللغوية',
                'short_description_en' => 'The best ways to develop childrens language skills',
                'price'=>100,
                'from_time'=>Carbon::now()->format('H:i'),
                'to_time'=>Carbon::now()->format('H:i'),
                'status'=>1,
                'image'=>'course.png',
                'category_id'=>3,
                'admin_id'=>1,
            ]);
        }

    }
}
