<?php

namespace Database\Seeders;

use App\Models\Footer;
use Illuminate\Database\Seeder;

class FooterSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Footer::query()->delete();
        $data = [
            [
                'id' => 1,
                'title' => null,
                'ar_title' => null,
                'description' => null,
                'order' => 0,
                'is_active' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'id' => 2,
                'title' => 'Shop',
                'ar_title' => 'متجر',
                'description' => null,
                'order' => 1,
                'is_active' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'id' => 3,
                'title' => 'Customer Service',
                'ar_title' => 'خدمة العملاء',
                'description' => null,
                'order' => 2,
                'is_active' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'id' => 4,
                'title' => 'Company',
                'ar_title' => 'شركة',
                'description' => null,
                'order' => 3,
                'is_active' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'id' => 5,
                'title' => 'Download Our App',
                'ar_title' => 'تحميل التطبيق',
                'description' => null,
                'order' => 4,
                'is_active' => 1,
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ];

        Footer::insert($data);

        // call footer item seeder
        $this->call(FooterItemSeeder::class);
    }
}
