<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Branch;

class BranchSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Branch::create([
            'code' => 'MAIN',
            'name' => 'Main Branch',
            'address' => '123 Main Street',
            'phone' => '+1-555-0100',
            'email' => 'main@carrepairshop.com',
            'manager_name' => 'John Manager',
            'city' => 'Downtown',
            'state' => 'State',
            'postal_code' => '12345',
            'is_active' => true,
        ]);

        Branch::create([
            'code' => 'NORTH',
            'name' => 'North Branch',
            'address' => '456 North Avenue',
            'phone' => '+1-555-0200',
            'email' => 'north@carrepairshop.com',
            'manager_name' => 'Jane North',
            'city' => 'Northside',
            'state' => 'State',
            'postal_code' => '12346',
            'is_active' => true,
        ]);

        Branch::create([
            'code' => 'SOUTH',
            'name' => 'South Branch',
            'address' => '789 South Boulevard',
            'phone' => '+1-555-0300',
            'email' => 'south@carrepairshop.com',
            'manager_name' => 'Bob South',
            'city' => 'Southside',
            'state' => 'State',
            'postal_code' => '12347',
            'is_active' => true,
        ]);

        Branch::create([
            'code' => 'EAST',
            'name' => 'East Branch',
            'address' => '321 East Road',
            'phone' => '+1-555-0400',
            'email' => 'east@carrepairshop.com',
            'manager_name' => 'Alice East',
            'city' => 'Eastside',
            'state' => 'State',
            'postal_code' => '12348',
            'is_active' => true,
        ]);
    }
}
