<?php

namespace Database\Seeders;

use App\Models\Category;
use App\Models\Subscription;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class SubscriptionSeed extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        if (Subscription::count() == 0) {
            Subscription::create([
                'name_ar' => 'باقة اسبوعية ',
                'name_en' => 'Weekly subscription',
                'price'=>50,
                'days'=>7,
                'status'=>1

            ]);
            Subscription::create([
                'name_ar' => 'باقية شهرية',
                'name_en' => 'monthly subscription',
                'price'=>50,
                'days'=>30,
                'status'=>1
            ]);
            Subscription::create([
                'name_ar' => 'باقة سنوية',
                'name_en' => 'yearly subscription',
                'price'=>50,
                'days'=>360,
                'status'=>1
            ]);

        }

    }
}
