<?php

namespace App\Notifications\Push\Cliente\Educativo;

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

class Educativo3Push extends BasePushNotification
{
    public function label(): string
    {
        return 'cliente_educativo_3';
    }

    public function title(): string
    {
        return 'Dica importante';
    }

    public function body(): string
    {
        return 'Avaliações ajudam a manter a qualidade das diaristas.';
    }

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

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

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