<?php

namespace Database\Seeders;

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

class FooterContactSeeder extends Seeder
{
    /**
     * Update footer contact information with Mumbai details.
     */
    public function run(): void
    {
        $settings = [
            [
                'key' => 'contact_address',
                'value' => 'Andheri East, Mumbai, Maharashtra, India - 400069'
            ],
            [
                'key' => 'contact_phone',
                'value' => '+91-9876543210'
            ],
            [
                'key' => 'contact_email',
                'value' => 'support@theminiport.com'
            ],
        ];

        foreach ($settings as $setting) {
            Setting::updateOrCreate(
                ['key' => $setting['key']],
                ['value' => $setting['value']]
            );
        }

        $this->command->info('Footer contact settings updated with Mumbai address!');
    }
}
