<?php

namespace App\Notifications\Push\Cliente\Marketing;

use App\Enums\PushNotificationCategoryEnum;
use App\Enums\PushNotificationTargetEnum;
use App\Models\User;
use App\Notifications\Push\BasePushNotification;
use Illuminate\Database\Eloquent\Collection;

class Marketing1Push extends BasePushNotification
{
    public function label(): string
    {
        return 'cliente_marketing_1';
    }

    public function title(): string
    {
        return 'Casa limpa sem esforço';
    }

    public function body(): string
    {
        return 'Encontre uma diarista disponível em poucos minutos.';
    }

    public function target(): PushNotificationTargetEnum
    {
        return PushNotificationTargetEnum::CLIENTE;
    }

    public function category(): PushNotificationCategoryEnum
    {
        return PushNotificationCategoryEnum::MARKETING;
    }

    public function eligibleUsers(): Collection
    {
        return User::whereHas('client')
            ->where('registration_complete', true)
            ->get();
    }
}
