<?php

namespace Database\Seeders;

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

class AreaSeeder extends Seeder
{

    /**
     * Run the database seeds.
     */
    public function run($branch): void
    {
        $areas = [
            [
                'area_name' => 'Lounge',
                'branch_id' => $branch->id,
                'image' => 'lounge.webp',
            ],
            [
                'area_name' => 'Roof Top',
                'branch_id' => $branch->id,
                'image' => 'roof-top.webp',
            ],
            [
                'area_name' => 'Garden',
                'branch_id' => $branch->id,
                'image' => 'garden.webp',
            ]
        ];

        Area::insert($areas);
    }
}
