<?php

namespace App\Notifications;

class LwdDeactivationDigestNotification extends HrmsNotification
{
    /**
     * @param  list<string>  $lines
     */
    public function __construct(
        protected array $lines,
        protected int $count
    ) {}

    public function notificationCategory(): string
    {
        return 'offboarding';
    }

    public function notificationSubject(): string
    {
        return "{$this->count} employee(s) deactivated after last working day";
    }

    public function notificationLines(): array
    {
        return array_merge(['The nightly LWD job deactivated the following employees:'], $this->lines);
    }

    public function actionUrl(): ?string
    {
        return route('employees.index');
    }

    public function actionLabel(): string
    {
        return 'View employees';
    }
}
