<?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 Marketing4Push extends BasePushNotification
{
    public function label(): string
    {
        return 'cliente_marketing_4';
    }

    public function title(): string
    {
        return 'Agenda cheia?';
    }

    public function body(): string
    {
        return 'Uma diarista pode resolver isso hoje.';
    }

    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();
    }
}
