<?php

namespace Database\Factories;

use App\Models\Plan;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class PlanFactory extends Factory
{
    protected $model = Plan::class;

    public function definition(): array
    {
        $name = fake()->unique()->words(2, true);

        return [
            'name' => Str::headline($name),
            'slug' => Str::slug($name),
            'description' => fake()->sentence(),
            'monthly_price' => 29,
            'yearly_price' => 290,
            'trial_days' => 14,
            'max_staff' => 5,
            'max_services' => 20,
            'max_appointments_per_month' => 300,
            'max_reminders_per_month' => 1000,
            'max_invoices_per_month' => 100,
            'invoice_module_enabled' => true,
            'whatsapp_reminder_enabled' => true,
            'email_reminder_enabled' => true,
            'reports_enabled' => true,
            'custom_branding_enabled' => false,
            'status' => Plan::STATUS_ACTIVE,
            'sort_order' => 1,
        ];
    }
}
