<?php

namespace App\Notifications;

class ApplicationRejected extends ApplicationNotification
{
    protected function subject(): string
    {
        return 'Decision on your application - '.$this->application->application_number;
    }

    protected function heading(): string
    {
        return 'Dear '.$this->application->applicant->first_name.',';
    }

    protected function lines(): array
    {
        return [
            "Thank you for applying to ".setting('university_name', 'King Ceasor University').'.',
            "After careful consideration we are unable to offer you a place for application {$this->application->application_number} in this intake.",
            'We appreciate the time you took to apply, and you are welcome to apply again in a future intake.',
        ];
    }

    protected function actionLabel(): ?string
    {
        return 'View Application';
    }
}
