<?php

namespace Database\Seeders;

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

class ContactSeeder extends Seeder
{
    public function run(): void
    {
        if (!Contact::exists()) {
            Contact::create([
                'address_en' => '123 Main Street, City, Country',
                'address_ar' => '123 الشارع الرئيسي، المدينة، الدولة',
                'phone1' => '+1234567890',
                'phone2' => '+0987654321',
                'email' => 'info@example.com',
                'maps' => 'https://maps.google.com',
                'social_links' => [
                    ['icon' => 'fa fa-facebook', 'url' => 'https://facebook.com/example'],
                    ['icon' => 'fa fa-twitter', 'url' => 'https://twitter.com/example'],
                ],
            ]);
        }
    }
}
