<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            'Restaurant',
            'Cafe',
            'Mosque',
            'Halal grocery',
            'Remittance/hawala',
            'Community organisation',
            'Legal aid',
            'GP/doctor',
            'Bank',
            'Finance',
            'Driving school',
            'Islamic finance',
            'Event venue',
            'Childcare',
            'Translation services',
            'Employment support',
            'Real estate',
            'Clothing',
            'Travel agent',
            'Fragrances',
        ];

        foreach ($categories as $category) {
            Category::firstOrCreate(['name' => $category]);
        }
    }
}
